# Pixi’VN - PixiJS Game Engine (/pixi-vn) ![pixi-vn-cover](https://github.com/user-attachments/assets/9bd54406-f41a-4d2c-959c-96a773a6103c)

npm version npm downloads per month jsDelivr hits (npm) NPM License Discord

Pixi’VN is a very versatile and powerful story-driven engine. It is based on JavaScript/TypeScript and [PixiJS](https://pixijs.com/), and supports animated characters through [Spine 2D](https://esotericsoftware.com) and [Live2D](https://www.live2d.com/). Pixi’VN aims to be an innovative and fast engine, and puts a strong emphasis on AI-assisted development: an AI agent can start your game, gain all the knowledge it needs about your project through [Agent Skills](#agent-skills), and test the game by launching it in a browser — with the ability to keep driving it from the outside while it plays. You can use narrative languages that are able to take full advantage of the engine's features, as well as any custom features you add to your project. Currently supported: * [*ink*](https://pixi-vn.com/ink/ink) ## Templates [#templates] For a quick start, various project templates are available, built with React. Less experienced developers can use these templates without much knowledge of JavaScript/TypeScript. * **[Visual Novel](https://pixi-vn.com/start/make-visual-novel)**: a classic dialogue-driven experience, with characters, backgrounds, and choices. * **[Point & Click Adventure](https://pixi-vn.com/nqtr/make-point-and-click)**: an adventure game where the player explores scenes and interacts with objects and characters. * **[Interactive Fiction](https://pixi-vn.com/start/make-interactive-fiction)**: feels like reading a book. Unlike a visual novel, images are shown as vignettes, just as illustrations would appear on a page. To create a new project from a template, run: npm pnpm yarn bun ```bash npm create pixi-vn@latest ``` ```bash pnpm create pixi-vn ``` ```bash yarn create pixi-vn ``` ```bash bunx create-pixi-vn ``` ### Distribution [#distribution] Pixi’VN is independent of any distribution technology, but strong emphasis is being placed on [Roves](https://roves.pixi-vn.com/), built by the same team behind Pixi’VN. | Platform | [Roves](https://roves.pixi-vn.com/) | [Tauri](https://v2.tauri.app/) | [Electron](https://www.electronjs.org/) | | ----------- | ----------------------------------- | ------------------------------ | --------------------------------------- | | Windows | ✅ | ✅ | ✅ | | macOS | ✅ | ✅ | ✅ | | Linux | ✅ | ✅ | ✅ | | Android | ✅ | ✅ | ❌ | | iOS | ✅ | ✅ | ❌ | | Nintendo | 🚧 | ❌ | ❌ | | PlayStation | 🚧 | ❌ | ❌ | | Xbox | 🚧 | ❌ | ❌ | ## Wiki [#wiki] * [Quick Start](https://pixi-vn.com/start/getting-started) * [Templates](https://pixi-vn.com/start/templates) * Features: * [Characters](https://pixi-vn.com/start/character) * [Narration](https://pixi-vn.com/start/narration) * [Assets](https://pixi-vn.com/start/assets) * [Canvas WebGL/WebGPU](https://pixi-vn.com/start/canvas) * [Sounds and music](https://pixi-vn.com/start/sound) * [Storage](https://pixi-vn.com/start/storage) * [User Interface (UI)](https://pixi-vn.com/start/interface) * [Minigames](https://pixi-vn.com/start/minigames) * [AI-Generated Content](https://pixi-vn.com/start/ai-generated-content) * [Save and load](https://pixi-vn.com/start/save) * [Distribution](https://pixi-vn.com/start/distribution) ## Prerequisites [#prerequisites] Before starting, you must have the following tools installed: * [Node.js](https://nodejs.org/) version 20.19.0 or higher. * Text editor with TypeScript support, such as: * [Visual Studio Code](https://code.visualstudio.com/) * [Cursor](https://www.cursor.com/) * [VSCodium](https://vscodium.com/) ## Installation [#installation] To install the Pixi’VN package in an existing JavaScript project, use one of the following commands: npm pnpm yarn bun ```bash npm install @drincs/pixi-vn ``` ```bash pnpm add @drincs/pixi-vn ``` ```bash yarn add @drincs/pixi-vn ``` ```bash bun add @drincs/pixi-vn ``` ## Initialize [#initialize] Before using the Pixi’VN engine, you must initialize the game. You can do this by calling the `Game.init` method. ```ts title="src/main.tsx" import { Game } from "@drincs/pixi-vn"; const body = document.body; if (!body) { throw new Error("body element not found"); } Game.init(body, { height: 1080, width: 1920, backgroundColor: "#303030", }).then(() => { // ... Game.start("start", {}); }); // read more here: https://pixi-vn.com/start/other-narrative-features.html#how-manage-the-end-of-the-game Game.onEnd(async (props) => { Game.clear(); // navigate to main menu }); Game.addOnError((error, props) => { console.error(`Error occurred`, error); }); Game.onNavigate((path) => navigateTo(path)); ``` ```html title="index.html" Game
``` ```css title="styles.css" html, body { background-color: #242424; height: 100%; } body { margin: 0; min-height: 100vh; display: flex; overflow: hidden; } ``` ## Agent Skills [#agent-skills] Pixi'VN ships a set of [Agent Skills](https://www.skills.sh/) that teach AI coding assistants how to correctly use each part of the engine. \> In LM Studio Bionic, ask the agent to install skills from `https://github.com/DRincs-Productions/pixi-vn`, or add the skill files in **Settings → Skills**. To reuse skills installed for Codex or Claude Code, enable **Settings → Skills → Use skills found in other apps**. **Codex**: npm pnpm yarn bun ```bash npx skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent codex -g -y ``` ```bash pnpm dlx skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent codex -g -y ``` ```bash yarn dlx skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent codex -g -y ``` ```bash bun x skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent codex -g -y ``` **Claude Code**: npm pnpm yarn bun ```bash npx skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent claude-code -g -y ``` ```bash pnpm dlx skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent claude-code -g -y ``` ```bash yarn dlx skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent claude-code -g -y ``` ```bash bun x skills@latest add DRincs-Productions/pixi-vn@latest --skill '*' --agent claude-code -g -y ``` **Other agents**: npm pnpm yarn bun ```bash npx skills@latest add DRincs-Productions/pixi-vn@latest --all -y ``` ```bash pnpm dlx skills@latest add DRincs-Productions/pixi-vn@latest --all -y ``` ```bash yarn dlx skills@latest add DRincs-Productions/pixi-vn@latest --all -y ``` ```bash bun x skills@latest add DRincs-Productions/pixi-vn@latest --all -y ``` Available skills: * `pixi-vn` — the index/entry point of the skill set: skill map, installing the package and initializing the `Game` * `pixi-vn-assets` — local vs. online assets, the manifest/bundle/alias system, and loading strategy * `pixi-vn-canvas` — images, sprites, text, video, transitions and effects * `pixi-vn-characters` — defining and registering characters * `pixi-vn-history` — going back/rewinding and reading the narration backlog * `pixi-vn-narration` — labels, dialogue and choices * `pixi-vn-saves` — exporting/restoring game state and persisting save files * `pixi-vn-sound` — music, sound effects and audio channels * `pixi-vn-storage` — game variables, flags and stored classes * `pixi-vn-testing` — driving/inspecting a running game from an AI agent or script via `Game.testing`, for automated play-testing * `pixi-vn-ui` — mounting HTML/PixiJS UI layers over the canvas, screen navigation, theming, and connecting UI to storage * `pixi-vn-migration` — upgrading an existing project to the current version # Class: AnimatedSprite (/pixi-vn/index/classes/AnimatedSprite) Defined in: [src/canvas/components/AnimatedSprite.ts:87](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L87) This class is a extension of the [PIXI.AnimatedSprite class](https://pixijs.com/8.x/examples/sprite/animated-sprite-jet), it has the same properties and methods, but it has the ability to be saved and loaded by the Pixi’VN library. The frames are described by an [AnimatedSpriteSource](/pixi-vn/index/interfaces/AnimatedSpriteSource) (spritesheet alias, animation name, frame names), so they can be saved and rebuilt on restore. You need to use [load](#load) to load the frames. This class is used for functions like [addAnimatedSprite](/pixi-vn/index/functions/addAnimatedSprite) and [showAnimatedSprite](/pixi-vn/index/functions/showAnimatedSprite). The `onComplete`, `onFrameChange` and `onLoop` callbacks can't be passed in the options, because they can't be saved. Listen to the `"complete"`, `"frameChange"` and `"loop"` events (see [AnimatedSpriteEventType](/pixi-vn/index/type-aliases/AnimatedSpriteEventType)) with `.on(...)` and a handler registered with `eventDecorator`: ```ts class Events { \@eventDecorator() static removeExplosion(component: AnimatedSprite) { canvas.remove(component.label); } } explosion.on("complete", Events.removeExplosion); ``` ## Examples [#examples] ```ts Assets.add({ alias: "explosion", src: "https://pixijs.com/assets/spritesheet/mc.json" }); const explosion = new AnimatedSprite( { anchor: 0.5, align: 0.5, animationSpeed: 0.5, autoPlay: true }, { spritesheet: "explosion" }, ); await explosion.load(); canvas.add("explosion", explosion); ``` ```ts Assets.add({ alias: "fighter", src: "https://pixijs.com/assets/spritesheet/fighter.json" }); // the alias of the component is also the alias of the spritesheet const fighter = addAnimatedSprite("fighter", { loop: true }); await fighter.load(); fighter.play(); // a different alias for the component const myFighter = await showAnimatedSprite("myFighter", "fighter", { xAlign: 1 }); ``` ## Extends [#extends] * `AnimatedSprite` ## Implements [#implements] * [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<[`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory)> * [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension) * [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension) * `SystemPausable` ## Constructors [#constructors] ### Constructor [#constructor] \> **new AnimatedSprite**(`options?`, `source?`): `AnimatedSprite` Defined in: [src/canvas/components/AnimatedSprite.ts:99](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L99) #### Parameters [#parameters] ##### options? [#options] [`AnimatedSpriteOptions`](/pixi-vn/index/interfaces/AnimatedSpriteOptions) The options for the component. ##### source? [#source] [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) The description of the frames, used by [load](#load). If you have initialized the "asset matrix", you can use the aliases of the assets. #### Returns [#returns] `AnimatedSprite` #### Overrides [#overrides] `PIXI.AnimatedSprite.constructor` ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] `PIXI.AnimatedSprite.__devtoolIgnore` *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] `PIXI.AnimatedSprite.__devtoolIgnoreChildren` *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] `PIXI.AnimatedSprite.__devtoolLocked` *** ### \_anchor [#_anchor] \> `readonly` **\_anchor**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:155 **`Internal`** #### Inherited from [#inherited-from-3] `PIXI.AnimatedSprite._anchor` *** ### \_bounds [#_bounds] \> `protected` **\_bounds**: `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:59 #### Inherited from [#inherited-from-4] `PIXI.AnimatedSprite._bounds` *** ### \_boundsDirty [#_boundsdirty] \> `protected` **\_boundsDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:60 #### Inherited from [#inherited-from-5] `PIXI.AnimatedSprite._boundsDirty` *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-6] `PIXI.AnimatedSprite._cx` *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-7] `PIXI.AnimatedSprite._cy` *** ### \_gcData? [#_gcdata] \> `optional` **\_gcData?**: `GCData` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:54 **`Internal`** #### Inherited from [#inherited-from-8] `PIXI.AnimatedSprite._gcData` *** ### \_gcLastUsed [#_gclastused] \> **\_gcLastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:58 **`Internal`** #### Inherited from [#inherited-from-9] `PIXI.AnimatedSprite._gcLastUsed` *** ### \_gpuData [#_gpudata] \> **\_gpuData**: `Record`\<`number`, `GPU_DATA`> Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:52 **`Internal`** #### Inherited from [#inherited-from-10] `PIXI.AnimatedSprite._gpuData` *** ### \_lastUsed [#_lastused] \> **\_lastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:50 **`Internal`** #### Inherited from [#inherited-from-11] `PIXI.AnimatedSprite._lastUsed` *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-12] `PIXI.AnimatedSprite._pivot` *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-13] `PIXI.AnimatedSprite._position` *** ### \_roundPixels [#_roundpixels] \> **\_roundPixels**: `0` | `1` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:48 **`Internal`** #### Inherited from [#inherited-from-14] `PIXI.AnimatedSprite._roundPixels` *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-15] `PIXI.AnimatedSprite._scale` *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-16] `PIXI.AnimatedSprite._skew` *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-17] `PIXI.AnimatedSprite._sx` *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-18] `PIXI.AnimatedSprite._sy` *** ### \_texture [#_texture] \> **\_texture**: `Texture` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:157 **`Internal`** #### Inherited from [#inherited-from-19] `PIXI.AnimatedSprite._texture` *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-20] `PIXI.AnimatedSprite._zIndex` *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-21] `PIXI.AnimatedSprite.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-22] `PIXI.AnimatedSprite.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-23] `PIXI.AnimatedSprite.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-24] `PIXI.AnimatedSprite.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-25] `PIXI.AnimatedSprite.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-26] `PIXI.AnimatedSprite.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-27] `PIXI.AnimatedSprite.accessibleType` *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:46 **`Internal`** #### Inherited from [#inherited-from-28] `PIXI.AnimatedSprite.allowChildren` *** ### animationSpeed [#animationspeed] \> **animationSpeed**: `number` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:278 The speed that the AnimatedSprite will play at. Higher is faster, lower is slower. #### Example [#example-7] ```ts // Create a sprite with normal speed animation const sprite = new AnimatedSprite({ textures: [ Texture.from('walk1.png'), Texture.from('walk2.png'), Texture.from('walk3.png') ], animationSpeed: 1 // Default speed }); // Slow down the animation sprite.animationSpeed = 0.5; // Speed up the animation sprite.animationSpeed = 2; // Reverse the animation sprite.animationSpeed = -1; // Stop the animation sprite.animationSpeed = 0; ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [AnimatedSprite#currentFrame](#currentframe) For the current frame index * [AnimatedSprite#totalFrames](#totalframes) For total number of frames #### Inherited from [#inherited-from-29] `PIXI.AnimatedSprite.animationSpeed` *** ### autoGarbageCollect [#autogarbagecollect] \> **autoGarbageCollect**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:56 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-30] `PIXI.AnimatedSprite.autoGarbageCollect` *** ### batched [#batched] \> **batched**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:153 **`Internal`** #### Inherited from [#inherited-from-31] `PIXI.AnimatedSprite.batched` *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-8] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-32] `PIXI.AnimatedSprite.boundsArea` *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-33] `PIXI.AnimatedSprite.cacheAsBitmap` *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters-1] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns-1] `void` #### Example [#example-9] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see-1] * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](/pixi-vn/index/classes/VideoSprite#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-34] `PIXI.AnimatedSprite.cacheAsTexture` *** ### canBundle [#canbundle] \> `readonly` **canBundle**: `true` = `true` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:44 **`Internal`** #### Inherited from [#inherited-from-35] `PIXI.AnimatedSprite.canBundle` *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-10] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-36] `PIXI.AnimatedSprite.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-11] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-8] ```ts false ``` #### Inherited from [#inherited-from-37] `PIXI.AnimatedSprite.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-12] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-9] ```ts true ``` #### Inherited from [#inherited-from-38] `PIXI.AnimatedSprite.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-13] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-10] ```ts null ``` #### Inherited from [#inherited-from-39] `PIXI.AnimatedSprite.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-14] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-11] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-40] `PIXI.AnimatedSprite.cursor` *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-41] `PIXI.AnimatedSprite.depthOfChildModified` *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-15] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-12] ```ts false ``` #### See [#see-4] [Container#destroy](/pixi-vn/index/classes/Container#destroy) For destroying objects #### Inherited from [#inherited-from-42] `PIXI.AnimatedSprite.destroyed` *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-43] `PIXI.AnimatedSprite.effects` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-44] `PIXI.AnimatedSprite.eventMode` *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-17] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-5] * [Container#filters](/pixi-vn/index/classes/VideoSprite#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-45] `PIXI.AnimatedSprite.filterArea` *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-46] `PIXI.AnimatedSprite.globalDisplayStatus` *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-47] `PIXI.AnimatedSprite.groupAlpha` *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-48] `PIXI.AnimatedSprite.groupBlendMode` *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-49] `PIXI.AnimatedSprite.groupColor` *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-50] `PIXI.AnimatedSprite.groupColorAlpha` *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-51] `PIXI.AnimatedSprite.groupTransform` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-18] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-52] `PIXI.AnimatedSprite.hitArea` *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-6] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-19] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-53] `PIXI.AnimatedSprite.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-13] ```ts true ``` #### Example [#example-20] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-54] `PIXI.AnimatedSprite.interactiveChildren` *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-21] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-7] * [Container#cacheAsTexture](/pixi-vn/index/classes/Container#cacheastexture) For enabling caching * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cache #### Inherited from [#inherited-from-55] `PIXI.AnimatedSprite.isCachedAsTexture` *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-3] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-22] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-56] `PIXI.AnimatedSprite.isInteractive` *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-57] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-58] `PIXI.AnimatedSprite.layerParentId` *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-59] `PIXI.AnimatedSprite.localAlpha` *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-60] `PIXI.AnimatedSprite.localBlendMode` *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-61] `PIXI.AnimatedSprite.localColor` *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-62] `PIXI.AnimatedSprite.localDisplayStatus` *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-23] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-8] * [Container#worldTransform](/pixi-vn/index/classes/VideoSprite#worldtransform) For global transform * [Container#groupTransform](/pixi-vn/index/classes/VideoSprite#grouptransform) For render group transform #### Inherited from [#inherited-from-63] `PIXI.AnimatedSprite.localTransform` *** ### loop [#loop] \> **loop**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:307 Whether or not the animation repeats after playing. When true, the animation will restart from the beginning after reaching the last frame. When false, the animation will stop on the last frame. #### Example [#example-24] ```ts // Create a looping animation const sprite = new AnimatedSprite({ textures: [ Texture.from('walk1.png'), Texture.from('walk2.png'), Texture.from('walk3.png') ], loop: true // Will repeat }); // Play animation once sprite.loop = false; sprite.onComplete = () => console.log('Animation finished!'); sprite.play(); // Toggle looping at runtime sprite.loop = !sprite.loop; ``` #### Default [#default-15] ```ts true ``` #### See [#see-9] * [AnimatedSprite#onComplete](#oncomplete) Callback when non-looping animation completes * [AnimatedSprite#onLoop](#onloop) Callback when animation loops #### Inherited from [#inherited-from-64] `PIXI.AnimatedSprite.loop` *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a [Sprite](/pixi-vn/index/classes/Sprite) object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-25] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-10] * Graphics For creating mask shapes * [Sprite](/pixi-vn/index/classes/Sprite) For texture-based masks * [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-65] `PIXI.AnimatedSprite.mask` *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-11] Container#label #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-66] `PIXI.AnimatedSprite.name` *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-67] `PIXI.AnimatedSprite.onclick` *** ### onComplete? [#oncomplete] \> `optional` **onComplete?**: () => `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:331 User-assigned function to call when an AnimatedSprite finishes playing. This function is called when the animation reaches the end and stops playing. If the animation is set to loop, this function will not be called. #### Returns [#returns-4] `void` #### Example [#example-27] ```ts animation.onComplete = () => { // Finished! }; ``` #### Inherited from [#inherited-from-68] `PIXI.AnimatedSprite.onComplete` *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-69] `PIXI.AnimatedSprite.oncontextmenu` *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) = `{}` Defined in: [src/canvas/components/AnimatedSprite.ts:292](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L292) ListenerExtension #### Implementation of [#implementation-of] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`onEventsHandlers`](/pixi-vn/index/interfaces/ListenerExtension#oneventshandlers) *** ### onFrameChange? [#onframechange] \> `optional` **onFrameChange?**: (`currentFrame`) => `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:342 User-assigned function to call when an AnimatedSprite changes which texture is being rendered. This function is called every time the current frame changes during playback. It receives the current frame index as an argument. #### Parameters [#parameters-2] ##### currentFrame [#currentframe] `number` #### Returns [#returns-5] `void` #### Example [#example-29] ```ts animation.onFrameChange = () => { // Updated! }; ``` #### Inherited from [#inherited-from-70] `PIXI.AnimatedSprite.onFrameChange` *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-71] `PIXI.AnimatedSprite.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-72] `PIXI.AnimatedSprite.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-73] `PIXI.AnimatedSprite.onglobaltouchmove` *** ### onLoop? [#onloop] \> `optional` **onLoop?**: () => `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:351 User-assigned function to call when `loop` is true, and an AnimatedSprite is played and loops around to start again. #### Returns [#returns-6] `void` #### Example [#example-33] ```ts animation.onLoop = () => { // Looped! }; ``` #### Inherited from [#inherited-from-74] `PIXI.AnimatedSprite.onLoop` *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-75] `PIXI.AnimatedSprite.onmousedown` *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-76] `PIXI.AnimatedSprite.onmouseenter` *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-77] `PIXI.AnimatedSprite.onmouseleave` *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-78] `PIXI.AnimatedSprite.onmousemove` *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-79] `PIXI.AnimatedSprite.onmouseout` *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-80] `PIXI.AnimatedSprite.onmouseover` *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-81] `PIXI.AnimatedSprite.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-82] `PIXI.AnimatedSprite.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-83] `PIXI.AnimatedSprite.onpointercancel` *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-84] `PIXI.AnimatedSprite.onpointerdown` *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-85] `PIXI.AnimatedSprite.onpointerenter` *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-86] `PIXI.AnimatedSprite.onpointerleave` *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-87] `PIXI.AnimatedSprite.onpointermove` *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-88] `PIXI.AnimatedSprite.onpointerout` *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-89] `PIXI.AnimatedSprite.onpointerover` *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-90] `PIXI.AnimatedSprite.onpointertap` *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-91] `PIXI.AnimatedSprite.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-92] `PIXI.AnimatedSprite.onpointerupoutside` *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-52] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-12] Renderer For renderer capabilities #### Inherited from [#inherited-from-93] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-94] `PIXI.AnimatedSprite.onrightclick` *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-95] `PIXI.AnimatedSprite.onrightdown` *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-96] `PIXI.AnimatedSprite.onrightup` *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-97] `PIXI.AnimatedSprite.onrightupoutside` *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-98] `PIXI.AnimatedSprite.ontap` *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-99] `PIXI.AnimatedSprite.ontouchcancel` *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-59] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-100] `PIXI.AnimatedSprite.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-60] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-101] `PIXI.AnimatedSprite.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-61] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-102] `PIXI.AnimatedSprite.ontouchmove` *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-62] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-103] `PIXI.AnimatedSprite.ontouchstart` *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-63] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-104] `PIXI.AnimatedSprite.onwheel` *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-64] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-13] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-105] `PIXI.AnimatedSprite.parent` *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-106] `PIXI.AnimatedSprite.parentRenderLayer` *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` = `CANVAS_ANIMATED_SPRITE_ID` Defined in: [src/canvas/components/AnimatedSprite.ts:123](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L123) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Implementation of [#implementation-of-1] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`pixivnId`](/pixi-vn/index/classes/CanvasBaseItem#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-107] `PIXI.AnimatedSprite.relativeGroupTransform` *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:151 **`Internal`** #### Inherited from [#inherited-from-108] `PIXI.AnimatedSprite.renderPipeId` *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-65] ```ts container.sortableChildren = true; ``` #### Default [#default-51] ```ts false ``` #### Inherited from [#inherited-from-109] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-7] `void` #### Example [#example-66] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-14] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling automatic sorting * [Container#zIndex](/pixi-vn/index/classes/VideoSprite#zindex) For setting child order #### Inherited from [#inherited-from-110] `PIXI.AnimatedSprite.sortChildren` *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-52] ```ts false @internal ``` #### Inherited from [#inherited-from-111] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### systemPaused [#systempaused] \> **systemPaused**: `boolean` = `false` Defined in: [src/canvas/components/AnimatedSprite.ts:274](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L274) **`Internal`** `true` while `canvas.pause()` suspends this component: its frame doesn't change, but [playing](#playing) keeps the requested playback state, so `play()`, `stop()`, `gotoAndStop()`, ... called meanwhile apply when `canvas.resume()` ends the suspension (if the component was removed from the game layer meanwhile, it is stopped instead). #### Implementation of [#implementation-of-2] `SystemPausable.systemPaused` *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-53] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-112] `PIXI.AnimatedSprite.tabIndex` *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-113] `PIXI.AnimatedSprite.uid` *** ### updateAnchor [#updateanchor] \> **updateAnchor**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:318 Update anchor to \[Texture's defaultAnchor]Texture#defaultAnchor when frame changes. Useful with \[sprite sheet animations]Spritesheet#animations created with tools. Changing anchor for each frame allows to pin sprite origin to certain moving feature of the frame (e.g. left foot). \> \[!NOTE] Enabling this will override any previously set `anchor` on each frame change. #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-114] `PIXI.AnimatedSprite.updateAnchor` *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-8] `void` #### Example [#example-68] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-115] `PIXI.AnimatedSprite.updateCacheTexture` *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-116] `PIXI.AnimatedSprite.updateTick` *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-69] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-15] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-55] ```ts 0 ``` #### Inherited from [#inherited-from-117] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) *** ### prefixed [#prefixed] \> `static` **prefixed**: `string` | `boolean` Defined in: node_modules/eventemitter3/index.d.ts:9 #### Inherited from [#inherited-from-118] `PIXI.AnimatedSprite.prefixed` ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AnimatedSprite.ts:331](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L331) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-9] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:319](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L319) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-3] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-10] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-3] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#align) *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-70] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-56] ```ts 1 ``` ##### See [#see-16] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control ##### Returns [#returns-11] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-4] ###### value [#value-1] `number` ##### Returns [#returns-12] `void` #### Inherited from [#inherited-from-119] `PIXI.AnimatedSprite.alpha` *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:256 The anchor sets the origin point of the sprite. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. * The default is `(0,0)`, this means the sprite's origin is the top left. * Setting the anchor to `(0.5,0.5)` means the sprite's origin is centered. * Setting the anchor to `(1,1)` would mean the sprite's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-71] ```ts // Center the anchor point sprite.anchor = 0.5; // Sets both x and y to 0.5 sprite.position.set(400, 300); // Sprite will be centered at this position // Set specific x/y anchor points sprite.anchor = { x: 1, // Right edge y: 0 // Top edge }; // Using individual coordinates sprite.anchor.set(0.5, 1); // Center-bottom // For rotation around center sprite.anchor.set(0.5); sprite.rotation = Math.PI / 4; // 45 degrees around center // For scaling from center sprite.anchor.set(0.5); sprite.scale.set(2); // Scales from center point ``` ##### Returns [#returns-13] `ObservablePoint` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:257 ##### Parameters [#parameters-5] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-14] `void` #### Inherited from [#inherited-from-120] `PIXI.AnimatedSprite.anchor` *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-72] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-15] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-6] ###### value [#value-3] `number` ##### Returns [#returns-16] `void` #### Inherited from [#inherited-from-121] `PIXI.AnimatedSprite.angle` *** ### autoUpdate [#autoupdate] #### Get Signature [#get-signature-4] \> **get** **autoUpdate**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:703 Controls whether the animation automatically updates using the shared ticker. When enabled, the animation will update on each frame. When disabled, you must manually call update() to advance the animation. ##### Example [#example-73] ```ts // Create sprite with auto-update disabled const sprite = new AnimatedSprite({ textures: [], autoUpdate: false }); // Manual update with app ticker app.ticker.add((ticker) => { sprite.update(ticker); }); // Enable auto-update later sprite.autoUpdate = true; ``` ##### Default [#default-57] ```ts true ``` ##### See [#see-17] * [AnimatedSprite#update](#update) For manual animation updates * [Ticker](/pixi-vn/index/interfaces/TickerValue) For the timing system ##### Returns [#returns-17] `boolean` #### Set Signature [#set-signature-4] \> **set** **autoUpdate**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:704 ##### Parameters [#parameters-7] ###### value [#value-4] `boolean` ##### Returns [#returns-18] `void` #### Inherited from [#inherited-from-122] `PIXI.AnimatedSprite.autoUpdate` *** ### blendMode [#blendmode] #### Get Signature [#get-signature-5] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-74] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-58] ```ts 'normal' ``` ##### See [#see-18] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments ##### Returns [#returns-19] `BLEND_MODES` #### Set Signature [#set-signature-5] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-8] ###### value [#value-5] `BLEND_MODES` ##### Returns [#returns-20] `void` #### Inherited from [#inherited-from-123] `PIXI.AnimatedSprite.blendMode` *** ### bounds [#bounds] #### Get Signature [#get-signature-6] \> **get** **bounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:74 The local bounds of the view in its own coordinate space. Bounds are automatically updated when the view's content changes. ##### Example [#example-75] ```ts // Get bounds dimensions const bounds = view.bounds; console.log(`Width: ${bounds.maxX - bounds.minX}`); console.log(`Height: ${bounds.maxY - bounds.minY}`); ``` ##### See [#see-19] Bounds For bounds operations ##### Returns [#returns-21] `Bounds` The rectangular bounds of the view #### Inherited from [#inherited-from-124] `PIXI.AnimatedSprite.bounds` *** ### currentFrame [#currentframe-1] #### Get Signature [#get-signature-7] \> **get** **currentFrame**(): `number` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:657 Gets or sets the current frame index of the animation. When setting, the value will be clamped between 0 and totalFrames - 1. ##### Example [#example-76] ```ts // Create an animated sprite const sprite = new AnimatedSprite({ textures: [ Texture.from('walk1.png'), Texture.from('walk2.png'), Texture.from('walk3.png') ] }); // Get current frame console.log(sprite.currentFrame); // 0 // Set specific frame sprite.currentFrame = 1; // Show second frame // Use with frame callbacks sprite.onFrameChange = (frame) => { console.log(`Now showing frame: ${frame}`); }; sprite.currentFrame = 2; ``` ##### Throws [#throws] If attempting to set a frame index out of bounds ##### See [#see-20] * [AnimatedSprite#totalFrames](#totalframes) For the total number of frames * [AnimatedSprite#gotoAndPlay](#gotoandplay) For playing from a specific frame * [AnimatedSprite#gotoAndStop](#gotoandstop) For stopping at a specific frame ##### Returns [#returns-22] `number` #### Set Signature [#set-signature-6] \> **set** **currentFrame**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:658 ##### Parameters [#parameters-9] ###### value [#value-6] `number` ##### Returns [#returns-23] `void` #### Inherited from [#inherited-from-125] `PIXI.AnimatedSprite.currentFrame` *** ### filters [#filters] #### Get Signature [#get-signature-8] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-77] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-21] Filter For filter base class ##### Returns [#returns-24] readonly `Filter`\[] #### Set Signature [#set-signature-7] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-78] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-22] Filter For filter base class ##### Parameters [#parameters-10] ###### value [#value-7] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-25] `void` #### Inherited from [#inherited-from-126] `PIXI.AnimatedSprite.filters` *** ### haveEmptyTexture [#haveemptytexture] #### Get Signature [#get-signature-9] \> **get** **haveEmptyTexture**(): `boolean` Defined in: [src/canvas/components/AnimatedSprite.ts:263](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L263) Check if the frames are not loaded yet. ##### Returns [#returns-26] `boolean` A boolean that is true if the component only has the empty placeholder frame. *** ### height [#height] #### Get Signature [#get-signature-10] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:300 The height of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example [#example-79] ```ts // Set height directly sprite.height = 150; console.log(sprite.scale.y); // Scale adjusted to match height // Set height while preserving aspect ratio const ratio = sprite.width / sprite.height; sprite.height = 200; sprite.width = 200 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.height = sprite.texture.orig.height; ``` ##### Returns [#returns-27] `number` #### Set Signature [#set-signature-8] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:301 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-80] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Parameters [#parameters-11] ###### value [#value-8] `number` ##### Returns [#returns-28] `void` #### Inherited from [#inherited-from-127] `PIXI.AnimatedSprite.height` *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-11] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-29] `boolean` #### Inherited from [#inherited-from-128] `PIXI.AnimatedSprite.isRenderable` *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-12] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-30] `boolean` #### Set Signature [#set-signature-9] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-12] ###### value [#value-9] `boolean` ##### Returns [#returns-31] `void` #### Inherited from [#inherited-from-129] `PIXI.AnimatedSprite.isRenderGroup` *** ### loadIsStarted [#loadisstarted] #### Get Signature [#get-signature-13] \> **get** **loadIsStarted**(): `boolean` Defined in: [src/canvas/components/AnimatedSprite.ts:190](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L190) ##### Returns [#returns-32] `boolean` *** ### memory [#memory] #### Get Signature [#get-signature-14] \> **get** **memory**(): [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory) Defined in: [src/canvas/components/AnimatedSprite.ts:145](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L145) This method return the memory of the canvas element. ##### Throws [#throws-1] when the method is not overridden in the subclass. ##### Returns [#returns-33] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory) #### Implementation of [#implementation-of-4] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`memory`](/pixi-vn/index/classes/CanvasBaseItem#memory) *** ### origin [#origin] #### Get Signature [#get-signature-15] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-81] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-34] `ObservablePoint` #### Set Signature [#set-signature-10] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-13] ###### value [#value-10] `number` | `PointData` ##### Returns [#returns-35] `void` #### Inherited from [#inherited-from-130] `PIXI.AnimatedSprite.origin` *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-16] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AnimatedSprite.ts:402](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L402) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-36] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-11] \> **set** **percentagePosition**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:390](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L390) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-14] ###### value [#value-11] `number` | `Partial`\<`PointData`> ##### Returns [#returns-37] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-5] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentageposition) *** ### percentageX [#percentagex] #### Get Signature [#get-signature-17] \> **get** **percentageX**(): `number` Defined in: [src/canvas/components/AnimatedSprite.ts:408](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L408) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-38] `number` #### Set Signature [#set-signature-12] \> **set** **percentageX**(`_value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:411](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L411) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-15] ###### \_value [#_value] `number` ##### Returns [#returns-39] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-6] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagex) *** ### percentageY [#percentagey] #### Get Signature [#get-signature-18] \> **get** **percentageY**(): `number` Defined in: [src/canvas/components/AnimatedSprite.ts:417](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L417) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-40] `number` #### Set Signature [#set-signature-13] \> **set** **percentageY**(`_value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:420](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L420) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-16] ###### \_value [#_value-1] `number` ##### Returns [#returns-41] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-7] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagey) *** ### pivot [#pivot] #### Get Signature [#get-signature-19] \> **get** **pivot**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1023 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-82] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-42] `ObservablePoint` #### Set Signature [#set-signature-14] \> **set** **pivot**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1024 ##### Parameters [#parameters-17] ###### value [#value-12] `number` | `PointData` ##### Returns [#returns-43] `void` #### Inherited from [#inherited-from-131] `PIXI.AnimatedSprite.pivot` *** ### playing [#playing] #### Get Signature [#get-signature-20] \> **get** **playing**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:678 Indicates if the AnimatedSprite is currently playing. This is a read-only property that reflects the current playback state. ##### Example [#example-83] ```ts // Check if animation is playing console.log('Playing:', sprite.playing); // true // Use with play control if (!sprite.playing) { sprite.play(); } ``` ##### See [#see-23] * [AnimatedSprite#play](#play) For starting playback * [AnimatedSprite#stop](#stop) For stopping playback * [AnimatedSprite#loop](#loop) For controlling looping behavior ##### Returns [#returns-44] `boolean` True if the animation is currently playing #### Inherited from [#inherited-from-132] `PIXI.AnimatedSprite.playing` *** ### position [#position] #### Get Signature [#get-signature-21] \> **get** **position**(): `ObservablePoint` Defined in: [src/canvas/components/AnimatedSprite.ts:492](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L492) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-84] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-3] 4.0.0 ##### Returns [#returns-45] `ObservablePoint` #### Set Signature [#set-signature-15] \> **set** **position**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:495](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L495) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-85] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Parameters [#parameters-18] ###### value [#value-13] `ObservablePoint` ##### Returns [#returns-46] `void` #### Overrides [#overrides-1] `PIXI.AnimatedSprite.position` *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-22] \> **get** **positionInfo**(): `object` Defined in: [src/canvas/components/AnimatedSprite.ts:434](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L434) ##### Returns [#returns-47] `object` ###### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-16] \> **set** **positionInfo**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:444](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L444) ##### Parameters [#parameters-19] ###### value [#value-14] ###### type? [#type-1] `"pixel"` | `"percentage"` | `"align"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-48] `void` #### Implementation of [#implementation-of-8] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionInfo`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positioninfo) *** ### positionType [#positiontype] #### Get Signature [#get-signature-23] \> **get** **positionType**(): `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/AnimatedSprite.ts:426](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L426) ##### Returns [#returns-49] `"pixel"` | `"percentage"` | `"align"` #### Implementation of [#implementation-of-9] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionType`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positiontype) *** ### renderable [#renderable] #### Get Signature [#get-signature-24] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-86] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-59] ```ts true ``` ##### See [#see-24] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-50] `boolean` #### Set Signature [#set-signature-17] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-20] ###### value [#value-15] `boolean` ##### Returns [#returns-51] `void` #### Inherited from [#inherited-from-133] `PIXI.AnimatedSprite.renderable` *** ### rotation [#rotation] #### Get Signature [#get-signature-25] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-87] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-52] `number` #### Set Signature [#set-signature-18] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-21] ###### value [#value-16] `number` ##### Returns [#returns-53] `void` #### Inherited from [#inherited-from-134] `PIXI.AnimatedSprite.rotation` *** ### roundPixels [#roundpixels] #### Get Signature [#get-signature-26] \> **get** **roundPixels**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:86 Whether or not to round the x/y position of the sprite. ##### Example [#example-88] ```ts // Enable pixel rounding for crisp rendering view.roundPixels = true; ``` ##### Default [#default-60] ```ts false ``` ##### Returns [#returns-54] `boolean` #### Set Signature [#set-signature-19] \> **set** **roundPixels**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:87 Whether or not to round the x/y position of the object. ##### Parameters [#parameters-22] ###### value [#value-17] `boolean` ##### Returns [#returns-55] `void` #### Inherited from [#inherited-from-135] `PIXI.AnimatedSprite.roundPixels` *** ### scale [#scale] #### Get Signature [#get-signature-27] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-89] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-5] 4.0.0 ##### Returns [#returns-56] `ObservablePoint` #### Set Signature [#set-signature-20] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-23] ###### value [#value-18] `string` | `number` | `PointData` ##### Returns [#returns-57] `void` #### Inherited from [#inherited-from-136] `PIXI.AnimatedSprite.scale` *** ### skew [#skew] #### Get Signature [#get-signature-28] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-90] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-6] 4.0.0 ##### Default [#default-61] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-58] `ObservablePoint` #### Set Signature [#set-signature-21] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-24] ###### value [#value-19] `PointData` ##### Returns [#returns-59] `void` #### Inherited from [#inherited-from-137] `PIXI.AnimatedSprite.skew` *** ### source [#source-1] #### Get Signature [#get-signature-29] \> **get** **source**(): [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) | `undefined` Defined in: [src/canvas/components/AnimatedSprite.ts:139](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L139) The description of the frames, used by [load](#load) and saved in the memory. ##### Returns [#returns-60] [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) | `undefined` #### Set Signature [#set-signature-22] \> **set** **source**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:142](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L142) ##### Parameters [#parameters-25] ###### value [#value-20] [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) | `undefined` ##### Returns [#returns-61] `void` *** ### texture [#texture] #### Get Signature [#get-signature-30] \> **get** **texture**(): `Texture`\<`TextureSource`\<`any`>> Defined in: [src/canvas/components/AnimatedSprite.ts:286](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L286) The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-91] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-25] * [Texture](/pixi-vn/index/variables/Texture) For texture creation and management * [Assets](/pixi-vn/index/variables/Assets) For asset loading ##### Returns [#returns-62] `Texture`\<`TextureSource`\<`any`>> #### Set Signature [#set-signature-23] \> **set** **texture**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:282](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L282) The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-92] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-26] * [Texture](/pixi-vn/index/variables/Texture) For texture creation and management * [Assets](/pixi-vn/index/variables/Assets) For asset loading ##### Parameters [#parameters-26] ###### value [#value-21] `Texture`\<`TextureSource`\<`any`>> ##### Returns [#returns-63] `void` #### Overrides [#overrides-2] `PIXI.AnimatedSprite.texture` *** ### textures [#textures] #### Get Signature [#get-signature-31] \> **get** **textures**(): `AnimatedSpriteFrames` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:624 The array of textures or frame objects used for the animation sequence. Can be set to either an array of Textures or an array of FrameObjects with custom timing. ##### Example [#example-93] ```ts // Update textures at runtime sprite.textures = [ Texture.from('run1.png'), Texture.from('run2.png') ]; // Use custom frame timing sprite.textures = [ { texture: Texture.from('explosion1.png'), time: 100 }, { texture: Texture.from('explosion2.png'), time: 200 }, { texture: Texture.from('explosion3.png'), time: 300 } ]; // Use with spritesheet const sheet = await Assets.load('animations.json'); sprite.textures = sheet.animations['walk']; ``` ##### See [#see-27] * FrameObject For frame timing options * Spritesheet For loading from spritesheets ##### Returns [#returns-64] `AnimatedSpriteFrames` #### Set Signature [#set-signature-24] \> **set** **textures**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:625 ##### Parameters [#parameters-27] ###### value [#value-22] `AnimatedSpriteFrames` ##### Returns [#returns-65] `void` #### Inherited from [#inherited-from-138] `PIXI.AnimatedSprite.textures` *** ### tint [#tint] #### Get Signature [#get-signature-32] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-94] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-62] ```ts 0xFFFFFF ``` ##### See [#see-28] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control ##### Returns [#returns-66] `number` #### Set Signature [#set-signature-25] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-28] ###### value [#value-23] `ColorSource` ##### Returns [#returns-67] `void` #### Inherited from [#inherited-from-139] `PIXI.AnimatedSprite.tint` *** ### totalFrames [#totalframes] #### Get Signature [#get-signature-33] \> **get** **totalFrames**(): `number` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:597 The total number of frames in the AnimatedSprite. This is the same as number of textures assigned to the AnimatedSprite. ##### Example [#example-95] ```ts // Create an animated sprite const sprite = new AnimatedSprite({ textures: [ Texture.from('frame1.png'), Texture.from('frame2.png'), Texture.from('frame3.png') ] }); // Get total frames console.log(sprite.totalFrames); // Outputs: 3 // Use with frame navigation sprite.gotoAndStop(sprite.totalFrames - 1); // Go to last frame ``` ##### See [#see-29] * [AnimatedSprite#currentFrame](#currentframe) For the current frame index * [AnimatedSprite#textures](#textures) For the array of textures ##### Returns [#returns-68] `number` The total number of frames #### Inherited from [#inherited-from-140] `PIXI.AnimatedSprite.totalFrames` *** ### visible [#visible] #### Get Signature [#get-signature-34] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-96] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-63] ```ts true ``` ##### See [#see-30] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-69] `boolean` #### Set Signature [#set-signature-26] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-29] ###### value [#value-24] `boolean` ##### Returns [#returns-70] `void` #### Inherited from [#inherited-from-141] `PIXI.AnimatedSprite.visible` *** ### visualBounds [#visualbounds] #### Get Signature [#get-signature-35] \> **get** **visualBounds**(): `BoundsData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:205 The bounds of the sprite, taking into account the texture's trim area. ##### Example [#example-97] ````ts const texture = new Texture({ source: new TextureSource({ width: 300, height: 300 }), frame: new Rectangle(196, 66, 58, 56), trim: new Rectangle(4, 4, 58, 56), orig: new Rectangle(0, 0, 64, 64), rotate: 2, }); const sprite = new Sprite(texture); const visualBounds = sprite.visualBounds; // console.log(visualBounds); // { minX: -4, maxX: 62, minY: -4, maxY: 60 } ##### Returns `BoundsData` #### Inherited from `PIXI.AnimatedSprite.visualBounds` *** ### width #### Get Signature > **get** **width**(): `number` Defined in: node\_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:278 The width of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example ```ts // Set width directly sprite.width = 200; console.log(sprite.scale.x); // Scale adjusted to match width // Set width while preserving aspect ratio const ratio = sprite.height / sprite.width; sprite.width = 300; sprite.height = 300 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.width = sprite.texture.orig.width; ```` ##### Returns [#returns-71] `number` #### Set Signature [#set-signature-27] > **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:279 The width of the Container, setting this will actually modify the scale to achieve the value set. > \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. > \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) > as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-98] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Parameters [#parameters-30] ###### value [#value-25] `number` ##### Returns [#returns-72] `void` #### Inherited from [#inherited-from-142] `PIXI.AnimatedSprite.width` *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-36] > **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-99] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-31] [Container#localTransform](/pixi-vn/index/classes/VideoSprite#localtransform) For local space transform ##### Returns [#returns-73] `Matrix` #### Inherited from [#inherited-from-143] `PIXI.AnimatedSprite.worldTransform` *** ### x [#x-2] #### Get Signature [#get-signature-37] > **get** **x**(): `number` Defined in: [src/canvas/components/AnimatedSprite.ts:500](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L500) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-100] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-74] `number` #### Set Signature [#set-signature-28] > **set** **x**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:503](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L503) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-101] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-31] ###### value [#value-26] `number` ##### Returns [#returns-75] `void` #### Overrides [#overrides-3] `PIXI.AnimatedSprite.x` *** ### xAlign [#xalign] #### Get Signature [#get-signature-38] > **get** **xAlign**(): `number` Defined in: [src/canvas/components/AnimatedSprite.ts:359](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L359) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-76] `number` #### Set Signature [#set-signature-29] > **set** **xAlign**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:353](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L353) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-32] ###### value [#value-27] `number` ##### Returns [#returns-77] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-10] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#xalign) *** ### y [#y-2] #### Get Signature [#get-signature-39] > **get** **y**(): `number` Defined in: [src/canvas/components/AnimatedSprite.ts:508](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L508) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-102] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-78] `number` #### Set Signature [#set-signature-30] > **set** **y**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:511](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L511) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-103] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-33] ###### value [#value-28] `number` ##### Returns [#returns-79] `void` #### Overrides [#overrides-4] `PIXI.AnimatedSprite.y` *** ### yAlign [#yalign] #### Get Signature [#get-signature-40] > **get** **yAlign**(): `number` Defined in: [src/canvas/components/AnimatedSprite.ts:377](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L377) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-80] `number` #### Set Signature [#set-signature-31] > **set** **yAlign**(`value`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:371](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L371) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-34] ###### value [#value-29] `number` ##### Returns [#returns-81] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-11] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#yalign) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] > **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-35] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds-1] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-82] `void` #### Inherited from [#inherited-from-144] `PIXI.AnimatedSprite._getGlobalBoundsRecursive` *** ### \_onTouch()? [#_ontouch] > `optional` **\_onTouch**(`now`): `void` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:31 An optional callback for when an item is touched #### Parameters [#parameters-36] ##### now [#now] `number` #### Returns [#returns-83] `void` #### Inherited from [#inherited-from-145] `PIXI.AnimatedSprite._onTouch` *** ### addChild() [#addchild] > **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters] ##### U [#u] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-37] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-84] `U`\[`0`] The first child that was added #### Example [#example-104] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-32] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For adding at specific index #### Inherited from [#inherited-from-146] `PIXI.AnimatedSprite.addChild` *** ### addChildAt() [#addchildat] > **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-1] ##### U [#u-1] `U` *extends* `ContainerChild` #### Parameters [#parameters-38] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-85] `U` The child that was added #### Example [#example-105] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-33] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to the end * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For moving existing children #### Inherited from [#inherited-from-147] `PIXI.AnimatedSprite.addChildAt` *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] > **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-2] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-39] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options-1] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-86] `void` ##### Example [#example-106] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-148] `PIXI.AnimatedSprite.addEventListener` #### Call Signature [#call-signature-1] > **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-40] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-2] `AddListenerOptions` ##### Returns [#returns-87] `void` ##### Inherited from [#inherited-from-149] `PIXI.AnimatedSprite.addEventListener` *** ### addListener() [#addlistener] > **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-3] ##### T [#t] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-41] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-88] `this` #### Inherited from [#inherited-from-150] `PIXI.AnimatedSprite.addListener` *** ### collectRenderables() [#collectrenderables] > **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-42] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-89] `void` #### Inherited from [#inherited-from-151] `PIXI.AnimatedSprite.collectRenderables` *** ### collectRenderablesSimple() [#collectrenderablessimple] > **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:119 **`Internal`** Collects renderables for the view container. #### Parameters [#parameters-43] ##### instructionSet [#instructionset-1] `InstructionSet` The instruction set to collect renderables for. ##### renderer [#renderer-1] `Renderer` The renderer to collect renderables for. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer. #### Returns [#returns-90] `void` #### Inherited from [#inherited-from-152] `PIXI.AnimatedSprite.collectRenderablesSimple` *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] > **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-44] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-91] `void` #### Inherited from [#inherited-from-153] `PIXI.AnimatedSprite.collectRenderablesWithEffects` *** ### containsPoint() [#containspoint] > **containsPoint**(`point`): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:104 Checks if the object contains the given point in local coordinates. Uses the view's bounds for hit testing. #### Parameters [#parameters-45] ##### point [#point] `PointData` The point to check in local coordinates #### Returns [#returns-92] `boolean` True if the point is within the view's bounds #### Example [#example-107] ```ts // Basic point check const localPoint = { x: 50, y: 25 }; const contains = view.containsPoint(localPoint); console.log('Point is inside:', contains); ``` #### See [#see-34] * [ViewContainer#bounds](/pixi-vn/index/classes/VideoSprite#bounds) For the bounds used in hit testing * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting global coordinates to local #### Inherited from [#inherited-from-154] `PIXI.AnimatedSprite.containsPoint` *** ### destroy() [#destroy] > **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:529 Stops the AnimatedSprite and destroys it. This method stops the animation playback, removes it from the ticker, and cleans up any resources associated with the sprite. #### Parameters [#parameters-46] ##### options? [#options-3] `DestroyOptions` Options for destroying the sprite, such as whether to remove from parent #### Returns [#returns-93] `void` #### Example [#example-108] ```ts // Destroy the sprite when done sprite.destroy(); // Or with options sprite.destroy({ children: true, texture: true, textureSource: true }); ``` #### Inherited from [#inherited-from-155] `PIXI.AnimatedSprite.destroy` *** ### disableRenderGroup() [#disablerendergroup] > **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-94] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-156] `PIXI.AnimatedSprite.disableRenderGroup` *** ### dispatchEvent() [#dispatchevent] > **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this [Container](/pixi-vn/index/classes/Container) using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-47] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-95] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-109] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-157] `PIXI.AnimatedSprite.dispatchEvent` *** ### emit() [#emit] > **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-4] ##### T [#t-1] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-48] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`ContainerChild`> & `AnyEvent`>\[`Extract`\<`T`, keyof ContainerEvents\ | keyof AnyEvent>] #### Returns [#returns-96] `boolean` #### Inherited from [#inherited-from-158] `PIXI.AnimatedSprite.emit` *** ### enableRenderGroup() [#enablerendergroup] > **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-97] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-159] `PIXI.AnimatedSprite.enableRenderGroup` *** ### eventNames() [#eventnames] > **eventNames**(): (keyof ContainerEvents\ | keyof AnyEvent)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-98] (keyof ContainerEvents\ | keyof AnyEvent)\[] #### Inherited from [#inherited-from-160] `PIXI.AnimatedSprite.eventNames` *** ### getBounds() [#getbounds] > **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-49] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-2] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-99] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-110] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-35] * [Container#getLocalBounds](/pixi-vn/index/classes/VideoSprite#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-161] `PIXI.AnimatedSprite.getBounds` *** ### getChildAt() [#getchildat] > **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-5] ##### U [#u-2] `U` *extends* `ContainerChild` #### Parameters [#parameters-50] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-100] `U` The child at the given index #### Example [#example-111] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-3] If index is out of bounds #### See [#see-36] * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-162] `PIXI.AnimatedSprite.getChildAt` *** ### getChildByLabel() [#getchildbylabel] > **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-51] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-101] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-112] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-37] * [Container#getChildrenByLabel](/pixi-vn/index/classes/Container#getchildrenbylabel) For finding all matches * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-163] `PIXI.AnimatedSprite.getChildByLabel` *** ### ~~getChildByName()~~ [#getchildbyname] > **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-52] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-102] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-38] Container#getChildByLabel #### Inherited from [#inherited-from-164] `PIXI.AnimatedSprite.getChildByName` *** ### getChildIndex() [#getchildindex] > **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-53] ##### child [#child-1] `ContainerChild` The Container instance to identify #### Returns [#returns-103] `number` The index position of the child container #### Example [#example-113] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-4] If child is not in this container #### See [#see-39] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For changing index * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access #### Inherited from [#inherited-from-165] `PIXI.AnimatedSprite.getChildIndex` *** ### getChildrenByLabel() [#getchildrenbylabel] > **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-54] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-104] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-114] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-40] * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For finding first match * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-166] `PIXI.AnimatedSprite.getChildrenByLabel` *** ### getFastGlobalBounds() [#getfastglobalbounds] > **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-55] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-3] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-105] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-167] `PIXI.AnimatedSprite.getFastGlobalBounds` *** ### getGlobalAlpha() [#getglobalalpha] > **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-56] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-106] `number` The resulting alpha value (between 0 and 1) #### Example [#example-115] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-168] `PIXI.AnimatedSprite.getGlobalAlpha` *** ### getGlobalPosition() [#getglobalposition] > **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-57] ##### point? [#point-1] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-107] `Point` The updated point #### Example [#example-116] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-41] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For converting specific points * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting to local space #### Inherited from [#inherited-from-169] `PIXI.AnimatedSprite.getGlobalPosition` *** ### getGlobalTint() [#getglobaltint] > **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-58] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-108] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-117] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-170] `PIXI.AnimatedSprite.getGlobalTint` *** ### getGlobalTransform() [#getglobaltransform] > **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-59] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-109] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-118] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-171] `PIXI.AnimatedSprite.getGlobalTransform` *** ### getLocalBounds() [#getlocalbounds] > **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-110] `Bounds` The bounding area #### Example [#example-119] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-42] * [Container#getBounds](/pixi-vn/index/classes/VideoSprite#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-172] `PIXI.AnimatedSprite.getLocalBounds` *** ### getSize() [#getsize] > **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:322 Retrieves the size of the Sprite as a \[Size]Size object based on the texture dimensions and scale. This is faster than getting width and height separately as it only calculates the bounds once. #### Parameters [#parameters-60] ##### out? [#out-1] `Size` Optional object to store the size in, to avoid allocating a new object #### Returns [#returns-111] `Size` The size of the Sprite #### Example [#example-120] ```ts // Basic size retrieval const sprite = new Sprite(Texture.from('sprite.png')); const size = sprite.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; sprite.getSize(reuseSize); ``` #### See [#see-43] * [Sprite#width](/pixi-vn/index/classes/Sprite#width) For getting just the width * [Sprite#height](/pixi-vn/index/classes/Sprite#height) For getting just the height * [Sprite#setSize](/pixi-vn/index/classes/Sprite#setsize) For setting both width and height #### Inherited from [#inherited-from-173] `PIXI.AnimatedSprite.getSize` *** ### gotoAndPlay() [#gotoandplay] > **gotoAndPlay**(`frameNumber`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:487 Goes to a specific frame and begins playing the AnimatedSprite from that point. Combines frame navigation and playback start in one operation. #### Parameters [#parameters-61] ##### frameNumber [#framenumber] `number` Frame index to start playing from (0-based) #### Returns [#returns-112] `void` #### Example [#example-121] ```ts // Start from specific frame sprite.gotoAndPlay(1); // Starts playing from second frame ``` #### Throws [#throws-5] If frameNumber is out of bounds #### See [#see-44] * [AnimatedSprite#gotoAndStop](#gotoandstop) For going to a frame without playing * [AnimatedSprite#play](#play) For playing from current frame * [AnimatedSprite#currentFrame](#currentframe) For getting/setting current frame #### Inherited from [#inherited-from-174] `PIXI.AnimatedSprite.gotoAndPlay` *** ### gotoAndStop() [#gotoandstop] > **gotoAndStop**(`frameNumber`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:472 Stops the AnimatedSprite and sets it to a specific frame. #### Parameters [#parameters-62] ##### frameNumber [#framenumber-1] `number` Frame index to stop at (0-based) #### Returns [#returns-113] `void` #### Example [#example-122] ```ts // Create an animated sprite const sprite = new AnimatedSprite({ textures: [ Texture.from('walk1.png'), Texture.from('walk2.png'), Texture.from('walk3.png'), ] }); // Go to specific frames sprite.gotoAndStop(0); // First frame sprite.gotoAndStop(2); // Third frame // Jump to last frame sprite.gotoAndStop(sprite.totalFrames - 1); ``` #### Throws [#throws-6] If frameNumber is out of bounds #### See [#see-45] * [AnimatedSprite#gotoAndPlay](#gotoandplay) For going to a frame and playing * [AnimatedSprite#currentFrame](#currentframe) For getting/setting current frame * [AnimatedSprite#totalFrames](#totalframes) For total number of frames #### Inherited from [#inherited-from-175] `PIXI.AnimatedSprite.gotoAndStop` *** ### listenerCount() [#listenercount] > **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-63] ##### event [#event-2] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-114] `number` #### Inherited from [#inherited-from-176] `PIXI.AnimatedSprite.listenerCount` *** ### listeners() [#listeners] > **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-6] ##### T [#t-2] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-64] ##### event [#event-3] `T` #### Returns [#returns-115] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-177] `PIXI.AnimatedSprite.listeners` *** ### load() [#load] > **load**(): `Promise`\<`void`> Defined in: [src/canvas/components/AnimatedSprite.ts:202](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L202) Load the frames described by [source](#source) and set them as the textures of the component. The current frame and the playing state set before the loading are kept. #### Returns [#returns-116] `Promise`\<`void`> A promise that resolves when the frames are loaded. *** ### off() [#off] > **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-7] ##### T [#t-3] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-65] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-117] `this` #### Inherited from [#inherited-from-178] `PIXI.AnimatedSprite.off` *** ### on() [#on] Add a listener for a given event. #### Example [#example-123] ```ts export class Events { \@eventDecorator() static eventExample(event: FederatedEvent, component: Sprite) { // event code here } } sprite.on("pointerdown", Events.eventExample); ``` #### Call Signature [#call-signature-2] > **on**(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/AnimatedSprite.ts:296](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L296) Add a listener for the `"complete"` or `"loop"` animation event. Register the listener with `eventDecorator` to save it. ##### Parameters [#parameters-66] ###### event [#event-5] `"loop"` | `"complete"` ###### fn [#fn-2] (`component`) => `void` ###### context? [#context-2] `any` ##### Returns [#returns-118] `this` ##### Implementation of [#implementation-of-12] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`on`](/pixi-vn/index/interfaces/ListenerExtension#on) ##### Overrides [#overrides-5] `PIXI.AnimatedSprite.on` #### Call Signature [#call-signature-3] > **on**(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/AnimatedSprite.ts:300](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L300) Add a listener for the `"frameChange"` animation event. Register the listener with `eventDecorator` to save it. ##### Parameters [#parameters-67] ###### event [#event-6] `"frameChange"` ###### fn [#fn-3] (`currentFrame`, `component`) => `void` ###### context? [#context-3] `any` ##### Returns [#returns-119] `this` ##### Implementation of [#implementation-of-13] `ListenerExtension.on` ##### Overrides [#overrides-6] `PIXI.AnimatedSprite.on` #### Call Signature [#call-signature-4] > **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/AnimatedSprite.ts:305](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L305) Add a listener for the `"complete"` or `"loop"` animation event. Register the listener with `eventDecorator` to save it. ##### Type Parameters [#type-parameters-8] ###### T [#t-4] `T` *extends* [`ListenerEventName`](/pixi-vn/index/type-aliases/ListenerEventName) ##### Parameters [#parameters-68] ###### event [#event-7] `T` ###### fn [#fn-4] (...`args`) => `void` ###### context? [#context-4] `any` ##### Returns [#returns-120] `this` ##### Implementation of [#implementation-of-14] `ListenerExtension.on` ##### Overrides [#overrides-7] `PIXI.AnimatedSprite.on` *** ### once() [#once-1] > **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-5] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-69] ##### event [#event-8] `T` ##### fn [#fn-5] (...`args`) => `void` ##### context? [#context-5] `any` #### Returns [#returns-121] `this` #### Inherited from [#inherited-from-179] `PIXI.AnimatedSprite.once` *** ### play() [#play] > **play**(): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:445 Starts or resumes the animation playback. If the animation was previously stopped, it will continue from where it left off. #### Returns [#returns-122] `void` #### Example [#example-124] ```ts // Basic playback const sprite = new AnimatedSprite({ textures: [ Texture.from('walk1.png'), Texture.from('walk2.png'), ], autoPlay: false }); sprite.play(); // Play after stopping sprite.stop(); sprite.currentFrame = 0; // Reset to start sprite.play(); // Play from beginning // Play with auto-update disabled sprite.autoUpdate = false; sprite.play(); app.ticker.add(() => { sprite.update(app.ticker); // Manual updates }); ``` #### See [#see-46] * [AnimatedSprite#stop](#stop) For stopping playback * [AnimatedSprite#gotoAndPlay](#gotoandplay) For playing from a specific frame * [AnimatedSprite#playing](#playing) For checking play state #### Inherited from [#inherited-from-180] `PIXI.AnimatedSprite.play` *** ### reloadPosition() [#reloadposition] > `protected` **reloadPosition**(): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:453](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L453) #### Returns [#returns-123] `void` *** ### removeAllListeners() [#removealllisteners] > **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-70] ##### event? [#event-9] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-124] `this` #### Inherited from [#inherited-from-181] `PIXI.AnimatedSprite.removeAllListeners` *** ### removeChild() [#removechild] > **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-10] ##### U [#u-3] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-71] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-125] `U`\[`0`] The first child that was removed #### Example [#example-125] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-47] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-182] `PIXI.AnimatedSprite.removeChild` *** ### removeChildAt() [#removechildat] > **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-11] ##### U [#u-4] `U` *extends* `ContainerChild` #### Parameters [#parameters-72] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-126] `U` The child that was removed #### Example [#example-126] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-7] If index is out of bounds #### See [#see-48] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-183] `PIXI.AnimatedSprite.removeChildAt` *** ### removeChildren() [#removechildren] > **removeChildren**(`beginIndex?`, `endIndex?`): `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-73] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-127] `ContainerChild`\[] List of removed children #### Example [#example-127] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-8] If begin/end indexes are invalid #### See [#see-49] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children #### Inherited from [#inherited-from-184] `PIXI.AnimatedSprite.removeChildren` *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-5] > **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-12] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-74] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-4] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-128] `void` ##### Inherited from [#inherited-from-185] `PIXI.AnimatedSprite.removeEventListener` #### Call Signature [#call-signature-6] > **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-75] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-5] `RemoveListenerOptions` ##### Returns [#returns-129] `void` ##### Inherited from [#inherited-from-186] `PIXI.AnimatedSprite.removeEventListener` *** ### removeFromParent() [#removefromparent] > **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-130] `void` #### Example [#example-128] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-50] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a new parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For parent removing children #### Inherited from [#inherited-from-187] `PIXI.AnimatedSprite.removeFromParent` *** ### removeListener() [#removelistener] > **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-13] ##### T [#t-6] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-76] ##### event [#event-10] `T` ##### fn? [#fn-6] (...`args`) => `void` ##### context? [#context-6] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-131] `this` #### Inherited from [#inherited-from-188] `PIXI.AnimatedSprite.removeListener` *** ### reparentChild() [#reparentchild] > **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-14] ##### U [#u-5] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-77] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-132] `U`\[`0`] The first child that was reparented #### Example [#example-129] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-51] * [Container#reparentChildAt](/pixi-vn/index/classes/Container#reparentchildat) For index-specific reparenting * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For simple parenting #### Inherited from [#inherited-from-189] `PIXI.AnimatedSprite.reparentChild` *** ### reparentChildAt() [#reparentchildat] > **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-6] `U` *extends* `ContainerChild` #### Parameters [#parameters-78] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-133] `U` The reparented child #### Example [#example-130] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-9] If index is out of bounds #### See [#see-52] * [Container#reparentChild](/pixi-vn/index/classes/Container#reparentchild) For appending reparented children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-190] `PIXI.AnimatedSprite.reparentChildAt` *** ### replaceChild() [#replacechild] > **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-16] ##### U [#u-7] `U` *extends* `ContainerChild` ##### T [#t-7] `T` *extends* `ContainerChild` #### Parameters [#parameters-79] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-134] `void` #### Inherited from [#inherited-from-191] `PIXI.AnimatedSprite.replaceChild` *** ### setChildIndex() [#setchildindex] > **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-80] ##### child [#child-4] `ContainerChild` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-135] `void` #### Example [#example-131] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-10] If index is out of bounds #### Throws [#throws-11] If child is not in container #### See [#see-53] * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current index * [Container#swapChildren](/pixi-vn/index/classes/Container#swapchildren) For swapping positions #### Inherited from [#inherited-from-192] `PIXI.AnimatedSprite.setChildIndex` *** ### setFrame() [#setframe] > **setFrame**(`frameNumber`, `play?`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:242](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L242) Go to a frame. If the frames are not loaded yet, the frame is applied by [load](#load). #### Parameters [#parameters-81] ##### frameNumber [#framenumber-2] `number` The index of the frame. ##### play? [#play-1] `boolean` = `...` If `true`, the animation starts playing from that frame. #### Returns [#returns-136] `void` *** ### setFromMatrix() [#setfrommatrix] > **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-82] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-137] `void` #### Example [#example-132] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-54] * [Container#updateTransform](/pixi-vn/index/classes/Container#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-193] `PIXI.AnimatedSprite.setFromMatrix` *** ### setMask() [#setmask] > **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-83] ##### options [#options-6] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-138] `void` #### Example [#example-133] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-55] * [Container#mask](/pixi-vn/index/classes/VideoSprite#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-194] `PIXI.AnimatedSprite.setMask` *** ### setMemory() [#setmemory] > **setMemory**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/AnimatedSprite.ts:162](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L162) This method set the memory of the canvas element. #### Parameters [#parameters-84] ##### value [#value-30] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory) #### Returns [#returns-139] `Promise`\<`void`> #### Throws [#throws-12] when the method is not overridden in the subclass. #### Implementation of [#implementation-of-15] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`setMemory`](/pixi-vn/index/classes/CanvasBaseItem#setmemory) *** ### setSize() [#setsize] > **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:353 Sets the size of the Sprite to the specified width and height. This is faster than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-85] ##### value [#value-31] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a Size object ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided #### Returns [#returns-140] `void` #### Example [#example-134] ```ts // Basic size setting const sprite = new Sprite(Texture.from('sprite.png')); sprite.setSize(100, 200); // Width: 100, Height: 200 // Set uniform size sprite.setSize(100); // Sets both width and height to 100 // Set size with object sprite.setSize({ width: 200, height: 300 }); // Reset to texture size sprite.setSize( sprite.texture.orig.width, sprite.texture.orig.height ); ``` #### See [#see-56] * [Sprite#width](/pixi-vn/index/classes/Sprite#width) For setting width only * [Sprite#height](/pixi-vn/index/classes/Sprite#height) For setting height only * [Sprite#texture](/pixi-vn/index/classes/Sprite#texture) For the source dimensions #### Inherited from [#inherited-from-195] `PIXI.AnimatedSprite.setSize` *** ### stop() [#stop] > **stop**(): `void` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:413 Stops the animation playback and freezes the current frame. Does not reset the current frame or animation progress. #### Returns [#returns-141] `void` #### Example [#example-135] ```ts // Create an animated sprite const sprite = new AnimatedSprite({ textures: [ Texture.from('walk1.png'), Texture.from('walk2.png'), Texture.from('walk3.png') ], autoPlay: true }); // Stop at current frame sprite.stop(); // Stop at specific frame sprite.gotoAndStop(1); // Stops at second frame // Stop and reset sprite.stop(); sprite.currentFrame = 0; // Stop with completion check if (sprite.playing) { sprite.stop(); sprite.onComplete?.(); } ``` #### See [#see-57] * [AnimatedSprite#play](#play) For starting playback * [AnimatedSprite#gotoAndStop](#gotoandstop) For stopping at a specific frame * [AnimatedSprite#playing](#playing) For checking play state #### Inherited from [#inherited-from-196] `PIXI.AnimatedSprite.stop` *** ### swapChildren() [#swapchildren] > **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-17] ##### U [#u-8] `U` *extends* `ContainerChild` #### Parameters [#parameters-86] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-142] `void` #### Example [#example-136] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-13] If either child is not in container #### See [#see-58] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For direct index placement * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current positions #### Inherited from [#inherited-from-197] `PIXI.AnimatedSprite.swapChildren` *** ### toGlobal() [#toglobal] > **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-18] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-87] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-2] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-143] `P` The global position #### Example [#example-137] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-59] * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-198] `PIXI.AnimatedSprite.toGlobal` *** ### toLocal() [#tolocal] > **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-19] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-88] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-3] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-144] `P` A point object representing the position in local space #### Example [#example-138] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-60] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-199] `PIXI.AnimatedSprite.toLocal` *** ### unload() [#unload] > **unload**(): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:110 Unloads the GPU data from the view. #### Returns [#returns-145] `void` #### Inherited from [#inherited-from-200] `PIXI.AnimatedSprite.unload` *** ### update() [#update] > **update**(`ticker`): `void` Defined in: [src/canvas/components/AnimatedSprite.ts:275](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L275) Updates the object transform for rendering. This method handles animation timing, frame updates, and manages looping behavior. #### Parameters [#parameters-89] ##### ticker [#ticker] [`TickerValue`](/pixi-vn/index/interfaces/TickerValue) The ticker to use for updating the animation timing #### Returns [#returns-146] `void` #### Example [#example-139] ```ts // Create an animated sprite with manual updates const sprite = new AnimatedSprite({ textures: [ Texture.from('frame1.png'), Texture.from('frame2.png'), Texture.from('frame3.png') ], autoUpdate: false // Disable automatic updates }); // Manual update with app ticker app.ticker.add((ticker) => { sprite.update(ticker); }); ``` #### See [#see-61] * [AnimatedSprite#autoUpdate](#autoupdate) For controlling automatic updates * [AnimatedSprite#animationSpeed](#animationspeed) For controlling animation speed * [Ticker](/pixi-vn/index/interfaces/TickerValue) For timing system details #### Overrides [#overrides-8] `PIXI.AnimatedSprite.update` *** ### updateLocalTransform() [#updatelocaltransform] > **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-147] `void` #### Inherited from [#inherited-from-201] `PIXI.AnimatedSprite.updateLocalTransform` *** ### updateTransform() [#updatetransform] > **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-90] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-148] `this` This container, for chaining #### Example [#example-140] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-62] * [Container#setFromMatrix](/pixi-vn/index/classes/Container#setfrommatrix) For matrix-based transforms * [Container#position](/pixi-vn/index/interfaces/CanvasBaseInterface#position) For direct position access #### Inherited from [#inherited-from-202] `PIXI.AnimatedSprite.updateTransform` *** ### withSilentEvents() [#withsilentevents] > **withSilentEvents**\<`T`>(`fn`): `Promise`\<`T`> Defined in: [src/canvas/components/AnimatedSprite.ts:132](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L132) **`Internal`** Run `fn` without emitting animation events. #### Type Parameters [#type-parameters-20] ##### T [#t-8] `T` #### Parameters [#parameters-91] ##### fn [#fn-7] () => `T` | `Promise`\<`T`> #### Returns [#returns-149] `Promise`\<`T`> *** ### from() [#from-1] > `static` **from**(`source`, `skipCache?`): `Sprite` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:149 Creates a new sprite based on a source texture, image, video, or canvas element. This is a convenience method that automatically creates and manages textures. #### Parameters [#parameters-92] ##### source [#source-2] `Texture`\<`TextureSource`\<`any`>> | [`TextureSourceLike`](/pixi-vn/index/type-aliases/TextureSourceLike) The source to create the sprite from. Can be a path to an image, a texture, or any valid texture source (canvas, video, etc.) ##### skipCache? [#skipcache] `boolean` Whether to skip adding to the texture cache when creating a new texture #### Returns [#returns-150] `Sprite` A new sprite based on the source #### Example [#example-141] ```ts // Create from path or URL const sprite = Sprite.from('assets/image.png'); // Create from existing texture const sprite = Sprite.from(texture); // Create from canvas const canvas = document.createElement('canvas'); const sprite = Sprite.from(canvas, true); // Skip caching new texture ``` #### See [#see-63] * Texture.from For texture creation details * [Assets](/pixi-vn/index/variables/Assets) For asset loading and management #### Inherited from [#inherited-from-203] `PIXI.AnimatedSprite.from` *** ### fromFrames() [#fromframes] \> `static` **fromFrames**(`_frames`): `AnimatedSprite` Defined in: [src/canvas/components/AnimatedSprite.ts:171](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L171) Not supported: the frames of an AnimatedSprite must be described by an [AnimatedSpriteSource](/pixi-vn/index/interfaces/AnimatedSpriteSource), so they can be saved. Use `new AnimatedSprite(options, { frames })` and [load](#load) instead. #### Parameters [#parameters-93] ##### \_frames [#_frames] `string`\[] #### Returns [#returns-151] `AnimatedSprite` #### Throws [#throws-14] always. #### Overrides [#overrides-9] `PIXI.AnimatedSprite.fromFrames` *** ### fromImages() [#fromimages] \> `static` **fromImages**(`_images`): `AnimatedSprite` Defined in: [src/canvas/components/AnimatedSprite.ts:182](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L182) Not supported: the frames of an AnimatedSprite must be described by an [AnimatedSpriteSource](/pixi-vn/index/interfaces/AnimatedSpriteSource), so they can be saved. Use `new AnimatedSprite(options, { frames })` and [load](#load) instead. #### Parameters [#parameters-94] ##### \_images [#_images] `string`\[] #### Returns [#returns-152] `AnimatedSprite` #### Throws [#throws-15] always. #### Overrides [#overrides-10] `PIXI.AnimatedSprite.fromImages` *** ### ~~mixin()~~ [#mixin] \> `static` **mixin**(`source`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:605 Mixes all enumerable properties and methods from a source object to Container. #### Parameters [#parameters-95] ##### source [#source-3] `Dict`\<`any`> The source of properties and methods to mix in. #### Returns [#returns-153] `void` #### Deprecated [#deprecated-3] since 8.8.0 #### Inherited from [#inherited-from-204] `PIXI.AnimatedSprite.mixin` # Class: CachedMap (/pixi-vn/index/classes/CachedMap) Defined in: [src/classes/CachedMap.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L3) ## Type Parameters [#type-parameters] ### K [#k] `K` *extends* `object` ### V [#v] `V` *extends* `object` ## Implements [#implements] * `Map`\<`K`, `V`> ## Constructors [#constructors] ### Constructor [#constructor] \> **new CachedMap**\<`K`, `V`>(`options`): `CachedMap`\<`K`, `V`> Defined in: [src/classes/CachedMap.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L6) #### Parameters [#parameters] ##### options [#options] ###### cacheSize [#cachesize] `number` #### Returns [#returns] `CachedMap`\<`K`, `V`> ## Properties [#properties] ### cache [#cache] \> `readonly` **cache**: `LRUCache`\<`K`, `V`> Defined in: [src/classes/CachedMap.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L4) *** ### map [#map] \> `readonly` **map**: `Map`\<`K`, `V`> Defined in: [src/classes/CachedMap.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L5) ## Accessors [#accessors] ### \[iterator] [#iterator] #### Get Signature [#get-signature] \> **get** **\[iterator]**(): () => `MapIterator`\<\[`K`, `V`]> Defined in: [src/classes/CachedMap.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L12) ##### Returns [#returns-1] \> (): `MapIterator`\<\[`K`, `V`]> Returns an iterable of entries in the map. ###### Returns [#returns-2] `MapIterator`\<\[`K`, `V`]> #### Implementation of [#implementation-of] `Map.[iterator]` *** ### \[toStringTag] [#tostringtag] #### Get Signature [#get-signature-1] \> **get** **\[toStringTag]**(): `string` Defined in: [src/classes/CachedMap.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L15) ##### Returns [#returns-3] `string` #### Implementation of [#implementation-of-1] `Map.[toStringTag]` *** ### forEach [#foreach] #### Get Signature [#get-signature-2] \> **get** **forEach**(): (`callbackfn`, `thisArg?`) => `void` Defined in: [src/classes/CachedMap.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L29) Executes a provided function once per each key/value pair in the Map, in insertion order. ##### Returns [#returns-4] \> (`callbackfn`, `thisArg?`): `void` Executes a provided function once per each key/value pair in the Map, in insertion order. ###### Parameters [#parameters-1] ###### callbackfn [#callbackfn] (`value`, `key`, `map`) => `void` ###### thisArg? [#thisarg] `any` ###### Returns [#returns-5] `void` #### Implementation of [#implementation-of-2] `Map.forEach` *** ### size [#size] #### Get Signature [#get-signature-3] \> **get** **size**(): `number` Defined in: [src/classes/CachedMap.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L47) ##### Returns [#returns-6] `number` the number of elements in the Map. #### Implementation of [#implementation-of-3] `Map.size` ## Methods [#methods] ### clear() [#clear] \> **clear**(): `void` Defined in: [src/classes/CachedMap.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L18) #### Returns [#returns-7] `void` #### Implementation of [#implementation-of-4] `Map.clear` *** ### delete() [#delete] \> **delete**(`key`): `boolean` Defined in: [src/classes/CachedMap.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L22) #### Parameters [#parameters-2] ##### key [#key] `K` #### Returns [#returns-8] `boolean` true if an element in the Map existed and has been removed, or false if the element does not exist. #### Implementation of [#implementation-of-5] `Map.delete` *** ### entries() [#entries] \> **entries**(): `MapIterator`\<\[`K`, `V`]> Defined in: [src/classes/CachedMap.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L50) Returns an iterable of key, value pairs for every entry in the map. #### Returns [#returns-9] `MapIterator`\<\[`K`, `V`]> #### Implementation of [#implementation-of-6] `Map.entries` *** ### get() [#get] \> **get**(`key`): `V` | `undefined` Defined in: [src/classes/CachedMap.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L32) Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. #### Parameters [#parameters-3] ##### key [#key-1] `K` #### Returns [#returns-10] `V` | `undefined` Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned. #### Implementation of [#implementation-of-7] `Map.get` *** ### has() [#has] \> **has**(`key`): `boolean` Defined in: [src/classes/CachedMap.ts:39](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L39) #### Parameters [#parameters-4] ##### key [#key-2] `K` #### Returns [#returns-11] `boolean` boolean indicating whether an element with the specified key exists or not. #### Implementation of [#implementation-of-8] `Map.has` *** ### keys() [#keys] \> **keys**(): `MapIterator`\<`K`> Defined in: [src/classes/CachedMap.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L53) Returns an iterable of keys in the map #### Returns [#returns-12] `MapIterator`\<`K`> #### Implementation of [#implementation-of-9] `Map.keys` *** ### set() [#set] \> **set**(`key`, `value`): `this` Defined in: [src/classes/CachedMap.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L42) Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated. #### Parameters [#parameters-5] ##### key [#key-3] `K` ##### value [#value] `V` #### Returns [#returns-13] `this` #### Implementation of [#implementation-of-10] `Map.set` *** ### values() [#values] \> **values**(): `MapIterator`\<`V`> Defined in: [src/classes/CachedMap.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/classes/CachedMap.ts#L56) Returns an iterable of values in the map #### Returns [#returns-14] `MapIterator`\<`V`> #### Implementation of [#implementation-of-11] `Map.values` # Class: CanvasBaseItem (/pixi-vn/index/classes/CanvasBaseItem) Defined in: [src/canvas/classes/CanvasBaseItem.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L31) This class is used to create a canvas element to add into a Pixi Application. You can use [()](/pixi-vn/index/interfaces/CanvasManagerInterface#add) to add this element into the application. This class should be implemented and the memory method should be overridden. You must use the [canvasComponentDecorator](/pixi-vn/index/namespaces/RegisteredCanvasComponents) to register the canvas in the game. In Ren'Py is a displayable. ## Example [#example] ```ts const CANVAS_EXAMPLE_ID = "CanvasExample"; \@canvasComponentDecorator({ name: CANVAS_EXAMPLE_ID, }) export class CanvasExample extends Container implements CanvasBaseItem { get memory(): Memory { return { pixivnId: CANVAS_EXAMPLE_ID, // ... other properties } } async setMemory(value: Memory) { // ... set other properties } } ``` ## Extended by [#extended-by] * [`CanvasBaseInterface`](/pixi-vn/index/interfaces/CanvasBaseInterface) ## Type Parameters [#type-parameters] ### T2 [#t2] `T2` *extends* [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) ## Constructors [#constructors] ### Constructor [#constructor] \> **new CanvasBaseItem**\<`T2`>(...`_options`): `CanvasBaseItem`\<`T2`> Defined in: [src/canvas/classes/CanvasBaseItem.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L32) #### Parameters [#parameters] ##### \_options [#_options] ...`any` #### Returns [#returns] `CanvasBaseItem`\<`T2`> ## Properties [#properties] ### pixivnId [#pixivnid] \> **pixivnId**: `string` = `"canvas_element_id_not_set"` Defined in: [src/canvas/classes/CanvasBaseItem.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L56) Get the id of the canvas element. This variable is used in the system to get the canvas element by id ## Accessors [#accessors] ### memory [#memory] #### Get Signature [#get-signature] \> **get** **memory**(): `T2` Defined in: [src/canvas/classes/CanvasBaseItem.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L37) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-1] `T2` ## Methods [#methods] ### setMemory() [#setmemory] \> **setMemory**(`_value`): `void` | `Promise`\<`void`> Defined in: [src/canvas/classes/CanvasBaseItem.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L47) This method set the memory of the canvas element. #### Parameters [#parameters-1] ##### \_value [#_value] `T2` #### Returns [#returns-2] `void` | `Promise`\<`void`> #### Throws [#throws-1] when the method is not overridden in the subclass. # Class: CanvasManagerStatic (/pixi-vn/index/classes/CanvasManagerStatic) Defined in: [src/canvas/CanvasManagerStatic.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L12) This class is responsible for managing the canvas, the tickers, the events, and the window size and the children of the window. ## Properties [#properties] ### \_isInitialized [#_isinitialized] \> `static` **\_isInitialized**: `boolean` = `false` Defined in: [src/canvas/CanvasManagerStatic.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L44) *** ### canvasHeight [#canvasheight] \> `static` **canvasHeight**: `number` = `300` Defined in: [src/canvas/CanvasManagerStatic.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L43) *** ### canvasWidth [#canvaswidth] \> `static` **canvasWidth**: `number` = `300` Defined in: [src/canvas/CanvasManagerStatic.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L42) *** ### htmlLayers [#htmllayers] \> `static` **htmlLayers**: `HTMLElement`\[] = `[]` Defined in: [src/canvas/CanvasManagerStatic.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L41) This is the div that have same size of the canvas. This is useful to put interface elements. You can use React or other framework to put elements in this div. ## Accessors [#accessors] ### app [#app] #### Get Signature [#get-signature] \> **get** `static` **app**(): `Application`\<`Renderer`> Defined in: [src/canvas/CanvasManagerStatic.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L20) The Pixi.js application instance. ##### Throws [#throws] when the canvas has not been initialized yet (i.e. before calling `Game.init()`). ##### Returns [#returns] `Application`\<`Renderer`> *** ### childrenAliasesOrder [#childrenaliasesorder] #### Get Signature [#get-signature-1] \> **get** `static` **childrenAliasesOrder**(): `string`\[] Defined in: [src/canvas/CanvasManagerStatic.ts:213](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L213) The order of the elements in the canvas, is determined by the zIndex. ##### Returns [#returns-1] `string`\[] *** ### gameLayer [#gamelayer] #### Get Signature [#get-signature-2] \> **get** `static` **gameLayer**(): `Container`\<`ContainerChild`> Defined in: [src/canvas/CanvasManagerStatic.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L27) ##### Returns [#returns-2] `Container`\<`ContainerChild`> ## Methods [#methods] ### addHtmlLayer() [#addhtmllayer] \> `static` **addHtmlLayer**(`id`, `element`, `style?`): `HTMLDivElement` Defined in: [src/canvas/CanvasManagerStatic.ts:130](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L130) #### Parameters [#parameters] ##### id [#id] `string` ##### element [#element] `HTMLElement` ##### style? [#style] `Partial`\<`Pick`\<`CSSStyleDeclaration`, `"position"` | `"pointerEvents"` | `"userSelect"`>> = `{}` #### Returns [#returns-3] `HTMLDivElement` *** ### getHtmlLayer() [#gethtmllayer] \> `static` **getHtmlLayer**(`id`): `HTMLElement` | `undefined` Defined in: [src/canvas/CanvasManagerStatic.ts:155](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L155) #### Parameters [#parameters-1] ##### id [#id-1] `string` #### Returns [#returns-4] `HTMLElement` | `undefined` *** ### init() [#init] \> `static` **init**(`element`, `options?`, `devtoolsOptions?`): `Promise`\<`void`> Defined in: [src/canvas/CanvasManagerStatic.ts:46](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L46) #### Parameters [#parameters-2] ##### element [#element-1] `HTMLElement` ##### options? [#options] `Partial`\<[`ApplicationOptions`](/pixi-vn/index/interfaces/ApplicationOptions)> & `object` ##### devtoolsOptions? [#devtoolsoptions] `Devtools` #### Returns [#returns-5] `Promise`\<`void`> *** ### removeHtmlLayer() [#removehtmllayer] \> `static` **removeHtmlLayer**(`id`): `void` Defined in: [src/canvas/CanvasManagerStatic.ts:146](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/CanvasManagerStatic.ts#L146) #### Parameters [#parameters-3] ##### id [#id-2] `string` #### Returns [#returns-6] `void` # Class: CharacterBaseModel (/pixi-vn/index/classes/CharacterBaseModel) Defined in: [src/characters/classes/CharacterBaseModel.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L33) CharacterBaseModel is a class that is used to create a character model. You must use the [RegisteredCharacters.add](/pixi-vn/index/namespaces/RegisteredCharacters/functions/add) function to save the character in the game. It is raccomended to create your own class Character, read more here: [https://pixi-vn.com/start/character.html#custom-character](https://pixi-vn.com/start/character.html#custom-character) ## Example [#example] ```ts import { CharacterBaseModel, RegisteredCharacters } from "@drincs/pixi-vn"; export const liam = new CharacterBaseModel("liam", { name: "Liam", surname: "Smith", age: 25, icon: "https://example.com/liam.png", color: "#9e2e12", }); export const emma = new CharacterBaseModel("emma", { name: "Emma", surname: "Johnson", age: 23, icon: "https://example.com/emma.png", color: "#9e2e12", }); RegisteredCharacters.add([liam, emma]); ``` ## Extends [#extends] * [`CharacterStoredClass`](/pixi-vn/index/classes/CharacterStoredClass) ## Constructors [#constructors] ### Constructor [#constructor] \> **new CharacterBaseModel**(`id`, `props`): `CharacterBaseModel` Defined in: [src/characters/classes/CharacterBaseModel.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L38) #### Parameters [#parameters] ##### id [#id] `string` | [`CharacterEmotionId`](/pixi-vn/index/interfaces/CharacterEmotionId) A unique identifier (string). It is used to reference the character in the game (must be unique). If you want to create a character with an "emotion", you can pass an object. ##### props [#props] `CharacterBaseModelProps` The properties of the character. #### Returns [#returns] `CharacterBaseModel` #### Overrides [#overrides] [`CharacterStoredClass`](/pixi-vn/index/classes/CharacterStoredClass).[`constructor`](/pixi-vn/index/classes/CharacterStoredClass#constructor) ## Properties [#properties] ### color? [#color] \> `readonly` `optional` **color?**: `string` Defined in: [src/characters/classes/CharacterBaseModel.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L86) The color of the character. *** ### defaultAge? [#defaultage] \> `readonly` `optional` **defaultAge?**: `number` Defined in: [src/characters/classes/CharacterBaseModel.ts:68](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L68) *** ### defaultName? [#defaultname] \> `readonly` `optional` **defaultName?**: `string` Defined in: [src/characters/classes/CharacterBaseModel.ts:46](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L46) *** ### defaultSurname? [#defaultsurname] \> `readonly` `optional` **defaultSurname?**: `string` Defined in: [src/characters/classes/CharacterBaseModel.ts:57](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L57) *** ### icon? [#icon] \> `readonly` `optional` **icon?**: `string` Defined in: [src/characters/classes/CharacterBaseModel.ts:82](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L82) The icon of the character. *** ### id [#id-1] \> `readonly` **id**: `string` Defined in: [src/storage/classes/StoredClassModel.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L63) Is id of the stored class. is unique for this class. #### Inherited from [#inherited-from] [`CharacterStoredClass`](/pixi-vn/index/classes/CharacterStoredClass).[`id`](/pixi-vn/index/classes/CharacterStoredClass#id) ## Accessors [#accessors] ### age [#age] #### Get Signature [#get-signature] \> **get** **age**(): `number` | `undefined` Defined in: [src/characters/classes/CharacterBaseModel.ts:73](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L73) The age of the character. If you set undefined, it will return the default age. ##### Returns [#returns-1] `number` | `undefined` #### Set Signature [#set-signature] \> **set** **age**(`value`): `void` Defined in: [src/characters/classes/CharacterBaseModel.ts:76](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L76) ##### Parameters [#parameters-1] ###### value [#value] `number` | `undefined` ##### Returns [#returns-2] `void` *** ### name [#name] #### Get Signature [#get-signature-1] \> **get** **name**(): `string` Defined in: [src/characters/classes/CharacterBaseModel.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L51) The name of the character. If you set undefined, it will return the default name. ##### Returns [#returns-3] `string` #### Set Signature [#set-signature-1] \> **set** **name**(`value`): `void` Defined in: [src/characters/classes/CharacterBaseModel.ts:54](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L54) ##### Parameters [#parameters-2] ###### value [#value-1] `string` | `undefined` ##### Returns [#returns-4] `void` *** ### surname [#surname] #### Get Signature [#get-signature-2] \> **get** **surname**(): `string` | `undefined` Defined in: [src/characters/classes/CharacterBaseModel.ts:62](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L62) The surname of the character. If you set undefined, it will return the default surname. ##### Returns [#returns-5] `string` | `undefined` #### Set Signature [#set-signature-2] \> **set** **surname**(`value`): `void` Defined in: [src/characters/classes/CharacterBaseModel.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterBaseModel.ts#L65) ##### Parameters [#parameters-3] ###### value [#value-2] `string` | `undefined` ##### Returns [#returns-6] `void` ## Methods [#methods] ### getStorageProperty() [#getstorageproperty] \> **getStorageProperty**\<`T`>(`propertyName`): `T` | `undefined` Defined in: [src/characters/classes/CharacterStoredClass.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterStoredClass.ts#L16) Get a property from the storage. #### Type Parameters [#type-parameters] ##### T [#t] `T` #### Parameters [#parameters-4] ##### propertyName [#propertyname] `string` The name of the property to get. #### Returns [#returns-7] `T` | `undefined` The value of the property. If the property is not found, returns undefined. #### Default [#default] ```ts this.id ``` #### Inherited from [#inherited-from-1] [`CharacterStoredClass`](/pixi-vn/index/classes/CharacterStoredClass).[`getStorageProperty`](/pixi-vn/index/classes/CharacterStoredClass#getstorageproperty) *** ### migrateOldStorage() [#migrateoldstorage] \> `protected` **migrateOldStorage**(`oldCategoryId?`): `void` Defined in: [src/storage/classes/StoredClassModel.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L43) #### Parameters [#parameters-5] ##### oldCategoryId? [#oldcategoryid] `string` = `...` #### Returns [#returns-8] `void` #### Inherited from [#inherited-from-2] [`CharacterStoredClass`](/pixi-vn/index/classes/CharacterStoredClass).[`migrateOldStorage`](/pixi-vn/index/classes/CharacterStoredClass#migrateoldstorage) *** ### setStorageProperty() [#setstorageproperty] \> `protected` **setStorageProperty**\<`T`>(`propertyName`, `value`): `void` Defined in: [src/storage/classes/StoredClassModel.ts:71](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L71) Update a property in the storage. #### Type Parameters [#type-parameters-1] ##### T [#t-1] `T` The type of the value to set. (Deprecated, it is not necessary to specify the type of the value, it will be inferred from the value) #### Parameters [#parameters-6] ##### propertyName [#propertyname-1] `string` The name of the property to set. ##### value [#value-3] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The value to set. If is undefined, the property will be removed from the storage. #### Returns [#returns-9] `void` #### Inherited from [#inherited-from-3] [`CharacterStoredClass`](/pixi-vn/index/classes/CharacterStoredClass).[`setStorageProperty`](/pixi-vn/index/classes/CharacterStoredClass#setstorageproperty) # Class: CharacterStoredClass (/pixi-vn/index/classes/CharacterStoredClass) Defined in: [src/characters/classes/CharacterStoredClass.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterStoredClass.ts#L5) StoredClassModel is a abstract class that contains the methods to store a class in the game. I suggest you extend this class to create your own stored class. ## Example [#example] ```ts export class CharacterBaseModel extends StoredClassModel implements CharacterBaseModelProps { constructor(id: string, props: CharacterBaseModelProps) { super("___character___", id) this.defaultName = props.name this.defaultSurname = props.surname } readonly defaultName: string = "" get name(): string { return this.getStorageProperty("name") || this.defaultName } set name(value: string) { this.setStorageProperty("name", value) } readonly defaultSurname?: string get surname(): string | undefined { return this.getStorageProperty("surname") || this.defaultSurname } set surname(value: string | undefined) { this.setStorageProperty("surname", value) } } ``` ## Extends [#extends] * [`StoredClassModel`](/pixi-vn/index/classes/StoredClassModel) ## Extended by [#extended-by] * [`CharacterBaseModel`](/pixi-vn/index/classes/CharacterBaseModel) ## Constructors [#constructors] ### Constructor [#constructor] \> **new CharacterStoredClass**(`id`, `emotion?`): `CharacterStoredClass` Defined in: [src/characters/classes/CharacterStoredClass.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterStoredClass.ts#L7) #### Parameters [#parameters] ##### id [#id] `string` ##### emotion? [#emotion] `string` = `""` #### Returns [#returns] `CharacterStoredClass` #### Overrides [#overrides] [`StoredClassModel`](/pixi-vn/index/classes/StoredClassModel).[`constructor`](/pixi-vn/index/classes/StoredClassModel#constructor) ## Properties [#properties] ### id [#id-1] \> `readonly` **id**: `string` Defined in: [src/storage/classes/StoredClassModel.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L63) Is id of the stored class. is unique for this class. #### Inherited from [#inherited-from] [`StoredClassModel`](/pixi-vn/index/classes/StoredClassModel).[`id`](/pixi-vn/index/classes/StoredClassModel#id) ## Methods [#methods] ### getStorageProperty() [#getstorageproperty] \> **getStorageProperty**\<`T`>(`propertyName`): `T` | `undefined` Defined in: [src/characters/classes/CharacterStoredClass.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/classes/CharacterStoredClass.ts#L16) Get a property from the storage. #### Type Parameters [#type-parameters] ##### T [#t] `T` #### Parameters [#parameters-1] ##### propertyName [#propertyname] `string` The name of the property to get. #### Returns [#returns-1] `T` | `undefined` The value of the property. If the property is not found, returns undefined. #### Default [#default] ```ts this.id ``` #### Overrides [#overrides-1] [`StoredClassModel`](/pixi-vn/index/classes/StoredClassModel).[`getStorageProperty`](/pixi-vn/index/classes/StoredClassModel#getstorageproperty) *** ### migrateOldStorage() [#migrateoldstorage] \> `protected` **migrateOldStorage**(`oldCategoryId?`): `void` Defined in: [src/storage/classes/StoredClassModel.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L43) #### Parameters [#parameters-2] ##### oldCategoryId? [#oldcategoryid] `string` = `...` #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-1] [`StoredClassModel`](/pixi-vn/index/classes/StoredClassModel).[`migrateOldStorage`](/pixi-vn/index/classes/StoredClassModel#migrateoldstorage) *** ### setStorageProperty() [#setstorageproperty] \> `protected` **setStorageProperty**\<`T`>(`propertyName`, `value`): `void` Defined in: [src/storage/classes/StoredClassModel.ts:71](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L71) Update a property in the storage. #### Type Parameters [#type-parameters-1] ##### T [#t-1] `T` The type of the value to set. (Deprecated, it is not necessary to specify the type of the value, it will be inferred from the value) #### Parameters [#parameters-3] ##### propertyName [#propertyname-1] `string` The name of the property to set. ##### value [#value] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The value to set. If is undefined, the property will be removed from the storage. #### Returns [#returns-3] `void` #### Inherited from [#inherited-from-2] [`StoredClassModel`](/pixi-vn/index/classes/StoredClassModel).[`setStorageProperty`](/pixi-vn/index/classes/StoredClassModel#setstorageproperty) # Class: Container (/pixi-vn/index/classes/Container) Defined in: [src/canvas/components/Container.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L42) This class is a extension of the [PIXI.Container class](https://pixijs.com/8.x/examples/basic/container), it has the same properties and methods, but it has the ability to be saved and loaded by the Pixi’VN library. ## Example [#example] ```ts const container = new Container(); canvas.add(container); const texture = await Assets.load('https://pixijs.com/assets/bunny.png'); for (let i = 0; i < 25; i++) { const bunny = new Sprite(texture); bunny.x = (i % 5) * 40; bunny.y = Math.floor(i / 5) * 40; container.addChild(bunny); } ``` ## Extends [#extends] * `Container`\<`C`> ## Extended by [#extended-by] * [`ImageContainer`](/pixi-vn/index/classes/ImageContainer) ## Type Parameters [#type-parameters] ### C [#c] `C` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) = [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) ### Memory [#memory] `Memory` *extends* [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory) = [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory) ## Implements [#implements] * [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`Memory`> * [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension) * [`AnchorExtension`](/pixi-vn/index/interfaces/AnchorExtension) * [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension) ## Constructors [#constructors] ### Constructor [#constructor] \> **new Container**\<`C`, `Memory`>(`options?`): `Container`\<`C`, `Memory`> Defined in: [src/canvas/components/Container.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L53) #### Parameters [#parameters] ##### options? [#options] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions)\<`C`> #### Returns [#returns] `Container`\<`C`, `Memory`> #### Overrides [#overrides] `PixiContainer.constructor` ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] `PixiContainer.__devtoolIgnore` *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] `PixiContainer.__devtoolIgnoreChildren` *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] `PixiContainer.__devtoolLocked` *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-3] `PixiContainer._cx` *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-4] `PixiContainer._cy` *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-5] `PixiContainer._pivot` *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-6] `PixiContainer._position` *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-7] `PixiContainer._scale` *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-8] `PixiContainer._skew` *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-9] `PixiContainer._sx` *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-10] `PixiContainer._sy` *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-11] `PixiContainer._zIndex` *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-12] `PixiContainer.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-13] `PixiContainer.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-14] `PixiContainer.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-15] `PixiContainer.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-16] `PixiContainer.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-17] `PixiContainer.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-7] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-18] `PixiContainer.accessibleType` *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:10 **`Internal`** #### Inherited from [#inherited-from-19] `PixiContainer.allowChildren` *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-8] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-20] `PixiContainer.boundsArea` *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-21] `PixiContainer.cacheAsBitmap` *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters-1] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns-1] `void` #### Example [#example-9] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * [Container#updateCacheTexture](#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](/pixi-vn/index/classes/VideoSprite#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-22] `PixiContainer.cacheAsTexture` *** ### children [#children] \> `readonly` **children**: `C`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-10] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * [Container#addChild](#addchild) For adding children * [Container#removeChild](#removechild) For removing children #### Inherited from [#inherited-from-23] `PixiContainer.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-11] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-24] `PixiContainer.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-12] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-25] `PixiContainer.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-13] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-9] ```ts null ``` #### Inherited from [#inherited-from-26] `PixiContainer.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-14] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-10] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-27] `PixiContainer.cursor` *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-28] `PixiContainer.depthOfChildModified` *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-15] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-11] ```ts false ``` #### See [#see-3] [Container#destroy](#destroy) For destroying objects #### Inherited from [#inherited-from-29] `PixiContainer.destroyed` *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-30] `PixiContainer.effects` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-31] `PixiContainer.eventMode` *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-17] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * [Container#filters](/pixi-vn/index/classes/VideoSprite#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-32] `PixiContainer.filterArea` *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-33] `PixiContainer.globalDisplayStatus` *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-34] `PixiContainer.groupAlpha` *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-35] `PixiContainer.groupBlendMode` *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-36] `PixiContainer.groupColor` *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-37] `PixiContainer.groupColorAlpha` *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-38] `PixiContainer.groupTransform` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-18] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-39] `PixiContainer.hitArea` *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-19] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-40] `PixiContainer.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-12] ```ts true ``` #### Example [#example-20] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-41] `PixiContainer.interactiveChildren` *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-21] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * [Container#cacheAsTexture](#cacheastexture) For enabling caching * [Container#updateCacheTexture](#updatecachetexture) For updating cache #### Inherited from [#inherited-from-42] `PixiContainer.isCachedAsTexture` *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-3] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-22] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-43] `PixiContainer.isInteractive` *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-44] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-45] `PixiContainer.layerParentId` *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-46] `PixiContainer.localAlpha` *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-47] `PixiContainer.localBlendMode` *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-48] `PixiContainer.localColor` *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-49] `PixiContainer.localDisplayStatus` *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-23] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](/pixi-vn/index/classes/VideoSprite#worldtransform) For global transform * [Container#groupTransform](/pixi-vn/index/classes/VideoSprite#grouptransform) For render group transform #### Inherited from [#inherited-from-50] `PixiContainer.localTransform` *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a [Sprite](/pixi-vn/index/classes/Sprite) object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-24] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * [Sprite](/pixi-vn/index/classes/Sprite) For texture-based masks * [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-51] `PixiContainer.mask` *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-52] `PixiContainer.name` *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-53] `PixiContainer.onclick` *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-54] `PixiContainer.oncontextmenu` *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) = `{}` Defined in: [src/canvas/components/Container.ts:93](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L93) ListenerExtension #### Implementation of [#implementation-of] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`onEventsHandlers`](/pixi-vn/index/interfaces/ListenerExtension#oneventshandlers) *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-17] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-55] `PixiContainer.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-56] `PixiContainer.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-57] `PixiContainer.onglobaltouchmove` *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-20] ```ts null ``` #### Inherited from [#inherited-from-58] `PixiContainer.onmousedown` *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-59] `PixiContainer.onmouseenter` *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-60] `PixiContainer.onmouseleave` *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-61] `PixiContainer.onmousemove` *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-62] `PixiContainer.onmouseout` *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-63] `PixiContainer.onmouseover` *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-64] `PixiContainer.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-65] `PixiContainer.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-66] `PixiContainer.onpointercancel` *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-67] `PixiContainer.onpointerdown` *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-68] `PixiContainer.onpointerenter` *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-69] `PixiContainer.onpointerleave` *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-70] `PixiContainer.onpointermove` *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-71] `PixiContainer.onpointerout` *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-72] `PixiContainer.onpointerover` *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-73] `PixiContainer.onpointertap` *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-74] `PixiContainer.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-75] `PixiContainer.onpointerupoutside` *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-48] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-76] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-77] `PixiContainer.onrightclick` *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-78] `PixiContainer.onrightdown` *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-79] `PixiContainer.onrightup` *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-80] `PixiContainer.onrightupoutside` *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-81] `PixiContainer.ontap` *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-82] `PixiContainer.ontouchcancel` *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-83] `PixiContainer.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-84] `PixiContainer.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-85] `PixiContainer.ontouchmove` *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-86] `PixiContainer.ontouchstart` *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-59] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-87] `PixiContainer.onwheel` *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-60] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * [Container#addChild](#addchild) For adding to a parent * [Container#removeChild](#removechild) For removing from parent #### Inherited from [#inherited-from-88] `PixiContainer.parent` *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-89] `PixiContainer.parentRenderLayer` *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` = `CANVAS_CONTAINER_ID` Defined in: [src/canvas/components/Container.ts:68](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L68) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Implementation of [#implementation-of-1] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`pixivnId`](/pixi-vn/index/classes/CanvasBaseItem#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-90] `PixiContainer.relativeGroupTransform` *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:800 **`Internal`** #### Inherited from [#inherited-from-91] `PixiContainer.renderPipeId` *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-61] ```ts container.sortableChildren = true; ``` #### Default [#default-49] ```ts false ``` #### Inherited from [#inherited-from-92] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-4] `void` #### Example [#example-62] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling automatic sorting * [Container#zIndex](/pixi-vn/index/classes/VideoSprite#zindex) For setting child order #### Inherited from [#inherited-from-93] `PixiContainer.sortChildren` *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-50] ```ts false @internal ``` #### Inherited from [#inherited-from-94] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-51] ```ts 0 ``` #### Example [#example-63] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-95] `PixiContainer.tabIndex` *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-96] `PixiContainer.uid` *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-5] `void` #### Example [#example-64] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-97] `PixiContainer.updateCacheTexture` *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-98] `PixiContainer.updateTick` *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-65] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](#sortchildren) For manual sorting #### Default [#default-52] ```ts 0 ``` #### Inherited from [#inherited-from-99] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) *** ### prefixed [#prefixed] \> `static` **prefixed**: `string` | `boolean` Defined in: node_modules/eventemitter3/index.d.ts:9 #### Inherited from [#inherited-from-100] `PixiContainer.prefixed` ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Container.ts:160](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L160) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-6] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: [src/canvas/components/Container.ts:148](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L148) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-2] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-7] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-2] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#align) *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-66] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-53] ```ts 1 ``` ##### See [#see-14] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control ##### Returns [#returns-8] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-3] ###### value [#value-1] `number` ##### Returns [#returns-9] `void` #### Inherited from [#inherited-from-101] `PixiContainer.alpha` *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `PointData` Defined in: [src/canvas/components/Container.ts:119](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L119) The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. The default is `(0,0)`, this means the imageContainer's origin is the top left. Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered. Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-67] ```ts import { ImageContainer } from '@drincs/pixi-vn'; const imageContainer = new ImageContainer(); imageContainer.anchor = 0.5; ``` ##### Returns [#returns-10] `PointData` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: [src/canvas/components/Container.ts:124](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L124) The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. The default is `(0,0)`, this means the imageContainer's origin is the top left. Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered. Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-68] ```ts import { ImageContainer } from '@drincs/pixi-vn'; const imageContainer = new ImageContainer(); imageContainer.anchor = 0.5; ``` ##### Parameters [#parameters-4] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-11] `void` The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. The default is `(0,0)`, this means the imageContainer's origin is the top left. Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered. Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. #### Example [#example-69] ```ts import { ImageContainer } from '@drincs/pixi-vn'; const imageContainer = new ImageContainer(); imageContainer.anchor = 0.5; ``` #### Implementation of [#implementation-of-3] [`AnchorExtension`](/pixi-vn/index/interfaces/AnchorExtension).[`anchor`](/pixi-vn/index/interfaces/AnchorExtension#anchor) *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-70] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-12] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-5] ###### value [#value-3] `number` ##### Returns [#returns-13] `void` #### Inherited from [#inherited-from-102] `PixiContainer.angle` *** ### blendMode [#blendmode] #### Get Signature [#get-signature-4] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-71] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-54] ```ts 'normal' ``` ##### See [#see-15] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments ##### Returns [#returns-14] `BLEND_MODES` #### Set Signature [#set-signature-4] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-6] ###### value [#value-4] `BLEND_MODES` ##### Returns [#returns-15] `void` #### Inherited from [#inherited-from-103] `PixiContainer.blendMode` *** ### filters [#filters] #### Get Signature [#get-signature-5] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-72] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-16] Filter For filter base class ##### Returns [#returns-16] readonly `Filter`\[] #### Set Signature [#set-signature-5] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-73] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-17] Filter For filter base class ##### Parameters [#parameters-7] ###### value [#value-5] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-17] `void` #### Inherited from [#inherited-from-104] `PixiContainer.filters` *** ### height [#height] #### Get Signature [#get-signature-6] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1117 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-74] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Returns [#returns-18] `number` #### Set Signature [#set-signature-6] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1118 ##### Parameters [#parameters-8] ###### value [#value-6] `number` ##### Returns [#returns-19] `void` #### Inherited from [#inherited-from-105] `PixiContainer.height` *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-7] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-20] `boolean` #### Inherited from [#inherited-from-106] `PixiContainer.isRenderable` *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-8] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-21] `boolean` #### Set Signature [#set-signature-7] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-9] ###### value [#value-7] `boolean` ##### Returns [#returns-22] `void` #### Inherited from [#inherited-from-107] `PixiContainer.isRenderGroup` *** ### memory [#memory-1] #### Get Signature [#get-signature-9] \> **get** **memory**(): `Memory` Defined in: [src/canvas/components/Container.ts:69](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L69) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-23] `Memory` #### Implementation of [#implementation-of-4] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`memory`](/pixi-vn/index/classes/CanvasBaseItem#memory) *** ### origin [#origin] #### Get Signature [#get-signature-10] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-75] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-24] `ObservablePoint` #### Set Signature [#set-signature-8] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-10] ###### value [#value-8] `number` | `PointData` ##### Returns [#returns-25] `void` #### Inherited from [#inherited-from-108] `PixiContainer.origin` *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-11] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Container.ts:231](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L231) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-26] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-9] \> **set** **percentagePosition**(`value`): `void` Defined in: [src/canvas/components/Container.ts:219](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L219) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-11] ###### value [#value-9] `number` | `Partial`\<`PointData`> ##### Returns [#returns-27] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-5] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentageposition) *** ### percentageX [#percentagex] #### Get Signature [#get-signature-12] \> **get** **percentageX**(): `number` Defined in: [src/canvas/components/Container.ts:245](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L245) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-28] `number` #### Set Signature [#set-signature-10] \> **set** **percentageX**(`_value`): `void` Defined in: [src/canvas/components/Container.ts:237](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L237) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-12] ###### \_value [#_value] `number` ##### Returns [#returns-29] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-6] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagex) *** ### percentageY [#percentagey] #### Get Signature [#get-signature-13] \> **get** **percentageY**(): `number` Defined in: [src/canvas/components/Container.ts:256](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L256) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-30] `number` #### Set Signature [#set-signature-11] \> **set** **percentageY**(`_value`): `void` Defined in: [src/canvas/components/Container.ts:248](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L248) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-13] ###### \_value [#_value-1] `number` ##### Returns [#returns-31] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-7] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagey) *** ### pivot [#pivot] #### Get Signature [#get-signature-14] \> **get** **pivot**(): `ObservablePoint` Defined in: [src/canvas/components/Container.ts:137](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L137) The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-76] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-32] `ObservablePoint` #### Set Signature [#set-signature-12] \> **set** **pivot**(`value`): `void` Defined in: [src/canvas/components/Container.ts:140](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L140) The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-77] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-3] 4.0.0 ##### Parameters [#parameters-14] ###### value [#value-10] `ObservablePoint` ##### Returns [#returns-33] `void` #### Overrides [#overrides-1] `PixiContainer.pivot` *** ### position [#position] #### Get Signature [#get-signature-15] \> **get** **position**(): `ObservablePoint` Defined in: [src/canvas/components/Container.ts:323](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L323) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-78] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Returns [#returns-34] `ObservablePoint` #### Set Signature [#set-signature-13] \> **set** **position**(`value`): `void` Defined in: [src/canvas/components/Container.ts:326](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L326) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-79] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-5] 4.0.0 ##### Parameters [#parameters-15] ###### value [#value-11] `ObservablePoint` ##### Returns [#returns-35] `void` #### Overrides [#overrides-2] `PixiContainer.position` *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-16] \> **get** **positionInfo**(): `object` Defined in: [src/canvas/components/Container.ts:267](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L267) ##### Returns [#returns-36] `object` ###### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-14] \> **set** **positionInfo**(`value`): `void` Defined in: [src/canvas/components/Container.ts:277](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L277) ##### Parameters [#parameters-16] ###### value [#value-12] ###### type? [#type-1] `"pixel"` | `"percentage"` | `"align"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-37] `void` #### Implementation of [#implementation-of-8] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionInfo`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positioninfo) *** ### positionType [#positiontype] #### Get Signature [#get-signature-17] \> **get** **positionType**(): `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/Container.ts:259](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L259) ##### Returns [#returns-38] `"pixel"` | `"percentage"` | `"align"` #### Implementation of [#implementation-of-9] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionType`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positiontype) *** ### renderable [#renderable] #### Get Signature [#get-signature-18] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-80] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-55] ```ts true ``` ##### See [#see-18] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-39] `boolean` #### Set Signature [#set-signature-15] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-17] ###### value [#value-13] `boolean` ##### Returns [#returns-40] `void` #### Inherited from [#inherited-from-109] `PixiContainer.renderable` *** ### rotation [#rotation] #### Get Signature [#get-signature-19] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-81] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-41] `number` #### Set Signature [#set-signature-16] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-18] ###### value [#value-14] `number` ##### Returns [#returns-42] `void` #### Inherited from [#inherited-from-110] `PixiContainer.rotation` *** ### scale [#scale] #### Get Signature [#get-signature-20] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-82] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-6] 4.0.0 ##### Returns [#returns-43] `ObservablePoint` #### Set Signature [#set-signature-17] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-19] ###### value [#value-15] `string` | `number` | `PointData` ##### Returns [#returns-44] `void` #### Inherited from [#inherited-from-111] `PixiContainer.scale` *** ### skew [#skew] #### Get Signature [#get-signature-21] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-83] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-7] 4.0.0 ##### Default [#default-56] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-45] `ObservablePoint` #### Set Signature [#set-signature-18] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-20] ###### value [#value-16] `PointData` ##### Returns [#returns-46] `void` #### Inherited from [#inherited-from-112] `PixiContainer.skew` *** ### tint [#tint] #### Get Signature [#get-signature-22] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-84] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-57] ```ts 0xFFFFFF ``` ##### See [#see-19] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control ##### Returns [#returns-47] `number` #### Set Signature [#set-signature-19] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-21] ###### value [#value-17] `ColorSource` ##### Returns [#returns-48] `void` #### Inherited from [#inherited-from-113] `PixiContainer.tint` *** ### visible [#visible] #### Get Signature [#get-signature-23] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-85] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-58] ```ts true ``` ##### See [#see-20] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-49] `boolean` #### Set Signature [#set-signature-20] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-22] ###### value [#value-18] `boolean` ##### Returns [#returns-50] `void` #### Inherited from [#inherited-from-114] `PixiContainer.visible` *** ### width [#width] #### Get Signature [#get-signature-24] \> **get** **width**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1102 The width of the Container, setting this will actually modify the scale to achieve the value set. \> \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-86] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Returns [#returns-51] `number` #### Set Signature [#set-signature-21] \> **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1103 ##### Parameters [#parameters-23] ###### value [#value-19] `number` ##### Returns [#returns-52] `void` #### Inherited from [#inherited-from-115] `PixiContainer.width` *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-25] \> **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-87] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-21] [Container#localTransform](/pixi-vn/index/classes/VideoSprite#localtransform) For local space transform ##### Returns [#returns-53] `Matrix` #### Inherited from [#inherited-from-116] `PixiContainer.worldTransform` *** ### x [#x-2] #### Get Signature [#get-signature-26] \> **get** **x**(): `number` Defined in: [src/canvas/components/Container.ts:331](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L331) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-88] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-54] `number` #### Set Signature [#set-signature-22] \> **set** **x**(`value`): `void` Defined in: [src/canvas/components/Container.ts:334](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L334) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-89] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-24] ###### value [#value-20] `number` ##### Returns [#returns-55] `void` #### Overrides [#overrides-3] `PixiContainer.x` *** ### xAlign [#xalign] #### Get Signature [#get-signature-27] \> **get** **xAlign**(): `number` Defined in: [src/canvas/components/Container.ts:188](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L188) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-56] `number` #### Set Signature [#set-signature-23] \> **set** **xAlign**(`value`): `void` Defined in: [src/canvas/components/Container.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L180) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-25] ###### value [#value-21] `number` ##### Returns [#returns-57] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-10] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#xalign) *** ### y [#y-2] #### Get Signature [#get-signature-28] \> **get** **y**(): `number` Defined in: [src/canvas/components/Container.ts:339](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L339) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-90] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-58] `number` #### Set Signature [#set-signature-24] \> **set** **y**(`value`): `void` Defined in: [src/canvas/components/Container.ts:342](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L342) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-91] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-26] ###### value [#value-22] `number` ##### Returns [#returns-59] `void` #### Overrides [#overrides-4] `PixiContainer.y` *** ### yAlign [#yalign] #### Get Signature [#get-signature-29] \> **get** **yAlign**(): `number` Defined in: [src/canvas/components/Container.ts:207](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L207) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-60] `number` #### Set Signature [#set-signature-25] \> **set** **yAlign**(`value`): `void` Defined in: [src/canvas/components/Container.ts:199](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L199) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-27] ###### value [#value-23] `number` ##### Returns [#returns-61] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-11] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#yalign) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] \> **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-28] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-62] `void` #### Inherited from [#inherited-from-117] `PixiContainer._getGlobalBoundsRecursive` *** ### addChild() [#addchild] \> **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters-1] ##### U [#u] `U` *extends* `C`\[] #### Parameters [#parameters-29] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-63] `U`\[`0`] The first child that was added #### Example [#example-92] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-22] * [Container#removeChild](#removechild) For removing children * [Container#addChildAt](#addchildat) For adding at specific index #### Inherited from [#inherited-from-118] `PixiContainer.addChild` *** ### addChildAt() [#addchildat] \> **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-2] ##### U [#u-1] `U` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) #### Parameters [#parameters-30] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-64] `U` The child that was added #### Example [#example-93] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-23] * [Container#addChild](#addchild) For adding to the end * [Container#setChildIndex](#setchildindex) For moving existing children #### Inherited from [#inherited-from-119] `PixiContainer.addChildAt` *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] \> **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-3] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-31] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options-1] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-65] `void` ##### Example [#example-94] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-120] `PixiContainer.addEventListener` #### Call Signature [#call-signature-1] \> **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-32] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-2] `AddListenerOptions` ##### Returns [#returns-66] `void` ##### Inherited from [#inherited-from-121] `PixiContainer.addEventListener` *** ### addListener() [#addlistener] \> **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-4] ##### T [#t] `T` *extends* keyof AnyEvent | keyof ContainerEvents\ #### Parameters [#parameters-33] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-67] `this` #### Inherited from [#inherited-from-122] `PixiContainer.addListener` *** ### collectRenderables() [#collectrenderables] \> **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-34] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-68] `void` #### Inherited from [#inherited-from-123] `PixiContainer.collectRenderables` *** ### collectRenderablesSimple() [#collectrenderablessimple] \> **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:30 **`Internal`** Collects renderables using a simple method, suitable for containers marked as simple. This method iterates over the container's children and adds their renderables to the instruction set. #### Parameters [#parameters-35] ##### instructionSet [#instructionset-1] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-1] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer being processed. #### Returns [#returns-69] `void` #### Inherited from [#inherited-from-124] `PixiContainer.collectRenderablesSimple` *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] \> **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-36] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-70] `void` #### Inherited from [#inherited-from-125] `PixiContainer.collectRenderablesWithEffects` *** ### destroy() [#destroy] \> **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1343 Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling `destroy`. #### Parameters [#parameters-37] ##### options? [#options-3] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-71] `void` #### Example [#example-95] ```ts container.destroy(); container.destroy(true); container.destroy({ children: true }); container.destroy({ children: true, texture: true, textureSource: true }); ``` #### Inherited from [#inherited-from-126] `PixiContainer.destroy` *** ### disableRenderGroup() [#disablerendergroup] \> **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-72] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-127] `PixiContainer.disableRenderGroup` *** ### dispatchEvent() [#dispatchevent] \> **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this Container using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-38] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-73] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-96] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-128] `PixiContainer.dispatchEvent` *** ### emit() [#emit] \> **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-5] ##### T [#t-1] `T` *extends* keyof AnyEvent | keyof ContainerEvents\ #### Parameters [#parameters-39] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`C`> & `AnyEvent`>\[`Extract`\<`T`, keyof AnyEvent | keyof ContainerEvents\>] #### Returns [#returns-74] `boolean` #### Inherited from [#inherited-from-129] `PixiContainer.emit` *** ### enableRenderGroup() [#enablerendergroup] \> **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-75] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-130] `PixiContainer.enableRenderGroup` *** ### eventNames() [#eventnames] \> **eventNames**(): (keyof AnyEvent | keyof ContainerEvents\)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-76] (keyof AnyEvent | keyof ContainerEvents\)\[] #### Inherited from [#inherited-from-131] `PixiContainer.eventNames` *** ### getBounds() [#getbounds] \> **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-40] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-1] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-77] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-97] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-24] * [Container#getLocalBounds](/pixi-vn/index/classes/VideoSprite#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-132] `PixiContainer.getBounds` *** ### getChildAt() [#getchildat] \> **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-6] ##### U [#u-2] `U` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) #### Parameters [#parameters-41] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-78] `U` The child at the given index #### Example [#example-98] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-25] * [Container#children](#children) For direct array access * [Container#getChildByLabel](#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-133] `PixiContainer.getChildAt` *** ### getChildByLabel() [#getchildbylabel] \> **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-42] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-79] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-99] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-26] * [Container#getChildrenByLabel](#getchildrenbylabel) For finding all matches * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-134] `PixiContainer.getChildByLabel` *** ### ~~getChildByName()~~ [#getchildbyname] \> **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-43] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-80] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-27] Container#getChildByLabel #### Inherited from [#inherited-from-135] `PixiContainer.getChildByName` *** ### getChildIndex() [#getchildindex] \> **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-44] ##### child [#child-1] `C` The Container instance to identify #### Returns [#returns-81] `number` The index position of the child container #### Example [#example-100] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-3] If child is not in this container #### See [#see-28] * [Container#setChildIndex](#setchildindex) For changing index * [Container#children](#children) For direct array access #### Inherited from [#inherited-from-136] `PixiContainer.getChildIndex` *** ### getChildrenByLabel() [#getchildrenbylabel] \> **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-45] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-82] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-101] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-29] * [Container#getChildByLabel](#getchildbylabel) For finding first match * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-137] `PixiContainer.getChildrenByLabel` *** ### getFastGlobalBounds() [#getfastglobalbounds] \> **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-46] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-2] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-83] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-138] `PixiContainer.getFastGlobalBounds` *** ### getGlobalAlpha() [#getglobalalpha] \> **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-47] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-84] `number` The resulting alpha value (between 0 and 1) #### Example [#example-102] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-139] `PixiContainer.getGlobalAlpha` *** ### getGlobalPosition() [#getglobalposition] \> **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-48] ##### point? [#point] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-85] `Point` The updated point #### Example [#example-103] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-30] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For converting specific points * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting to local space #### Inherited from [#inherited-from-140] `PixiContainer.getGlobalPosition` *** ### getGlobalTint() [#getglobaltint] \> **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-49] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-86] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-104] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-141] `PixiContainer.getGlobalTint` *** ### getGlobalTransform() [#getglobaltransform] \> **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-50] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-87] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-105] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-142] `PixiContainer.getGlobalTransform` *** ### getLocalBounds() [#getlocalbounds] \> **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-88] `Bounds` The bounding area #### Example [#example-106] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-31] * [Container#getBounds](/pixi-vn/index/classes/VideoSprite#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-143] `PixiContainer.getLocalBounds` *** ### getSize() [#getsize] \> **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1136 Retrieves the size of the container as a \[Size]Size object. This is faster than get the width and height separately. #### Parameters [#parameters-51] ##### out? [#out-1] `Size` Optional object to store the size in. #### Returns [#returns-89] `Size` The size of the container. #### Example [#example-107] ```ts // Basic size retrieval const size = container.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; container.getSize(reuseSize); ``` #### Inherited from [#inherited-from-144] `PixiContainer.getSize` *** ### importChildren() [#importchildren] \> `protected` **importChildren**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/Container.ts:83](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L83) #### Parameters [#parameters-52] ##### value [#value-24] `Memory` #### Returns [#returns-90] `Promise`\<`void`> *** ### listenerCount() [#listenercount] \> **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-53] ##### event [#event-2] keyof AnyEvent | keyof ContainerEvents\ #### Returns [#returns-91] `number` #### Inherited from [#inherited-from-145] `PixiContainer.listenerCount` *** ### listeners() [#listeners] \> **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-7] ##### T [#t-2] `T` *extends* keyof AnyEvent | keyof ContainerEvents\ #### Parameters [#parameters-54] ##### event [#event-3] `T` #### Returns [#returns-92] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-146] `PixiContainer.listeners` *** ### off() [#off] \> **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-8] ##### T [#t-3] `T` *extends* keyof AnyEvent | keyof ContainerEvents\ #### Parameters [#parameters-55] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-93] `this` #### Inherited from [#inherited-from-147] `PixiContainer.off` *** ### on() [#on] \> **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/Container.ts:94](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L94) Add a listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-4] `T` *extends* `symbol` | `object` & `string` | keyof ContainerEvents\ #### Parameters [#parameters-56] ##### event [#event-5] `T` ##### fn [#fn-2] (...`args`) => `void` ##### context? [#context-2] `any` #### Returns [#returns-94] `this` #### Implementation of [#implementation-of-12] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`on`](/pixi-vn/index/interfaces/ListenerExtension#on) #### Overrides [#overrides-5] `PixiContainer.on` *** ### once() [#once-1] \> **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-10] ##### T [#t-5] `T` *extends* keyof AnyEvent | keyof ContainerEvents\ #### Parameters [#parameters-57] ##### event [#event-6] `T` ##### fn [#fn-3] (...`args`) => `void` ##### context? [#context-3] `any` #### Returns [#returns-95] `this` #### Inherited from [#inherited-from-148] `PixiContainer.once` *** ### reloadAnchor() [#reloadanchor] \> `protected` **reloadAnchor**(): `void` Defined in: [src/canvas/components/Container.ts:132](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L132) #### Returns [#returns-96] `void` *** ### reloadPosition() [#reloadposition] \> `protected` **reloadPosition**(): `void` Defined in: [src/canvas/components/Container.ts:286](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L286) #### Returns [#returns-97] `void` *** ### removeAllListeners() [#removealllisteners] \> **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-58] ##### event? [#event-7] keyof AnyEvent | keyof ContainerEvents\ #### Returns [#returns-98] `this` #### Inherited from [#inherited-from-149] `PixiContainer.removeAllListeners` *** ### removeChild() [#removechild] \> **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-11] ##### U [#u-3] `U` *extends* `C`\[] #### Parameters [#parameters-59] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-99] `U`\[`0`] The first child that was removed #### Example [#example-108] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-32] * [Container#addChild](#addchild) For adding children * [Container#removeChildren](#removechildren) For removing multiple children #### Inherited from [#inherited-from-150] `PixiContainer.removeChild` *** ### removeChildAt() [#removechildat] \> **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-12] ##### U [#u-4] `U` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) #### Parameters [#parameters-60] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-100] `U` The child that was removed #### Example [#example-109] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-4] If index is out of bounds #### See [#see-33] * [Container#removeChild](#removechild) For removing specific children * [Container#removeChildren](#removechildren) For removing multiple children #### Inherited from [#inherited-from-151] `PixiContainer.removeChildAt` *** ### removeChildren() [#removechildren] \> **removeChildren**(`beginIndex?`, `endIndex?`): `C`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-61] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-101] `C`\[] List of removed children #### Example [#example-110] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-5] If begin/end indexes are invalid #### See [#see-34] * [Container#addChild](#addchild) For adding children * [Container#removeChild](#removechild) For removing specific children #### Inherited from [#inherited-from-152] `PixiContainer.removeChildren` *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-2] \> **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-13] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-62] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-4] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-102] `void` ##### Inherited from [#inherited-from-153] `PixiContainer.removeEventListener` #### Call Signature [#call-signature-3] \> **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-63] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-5] `RemoveListenerOptions` ##### Returns [#returns-103] `void` ##### Inherited from [#inherited-from-154] `PixiContainer.removeEventListener` *** ### removeFromParent() [#removefromparent] \> **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-104] `void` #### Example [#example-111] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-35] * [Container#addChild](#addchild) For adding to a new parent * [Container#removeChild](#removechild) For parent removing children #### Inherited from [#inherited-from-155] `PixiContainer.removeFromParent` *** ### removeListener() [#removelistener] \> **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-14] ##### T [#t-6] `T` *extends* keyof AnyEvent | keyof ContainerEvents\ #### Parameters [#parameters-64] ##### event [#event-8] `T` ##### fn? [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-105] `this` #### Inherited from [#inherited-from-156] `PixiContainer.removeListener` *** ### reparentChild() [#reparentchild] \> **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-5] `U` *extends* `C`\[] #### Parameters [#parameters-65] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-106] `U`\[`0`] The first child that was reparented #### Example [#example-112] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-36] * [Container#reparentChildAt](#reparentchildat) For index-specific reparenting * [Container#addChild](#addchild) For simple parenting #### Inherited from [#inherited-from-157] `PixiContainer.reparentChild` *** ### reparentChildAt() [#reparentchildat] \> **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-16] ##### U [#u-6] `U` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) #### Parameters [#parameters-66] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-107] `U` The reparented child #### Example [#example-113] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-6] If index is out of bounds #### See [#see-37] * [Container#reparentChild](#reparentchild) For appending reparented children * [Container#addChildAt](#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-158] `PixiContainer.reparentChildAt` *** ### replaceChild() [#replacechild] \> **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-17] ##### U [#u-7] `U` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) ##### T [#t-7] `T` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) #### Parameters [#parameters-67] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-108] `void` #### Inherited from [#inherited-from-159] `PixiContainer.replaceChild` *** ### setChildIndex() [#setchildindex] \> **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-68] ##### child [#child-4] `C` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-109] `void` #### Example [#example-114] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-7] If index is out of bounds #### Throws [#throws-8] If child is not in container #### See [#see-38] * [Container#getChildIndex](#getchildindex) For getting current index * [Container#swapChildren](#swapchildren) For swapping positions #### Inherited from [#inherited-from-160] `PixiContainer.setChildIndex` *** ### setFromMatrix() [#setfrommatrix] \> **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-69] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-110] `void` #### Example [#example-115] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-39] * [Container#updateTransform](#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-161] `PixiContainer.setFromMatrix` *** ### setMask() [#setmask] \> **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-70] ##### options [#options-6] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-111] `void` #### Example [#example-116] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-40] * [Container#mask](/pixi-vn/index/classes/VideoSprite#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-162] `PixiContainer.setMask` *** ### setMemory() [#setmemory] \> **setMemory**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/Container.ts:77](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L77) This method set the memory of the canvas element. #### Parameters [#parameters-71] ##### value [#value-25] `Memory` #### Returns [#returns-112] `Promise`\<`void`> #### Throws [#throws-9] when the method is not overridden in the subclass. #### Implementation of [#implementation-of-13] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`setMemory`](/pixi-vn/index/classes/CanvasBaseItem#setmemory) *** ### setSize() [#setsize] \> **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1151 Sets the size of the container to the specified width and height. This is more efficient than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-72] ##### value [#value-26] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a \[Size]Size object. ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided. #### Returns [#returns-113] `void` #### Example [#example-117] ```ts // Basic size setting container.setSize(100, 200); // Set uniform size container.setSize(100); // Sets both width and height to 100 ``` #### Inherited from [#inherited-from-163] `PixiContainer.setSize` *** ### swapChildren() [#swapchildren] \> **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-18] ##### U [#u-8] `U` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) #### Parameters [#parameters-73] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-114] `void` #### Example [#example-118] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-10] If either child is not in container #### See [#see-41] * [Container#setChildIndex](#setchildindex) For direct index placement * [Container#getChildIndex](#getchildindex) For getting current positions #### Inherited from [#inherited-from-164] `PixiContainer.swapChildren` *** ### toGlobal() [#toglobal] \> **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-19] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-74] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-1] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-115] `P` The global position #### Example [#example-119] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-42] * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-165] `PixiContainer.toGlobal` *** ### toLocal() [#tolocal] \> **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-20] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-75] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-2] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-116] `P` A point object representing the position in local space #### Example [#example-120] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-43] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-166] `PixiContainer.toLocal` *** ### updateLocalTransform() [#updatelocaltransform] \> **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-117] `void` #### Inherited from [#inherited-from-167] `PixiContainer.updateLocalTransform` *** ### updateTransform() [#updatetransform] \> **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-76] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-118] `this` This container, for chaining #### Example [#example-121] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-44] * [Container#setFromMatrix](#setfrommatrix) For matrix-based transforms * [Container#position](/pixi-vn/index/interfaces/CanvasBaseInterface#position) For direct position access #### Inherited from [#inherited-from-168] `PixiContainer.updateTransform` *** ### ~~mixin()~~ [#mixin] \> `static` **mixin**(`source`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:605 Mixes all enumerable properties and methods from a source object to Container. #### Parameters [#parameters-77] ##### source [#source] `Dict`\<`any`> The source of properties and methods to mix in. #### Returns [#returns-119] `void` #### Deprecated [#deprecated-3] since 8.8.0 #### Inherited from [#inherited-from-169] `PixiContainer.mixin` # Class: EventSuppressor (/pixi-vn/index/classes/EventSuppressor) Defined in: [src/canvas/components/EventSuppressor.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/EventSuppressor.ts#L32) Emits the savable events of a canvas component (e.g. `"complete"` of an `AnimatedSprite`, `"ended"` of a `VideoSprite`) and silences them while the component is loading or restoring a save, so the listeners don't run again. Other events (e.g. pointer events) are not affected. Silencing is counted: nested and concurrent [run](#run) calls keep the events silenced until the last one finishes, even if one of them throws. ## Example [#example] ```ts class MyComponent extends Sprite { private readonly eventSuppressor = new EventSuppressor(); protected onSomething() { this.eventSuppressor.emit(this, "something"); } override async setMemory(memory: SpriteMemory) { await this.eventSuppressor.run(() => super.setMemory(memory)); } } ``` ## Constructors [#constructors] ### Constructor [#constructor] \> **new EventSuppressor**(): `EventSuppressor` #### Returns [#returns] `EventSuppressor` ## Accessors [#accessors] ### silent [#silent] #### Get Signature [#get-signature] \> **get** **silent**(): `boolean` Defined in: [src/canvas/components/EventSuppressor.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/EventSuppressor.ts#L37) `true` while at least one [run](#run) call is in progress. ##### Returns [#returns-1] `boolean` ## Methods [#methods] ### emit() [#emit] \> **emit**\<`Event`, `Args`>(`target`, `event`, ...`args`): `boolean` Defined in: [src/canvas/components/EventSuppressor.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/EventSuppressor.ts#L56) Emit `event` on `target` with `args`, unless the events are silenced. #### Type Parameters [#type-parameters] ##### Event [#event] `Event` *extends* `string` | `symbol` ##### Args [#args] `Args` *extends* `unknown`\[] #### Parameters [#parameters] ##### target [#target] [`EventSuppressorTarget`](/pixi-vn/index/interfaces/EventSuppressorTarget)\<`NoInfer`\<`Event`>, `NoInfer`\<`Args`>> ##### event [#event-1] `Event` ##### args [#args-1] ...`Args` #### Returns [#returns-2] `boolean` `true` if the event was emitted. *** ### run() [#run] \> **run**\<`T`>(`fn`): `Promise`\<`T`> Defined in: [src/canvas/components/EventSuppressor.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/EventSuppressor.ts#L44) Run `fn` with the events silenced until it (and its returned promise) settles. #### Type Parameters [#type-parameters-1] ##### T [#t] `T` #### Parameters [#parameters-1] ##### fn [#fn] () => `T` | `Promise`\<`T`> #### Returns [#returns-3] `Promise`\<`T`> The result of `fn`. # Class: GameUnifier (/pixi-vn/index/classes/GameUnifier) Defined in: [src/core/GameUnifier.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L14) ## Constructors [#constructors] ### Constructor [#constructor] \> **new GameUnifier**(): `GameUnifier` #### Returns [#returns] `GameUnifier` ## Properties [#properties] ### onEnd? [#onend] \> `static` `optional` **onEnd?**: [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType) Defined in: [src/core/GameUnifier.ts:533](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L533) *** ### runningStepsCount [#runningstepscount] \> `static` **runningStepsCount**: `number` = `0` Defined in: [src/core/GameUnifier.ts:519](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L519) Count of currently executing steps. If a step triggers a narration.continue(), this number is greater than 1. ## Accessors [#accessors] ### addHistoryItem [#addhistoryitem] #### Get Signature [#get-signature] \> **get** `static` **addHistoryItem**(): (`historyInfo?`, `opstions?`) => `void` | `Promise`\<`void`> Defined in: [src/core/GameUnifier.ts:512](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L512) Add a history step to the history. ##### Returns [#returns-1] (`historyInfo?`, `opstions?`) => `void` | `Promise`\<`void`> *** ### animate [#animate] #### Get Signature [#get-signature-1] \> **get** `static` **animate**(): \<`T`>(`components`, `keyframes`, `options?`, `priority?`) => `string` | `undefined` Defined in: [src/core/GameUnifier.ts:582](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L582) This function is called to animate a component. ##### Default [#default] ```ts UPDATE_PRIORITY.NORMAL ``` ##### Returns [#returns-2] The id of tickers. \<`T`>(`components`, `keyframes`, `options?`, `priority?`) => `string` | `undefined` *** ### animateFilter [#animatefilter] #### Get Signature [#get-signature-2] \> **get** `static` **animateFilter**(): (`components`, `filter`, `keyframes`, `options?`, `priority?`, `apply?`, `cleanup?`, `valueRef?`) => `string` | `undefined` Defined in: [src/core/GameUnifier.ts:607](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L607) This function is called to animate a `Filter`'s own properties, or a plain numeric "progress" value when no `filter` is given. See [animate](#animate) for animating a canvas element's properties instead. ##### Returns [#returns-3] The id of the ticker. (`components`, `filter`, `keyframes`, `options?`, `priority?`, `apply?`, `cleanup?`, `valueRef?`) => `string` | `undefined` *** ### backRequestsCount [#backrequestscount] #### Get Signature [#get-signature-3] \> **get** `static` **backRequestsCount**(): `number` Defined in: [src/core/GameUnifier.ts:365](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L365) This function is called to get the number of pending back requests. Returns the negation of navigationRequestsCount: * Positive value (absolute value of navigationRequestsCount) when navigationRequestsCount is negative (back requests pending) * Negative value when navigationRequestsCount is positive (continue requests pending) * Zero when navigationRequestsCount is zero (no requests pending) If it is > 0, after the stepsRunning is 0, the previous step will be executed. ##### Returns [#returns-4] `number` *** ### canvasComponentExists [#canvascomponentexists] #### Get Signature [#get-signature-4] \> **get** `static` **canvasComponentExists**(): (`alias`) => `boolean` Defined in: [src/core/GameUnifier.ts:635](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L635) Checks whether a canvas component with the given alias currently exists. See the `canvasComponentExists` option of [init](#init) for why this exists. ##### Returns [#returns-5] (`alias`) => `boolean` *** ### continueRequestsCount [#continuerequestscount] #### Get Signature [#get-signature-5] \> **get** `static` **continueRequestsCount**(): `number` Defined in: [src/core/GameUnifier.ts:344](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L344) This function is called to get the number of pending continue requests. Returns a positive count of pending continue requests when navigationRequestsCount is positive. If it is > 0, after the stepsRunning is 0, the next step will be executed. ##### Returns [#returns-6] `number` *** ### currentGameStepState [#currentgamestepstate] #### Get Signature [#get-signature-6] \> **get** `static` **currentGameStepState**(): `GameStepState` | `Promise`\<`GameStepState`> Defined in: [src/core/GameUnifier.ts:263](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L263) Returns the current state of the game step. ##### Throws [#throws] when `Game.init()` has not been called yet. ##### Returns [#returns-7] `GameStepState` | `Promise`\<`GameStepState`> *** ### getCharacter [#getcharacter] #### Get Signature [#get-signature-7] \> **get** `static` **getCharacter**(): (`id`) => `CharacterInterface` | `undefined` Defined in: [src/core/GameUnifier.ts:529](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L529) This function returns the character by its id. ##### Returns [#returns-8] The character or undefined if it does not exist. (`id`) => `CharacterInterface` | `undefined` *** ### getFlag [#getflag] #### Get Signature [#get-signature-8] \> **get** `static` **getFlag**(): (`name`) => `boolean` Defined in: [src/core/GameUnifier.ts:465](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L465) This function returns the value of a flag. ##### Returns [#returns-9] (`name`) => `boolean` *** ### getVariable [#getvariable] #### Get Signature [#get-signature-9] \> **get** `static` **getVariable**(): \<`T`>(`prefix`, `key`) => `T` | `undefined` Defined in: [src/core/GameUnifier.ts:421](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L421) This function returns the value of a variable. ##### Returns [#returns-10] The value of the variable. \<`T`>(`prefix`, `key`) => `T` | `undefined` *** ### navigate [#navigate] #### Get Signature [#get-signature-10] \> **get** `static` **navigate**(): (`path`) => `void` | `Promise`\<`void`> Defined in: [src/core/GameUnifier.ts:218](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L218) The navigate function. ##### Returns [#returns-11] (`path`) => `void` | `Promise`\<`void`> #### Set Signature [#set-signature] \> **set** `static` **navigate**(`value`): `void` Defined in: [src/core/GameUnifier.ts:221](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L221) ##### Parameters [#parameters] ###### value [#value] (`path`) => `void` | `Promise`\<`void`> ##### Returns [#returns-12] `void` *** ### onLabelClosing [#onlabelclosing] #### Get Signature [#get-signature-11] \> **get** `static` **onLabelClosing**(): (`openedLabelsNumber`) => `void` Defined in: [src/core/GameUnifier.ts:489](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L489) This function is called after the narration.continue() method is executed It can be used to clear old temporary variables. ##### Returns [#returns-13] (`openedLabelsNumber`) => `void` *** ### onPreContinue [#onprecontinue] #### Get Signature [#get-signature-12] \> **get** `static` **onPreContinue**(): () => `Promise`\<`void`> Defined in: [src/core/GameUnifier.ts:325](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L325) This function is called immediately before a narration "continue" operation. ##### Returns [#returns-14] () => `Promise`\<`void`> *** ### openedLabels [#openedlabels] #### Get Signature [#get-signature-13] \> **get** `static` **openedLabels**(): `number` Defined in: [src/core/GameUnifier.ts:295](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L295) Returns the number of opened labels. ##### Throws [#throws-1] when `Game.init()` has not been called yet. ##### Returns [#returns-15] `number` *** ### removeCanvasComponent [#removecanvascomponent] #### Get Signature [#get-signature-14] \> **get** `static` **removeCanvasComponent**(): (`alias`) => `void` Defined in: [src/core/GameUnifier.ts:621](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L621) Removes one or more canvas components by alias. See the `removeCanvasComponent` option of [init](#init) for why this exists. ##### Returns [#returns-16] (`alias`) => `void` *** ### removeVariable [#removevariable] #### Get Signature [#get-signature-15] \> **get** `static` **removeVariable**(): (`prefix`, `key`) => `void` Defined in: [src/core/GameUnifier.ts:451](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L451) This function removes a variable. ##### Returns [#returns-17] (`prefix`, `key`) => `void` *** ### restoreGameStepState [#restoregamestepstate] #### Get Signature [#get-signature-16] \> **get** `static` **restoreGameStepState**(): (`state`, `navigate`) => `Promise`\<`void`> Defined in: [src/core/GameUnifier.ts:281](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L281) Restores the game step state. ##### Returns [#returns-18] (`state`, `navigate`) => `Promise`\<`void`> *** ### setFlag [#setflag] #### Get Signature [#get-signature-17] \> **get** `static` **setFlag**(): (`name`, `value`) => `void` Defined in: [src/core/GameUnifier.ts:480](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L480) This function sets the value of a flag. ##### Returns [#returns-19] (`name`, `value`) => `void` *** ### setVariable [#setvariable] #### Get Signature [#get-signature-18] \> **get** `static` **setVariable**(): (`prefix`, `key`, `value`) => `void` Defined in: [src/core/GameUnifier.ts:437](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L437) This function sets the value of a variable. ##### Returns [#returns-20] (`prefix`, `key`, `value`) => `void` *** ### stepCounter [#stepcounter] #### Get Signature [#get-signature-19] \> **get** `static` **stepCounter**(): `number` Defined in: [src/core/GameUnifier.ts:242](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L242) Returns the current step counter. This counter corresponds to the total number of steps that have been executed so far. ##### Throws [#throws-2] when `Game.init()` has not been called yet. ##### Returns [#returns-21] `number` #### Set Signature [#set-signature-1] \> **set** `static` **stepCounter**(`value`): `void` Defined in: [src/core/GameUnifier.ts:249](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L249) Returns the current state of the game step. ##### Throws [#throws-3] when `Game.init()` has not been called yet. ##### Parameters [#parameters-1] ###### value [#value-1] `number` ##### Returns [#returns-22] `void` ## Methods [#methods] ### addOnError() [#addonerror] \> `static` **addOnError**(`handler`): () => `void` Defined in: [src/core/GameUnifier.ts:539](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L539) #### Parameters [#parameters-2] ##### handler [#handler] [`OnErrorHandler`](/pixi-vn/index/type-aliases/OnErrorHandler) #### Returns [#returns-23] () => `void` *** ### addOnPreContinue() [#addonprecontinue] \> `static` **addOnPreContinue**(`handler`): `void` Defined in: [src/core/GameUnifier.ts:304](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L304) Register a handler to run immediately before a narration "continue" operation. Handlers are executed in registration order and may be async. Use `{@link addOnPreContinue}` / `{@link removeOnPreContinue}` to manage them programmatically. #### Parameters [#parameters-3] ##### handler [#handler-1] () => `void` | `Promise`\<`void`> #### Returns [#returns-24] `void` *** ### clearOnErrorHandlers() [#clearonerrorhandlers] \> `static` **clearOnErrorHandlers**(): `void` Defined in: [src/core/GameUnifier.ts:548](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L548) #### Returns [#returns-25] `void` *** ### clearOnPreContinueHandlers() [#clearonprecontinuehandlers] \> `static` **clearOnPreContinueHandlers**(): `void` Defined in: [src/core/GameUnifier.ts:312](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L312) #### Returns [#returns-26] `void` *** ### increaseBackRequest() [#increasebackrequest] \> `static` **increaseBackRequest**(`amount?`): `void` Defined in: [src/core/GameUnifier.ts:375](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L375) This function is called to increase the number of pending back requests. Note: While the decrement operation itself is atomic, the overall navigation processing uses a lock in processNavigationRequests to ensure atomicity of read-modify-write operations across async boundaries. #### Parameters [#parameters-4] ##### amount? [#amount] `number` = `1` The number of steps to increase. Default is 1. #### Returns [#returns-27] `void` *** ### increaseContinueRequest() [#increasecontinuerequest] \> `static` **increaseContinueRequest**(`amount?`): `void` Defined in: [src/core/GameUnifier.ts:354](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L354) This function is called to increase the number of pending continue requests. Note: While the increment operation itself is atomic, the overall navigation processing uses a lock in processNavigationRequests to ensure atomicity of read-modify-write operations across async boundaries. #### Parameters [#parameters-5] ##### amount? [#amount-1] `number` = `1` The number of steps to increase. Default is 1. #### Returns [#returns-28] `void` *** ### init() [#init] \> `static` **init**(`options`): `void` Defined in: [src/core/GameUnifier.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L15) #### Parameters [#parameters-6] ##### options [#options] ###### animate [#animate-1] \<`T`>(`components`, `keyframes`, `options?`, `priority?`) => `string` | `undefined` This function is called to animate a component. **Default** ```ts UPDATE_PRIORITY.NORMAL ``` ###### animateFilter [#animatefilter-1] (`components`, `filter`, `keyframes`, `options?`, `priority?`, `apply?`, `cleanup?`, `valueRef?`) => `string` | `undefined` This function is called to animate either a `Filter`'s own properties, or a plain numeric "progress" value with no live target (as opposed to [animate](#animate), which animates a canvas element's properties). The latter is the generic mechanism behind the mask-based transitions (wipe/iris/split): they have no canvas element or Filter property to write directly, just a number and a side effect. **Default** ```ts UPDATE_PRIORITY.NORMAL ``` ###### canvasComponentExists [#canvascomponentexists-1] (`alias`) => `boolean` This function checks whether a canvas component with the given alias currently exists. Used by the `tickers` module to prune ticker/alias associations for components no longer on the canvas, without importing `@drincs/pixi-vn/canvas` directly (see [removeCanvasComponent](#removecanvascomponent)). ###### getCharacter [#getcharacter-1] (`id`) => `CharacterInterface` | `undefined` This function returns the character by its id. ###### getCurrentGameStepState [#getcurrentgamestepstate] () => `GameStepState` | `Promise`\<`GameStepState`> This function returns the current state of the game step. If your game engine does not have a history of steps, you can return an empty object. ###### getFlag [#getflag-1] (`name`) => `boolean` This function returns the value of a flag. ###### getOpenedLabels [#getopenedlabels] () => `number` This function returns the number of opened labels. If your game engine does not have a narration system, you can return 0. ###### getStepCounter [#getstepcounter] () => `number` This function returns the current step counter. This counter corresponds to the total number of steps that have been executed so far. If your game engine does not have a history of steps, you can return 0. ###### getVariable [#getvariable-1] \<`T`>(`prefix`, `key`) => `T` | `undefined` This function returns the value of a variable. ###### navigate? [#navigate-1] (`path`) => `void` | `Promise`\<`void`> The navigate function. ###### onLabelClosing? [#onlabelclosing-1] (`openedLabelsNumber`) => `void` This function is called after the narration.continue() method is executed. It can be used to clear old temporary variables. ###### processNavigationRequests [#processnavigationrequests] (`navigationRequestsCount`, `props`) => `object` This function is called to process the pending navigation requests (continue/back). ###### removeCanvasComponent [#removecanvascomponent-1] (`alias`) => `void` This function removes one or more canvas components by alias. Used by the `tickers` module's `onComplete` to honor `aliasToRemoveAfter` without importing `@drincs/pixi-vn/canvas` directly (which would close an import cycle, since `canvas` depends on `tickers`). ###### removeVariable [#removevariable-1] (`prefix`, `key`) => `void` This function removes a variable. ###### restoreGameStepState [#restoregamestepstate-1] (`state`, `navigate`) => `Promise`\<`void`> This function restores the game step state. If your game engine does not have a history of steps, you can return a resolved promise. ###### setFlag [#setflag-1] (`name`, `value`) => `void` This function sets the value of a flag. ###### setStepCounter [#setstepcounter] (`value`) => `void` This function sets the current step counter. If your game engine does not have a history of steps, you can not set the step counter. ###### setVariable [#setvariable-1] (`prefix`, `key`, `value`) => `void` This function sets the value of a variable. ###### addHistoryItem [#addhistoryitem-1] (`historyInfo?`, `opstions?`) => `void` | `Promise`\<`void`> Add a history step to the history. If your game engine does not have a history of steps, you can return a resolved promise. #### Returns [#returns-29] `void` *** ### processNavigationRequests() [#processnavigationrequests-1] \> `static` **processNavigationRequests**(`props`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/GameUnifier.ts:395](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L395) This function processes the pending navigation requests (continue/back). #### Parameters [#parameters-7] ##### props [#props] `any` #### Returns [#returns-30] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> #### Throws [#throws-4] when `Game.init()` has not been called yet. *** ### removeOnError() [#removeonerror] \> `static` **removeOnError**(`handler`): `void` Defined in: [src/core/GameUnifier.ts:544](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L544) #### Parameters [#parameters-8] ##### handler [#handler-2] [`OnErrorHandler`](/pixi-vn/index/type-aliases/OnErrorHandler) #### Returns [#returns-31] `void` *** ### removeOnPreContinue() [#removeonprecontinue] \> `static` **removeOnPreContinue**(`handler`): `void` Defined in: [src/core/GameUnifier.ts:307](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L307) #### Parameters [#parameters-9] ##### handler [#handler-3] () => `void` | `Promise`\<`void`> #### Returns [#returns-32] `void` *** ### runOnError() [#runonerror] \> `static` **runOnError**(`error`, `props`): `Promise`\<`void`> Defined in: [src/core/GameUnifier.ts:552](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/GameUnifier.ts#L552) #### Parameters [#parameters-10] ##### error [#error] `unknown` ##### props [#props-1] `any` #### Returns [#returns-33] `Promise`\<`void`> # Class: GameWorkerManager (/pixi-vn/index/classes/GameWorkerManager) Defined in: [src/worker/GameWorkerManager.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L26) Optional integration point for offloading Pixi'VN's own heavy, pure (no DOM/PixiJS/audio) computations to a Worker the game project registers. Pixi'VN never creates a Worker itself and works exactly as before if none is registered - this is opt-in, not a requirement, so projects that can't or don't want to use Workers (SSR, certain embeds, ...) are unaffected. The game project owns the `Worker` instance (so it controls the bundler-specific `new Worker(new URL(...), { type: "module" })` call, any CSP/nonce concerns, and whether it exists at all) and just needs its `onmessage` wired to [handleGameWorkerMessage](/pixi-vn/index/functions/handleGameWorkerMessage) - see that function's doc comment for the worker-side half of this. ## Constructors [#constructors] ### Constructor [#constructor] \> **new GameWorkerManager**(): `GameWorkerManager` #### Returns [#returns] `GameWorkerManager` ## Accessors [#accessors] ### isAvailable [#isavailable] #### Get Signature [#get-signature] \> **get** `static` **isAvailable**(): `boolean` Defined in: [src/worker/GameWorkerManager.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L31) ##### Returns [#returns-1] `boolean` ## Methods [#methods] ### clone() [#clone] \> `static` **clone**\<`T`>(`value`): `Promise`\<`T`> Defined in: [src/worker/GameWorkerManager.ts:108](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L108) Deep-clones `value` (JSON round-trip, matching `createExportableElement`) on the registered worker. #### Type Parameters [#type-parameters] ##### T [#t] `T` *extends* `object` #### Parameters [#parameters] ##### value [#value] `T` #### Returns [#returns-2] `Promise`\<`T`> *** ### custom() [#custom] \> `static` **custom**\<`TResult`>(`kind`, `payload`): `Promise`\<`TResult`> Defined in: [src/worker/GameWorkerManager.ts:118](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L118) Runs the handler a third-party library registered for `kind` (see `registerGameWorkerHandler`) on the registered worker, passing it `payload`. Lets a library built on top of Pixi'VN share this same worker instead of needing one of its own - see that function's doc comment for the worker-side half of this. #### Type Parameters [#type-parameters-1] ##### TResult [#tresult] `TResult` = `unknown` #### Parameters [#parameters-1] ##### kind [#kind] `string` ##### payload [#payload] `unknown` #### Returns [#returns-3] `Promise`\<`TResult`> *** ### diff() [#diff] \> `static` **diff**(`before`, `after`): `Promise`\<`Difference`\[]> Defined in: [src/worker/GameWorkerManager.ts:103](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L103) Computes the `microdiff` difference between `before` and `after` on the registered worker. #### Parameters [#parameters-2] ##### before [#before] `object` ##### after [#after] `object` #### Returns [#returns-4] `Promise`\<`Difference`\[]> *** ### register() [#register] \> `static` **register**(`worker`): `void` Defined in: [src/worker/GameWorkerManager.ts:40](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L40) Registers the Worker Pixi'VN may use for eligible heavy computations. Replaces any previously registered worker (its still-pending requests are rejected, never left hanging). #### Parameters [#parameters-3] ##### worker [#worker] `Worker` #### Returns [#returns-5] `void` *** ### restoreDiff() [#restorediff] \> `static` **restoreDiff**\<`T`>(`state`, `diff`): `Promise`\<`T`> Defined in: [src/worker/GameWorkerManager.ts:98](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L98) Applies `diff` to `state` on the registered worker (see `restoreDiffChanges`). #### Type Parameters [#type-parameters-2] ##### T [#t-1] `T` *extends* `object` #### Parameters [#parameters-4] ##### state [#state] `T` ##### diff [#diff-1] `Difference`\[] #### Returns [#returns-6] `Promise`\<`T`> *** ### unregister() [#unregister] \> `static` **unregister**(): `void` Defined in: [src/worker/GameWorkerManager.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerManager.ts#L47) Stops using the registered worker (does not terminate it - the caller owns its lifecycle). #### Returns [#returns-7] `void` # Class: HistoryManagerStatic (/pixi-vn/index/classes/HistoryManagerStatic) Defined in: [src/history/HistoryManagerStatic.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L16) ## Constructors [#constructors] ### Constructor [#constructor] \> **new HistoryManagerStatic**(): `HistoryManagerStatic` #### Returns [#returns] `HistoryManagerStatic` ## Properties [#properties] ### \_diffHistory [#_diffhistory] \> `static` **\_diffHistory**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`number`, `Difference`\[]> Defined in: [src/history/HistoryManagerStatic.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L17) *** ### \_narrationHistory [#_narrationhistory] \> `static` **\_narrationHistory**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`number`, [`NarrationHistory`](/pixi-vn/index/interfaces/NarrationHistory)> Defined in: [src/history/HistoryManagerStatic.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L21) *** ### \_originalStepData [#_originalstepdata] \> `static` **\_originalStepData**: `GameStepState` | `undefined` = `undefined` Defined in: [src/history/HistoryManagerStatic.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L24) *** ### \_stepsInfoHistory [#_stepsinfohistory] \> `static` **\_stepsInfoHistory**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`number`, `Omit`\<[`HistoryStep`](/pixi-vn/index/interfaces/HistoryStep), `"diff"`>> Defined in: [src/history/HistoryManagerStatic.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L20) *** ### goBackMode [#gobackmode] \> `static` **goBackMode**: [`HistoryGoBackModeType`](/pixi-vn/index/type-aliases/HistoryGoBackModeType) = `"step"` Defined in: [src/history/HistoryManagerStatic.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L23) *** ### stepLimitSaved [#steplimitsaved] \> `static` **stepLimitSaved**: `number` = `20` Defined in: [src/history/HistoryManagerStatic.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L22) ## Accessors [#accessors] ### originalStepData [#originalstepdata] #### Get Signature [#get-signature] \> **get** `static` **originalStepData**(): `GameStepState` Defined in: [src/history/HistoryManagerStatic.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L25) ##### Returns [#returns-1] `GameStepState` #### Set Signature [#set-signature] \> **set** `static` **originalStepData**(`value`): `void` Defined in: [src/history/HistoryManagerStatic.ts:55](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L55) ##### Parameters [#parameters] ###### value [#value] `GameStepState` ##### Returns [#returns-2] `void` # Class: ImageContainer (/pixi-vn/index/classes/ImageContainer) Defined in: [src/canvas/components/ImageContainer.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L29) This class is a extension of the [Container](/pixi-vn/index/classes/Container), it has the same properties and methods, but this container is composed only of [ImageSprite](/pixi-vn/index/classes/ImageSprite) and introduces the [load](#load) functionality ## Example [#example] ```ts Assets.add({ alias: "liam-body", src: "https://example.com/assets/liam/body.png" }); Assets.add({ alias: "liam-head", src: "https://example.com/assets/liam/head.png" }); const container = new ImageContainer({ xAlign: 0.5 }, ["liam-body", "liam-head"]); await container.load(); canvas.add("liam", container); ``` ## Extends [#extends] * [`Container`](/pixi-vn/index/classes/Container)\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite), [`ImageContainerMemory`](/pixi-vn/index/interfaces/ImageContainerMemory)> ## Constructors [#constructors] ### Constructor [#constructor] \> **new ImageContainer**(`options?`, `textureAliases?`): `ImageContainer` Defined in: [src/canvas/components/ImageContainer.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L34) #### Parameters [#parameters] ##### options? [#options] [`ImageContainerOptions`](/pixi-vn/index/interfaces/ImageContainerOptions)\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> The options for the component. ##### textureAliases? [#texturealiases] `string`\[] An array of image URLs or paths. If you have initialized the "asset matrix", you can use the alias of the texture. #### Returns [#returns] `ImageContainer` #### Overrides [#overrides] [`Container`](/pixi-vn/index/classes/Container).[`constructor`](/pixi-vn/index/classes/Container#constructor) ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] [`Container`](/pixi-vn/index/classes/Container).[`__devtoolIgnore`](/pixi-vn/index/classes/Container#__devtoolignore) *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] [`Container`](/pixi-vn/index/classes/Container).[`__devtoolIgnoreChildren`](/pixi-vn/index/classes/Container#__devtoolignorechildren) *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] [`Container`](/pixi-vn/index/classes/Container).[`__devtoolLocked`](/pixi-vn/index/classes/Container#__devtoollocked) *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-3] [`Container`](/pixi-vn/index/classes/Container).[`_cx`](/pixi-vn/index/classes/Container#_cx) *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-4] [`Container`](/pixi-vn/index/classes/Container).[`_cy`](/pixi-vn/index/classes/Container#_cy) *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-5] [`Container`](/pixi-vn/index/classes/Container).[`_pivot`](/pixi-vn/index/classes/Container#_pivot) *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-6] [`Container`](/pixi-vn/index/classes/Container).[`_position`](/pixi-vn/index/classes/Container#_position) *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-7] [`Container`](/pixi-vn/index/classes/Container).[`_scale`](/pixi-vn/index/classes/Container#_scale) *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-8] [`Container`](/pixi-vn/index/classes/Container).[`_skew`](/pixi-vn/index/classes/Container#_skew) *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-9] [`Container`](/pixi-vn/index/classes/Container).[`_sx`](/pixi-vn/index/classes/Container#_sx) *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-10] [`Container`](/pixi-vn/index/classes/Container).[`_sy`](/pixi-vn/index/classes/Container#_sy) *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-11] [`Container`](/pixi-vn/index/classes/Container).[`_zIndex`](/pixi-vn/index/classes/Container#_zindex) *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-12] [`Container`](/pixi-vn/index/classes/Container).[`accessible`](/pixi-vn/index/classes/Container#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-13] [`Container`](/pixi-vn/index/classes/Container).[`accessibleChildren`](/pixi-vn/index/classes/Container#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-14] [`Container`](/pixi-vn/index/classes/Container).[`accessibleHint`](/pixi-vn/index/classes/Container#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-15] [`Container`](/pixi-vn/index/classes/Container).[`accessiblePointerEvents`](/pixi-vn/index/classes/Container#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-16] [`Container`](/pixi-vn/index/classes/Container).[`accessibleText`](/pixi-vn/index/classes/Container#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-17] [`Container`](/pixi-vn/index/classes/Container).[`accessibleTitle`](/pixi-vn/index/classes/Container#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-7] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-18] [`Container`](/pixi-vn/index/classes/Container).[`accessibleType`](/pixi-vn/index/classes/Container#accessibletype) *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:10 **`Internal`** #### Inherited from [#inherited-from-19] [`Container`](/pixi-vn/index/classes/Container).[`allowChildren`](/pixi-vn/index/classes/Container#allowchildren) *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-8] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-20] [`Container`](/pixi-vn/index/classes/Container).[`boundsArea`](/pixi-vn/index/classes/Container#boundsarea) *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-21] [`Container`](/pixi-vn/index/classes/Container).[`cacheAsBitmap`](/pixi-vn/index/classes/Container#cacheasbitmap) *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters-1] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns-1] `void` #### Example [#example-9] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](/pixi-vn/index/classes/VideoSprite#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-22] [`Container`](/pixi-vn/index/classes/Container).[`cacheAsTexture`](/pixi-vn/index/classes/Container#cacheastexture) *** ### children [#children] \> `readonly` **children**: [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-10] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-23] [`Container`](/pixi-vn/index/classes/Container).[`children`](/pixi-vn/index/classes/Container#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-11] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-24] [`Container`](/pixi-vn/index/classes/Container).[`cullable`](/pixi-vn/index/classes/Container#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-12] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-25] [`Container`](/pixi-vn/index/classes/Container).[`cullableChildren`](/pixi-vn/index/classes/Container#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-13] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-9] ```ts null ``` #### Inherited from [#inherited-from-26] [`Container`](/pixi-vn/index/classes/Container).[`cullArea`](/pixi-vn/index/classes/Container#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-14] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-10] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-27] [`Container`](/pixi-vn/index/classes/Container).[`cursor`](/pixi-vn/index/classes/Container#cursor) *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-28] [`Container`](/pixi-vn/index/classes/Container).[`depthOfChildModified`](/pixi-vn/index/classes/Container#depthofchildmodified) *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-15] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-11] ```ts false ``` #### See [#see-3] [Container#destroy](/pixi-vn/index/classes/Container#destroy) For destroying objects #### Inherited from [#inherited-from-29] [`Container`](/pixi-vn/index/classes/Container).[`destroyed`](/pixi-vn/index/classes/Container#destroyed) *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-30] [`Container`](/pixi-vn/index/classes/Container).[`effects`](/pixi-vn/index/classes/Container#effects) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-31] [`Container`](/pixi-vn/index/classes/Container).[`eventMode`](/pixi-vn/index/classes/Container#eventmode) *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-17] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * [Container#filters](/pixi-vn/index/classes/VideoSprite#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-32] [`Container`](/pixi-vn/index/classes/Container).[`filterArea`](/pixi-vn/index/classes/Container#filterarea) *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-33] [`Container`](/pixi-vn/index/classes/Container).[`globalDisplayStatus`](/pixi-vn/index/classes/Container#globaldisplaystatus) *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-34] [`Container`](/pixi-vn/index/classes/Container).[`groupAlpha`](/pixi-vn/index/classes/Container#groupalpha) *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-35] [`Container`](/pixi-vn/index/classes/Container).[`groupBlendMode`](/pixi-vn/index/classes/Container#groupblendmode) *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-36] [`Container`](/pixi-vn/index/classes/Container).[`groupColor`](/pixi-vn/index/classes/Container#groupcolor) *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-37] [`Container`](/pixi-vn/index/classes/Container).[`groupColorAlpha`](/pixi-vn/index/classes/Container#groupcoloralpha) *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-38] [`Container`](/pixi-vn/index/classes/Container).[`groupTransform`](/pixi-vn/index/classes/Container#grouptransform) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-18] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-39] [`Container`](/pixi-vn/index/classes/Container).[`hitArea`](/pixi-vn/index/classes/Container#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-19] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-40] [`Container`](/pixi-vn/index/classes/Container).[`interactive`](/pixi-vn/index/classes/Container#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-12] ```ts true ``` #### Example [#example-20] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-41] [`Container`](/pixi-vn/index/classes/Container).[`interactiveChildren`](/pixi-vn/index/classes/Container#interactivechildren) *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-21] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * [Container#cacheAsTexture](/pixi-vn/index/classes/Container#cacheastexture) For enabling caching * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cache #### Inherited from [#inherited-from-42] [`Container`](/pixi-vn/index/classes/Container).[`isCachedAsTexture`](/pixi-vn/index/classes/Container#iscachedastexture) *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-3] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-22] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-43] [`Container`](/pixi-vn/index/classes/Container).[`isInteractive`](/pixi-vn/index/classes/Container#isinteractive) *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-44] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-45] [`Container`](/pixi-vn/index/classes/Container).[`layerParentId`](/pixi-vn/index/classes/Container#layerparentid) *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-46] [`Container`](/pixi-vn/index/classes/Container).[`localAlpha`](/pixi-vn/index/classes/Container#localalpha) *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-47] [`Container`](/pixi-vn/index/classes/Container).[`localBlendMode`](/pixi-vn/index/classes/Container#localblendmode) *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-48] [`Container`](/pixi-vn/index/classes/Container).[`localColor`](/pixi-vn/index/classes/Container#localcolor) *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-49] [`Container`](/pixi-vn/index/classes/Container).[`localDisplayStatus`](/pixi-vn/index/classes/Container#localdisplaystatus) *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-23] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](/pixi-vn/index/classes/VideoSprite#worldtransform) For global transform * [Container#groupTransform](/pixi-vn/index/classes/VideoSprite#grouptransform) For render group transform #### Inherited from [#inherited-from-50] [`Container`](/pixi-vn/index/classes/Container).[`localTransform`](/pixi-vn/index/classes/Container#localtransform) *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a [Sprite](/pixi-vn/index/classes/Sprite) object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-24] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * [Sprite](/pixi-vn/index/classes/Sprite) For texture-based masks * [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-51] [`Container`](/pixi-vn/index/classes/Container).[`mask`](/pixi-vn/index/classes/Container#mask) *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-52] [`Container`](/pixi-vn/index/classes/Container).[`name`](/pixi-vn/index/classes/Container#name) *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-53] [`Container`](/pixi-vn/index/classes/Container).[`onclick`](/pixi-vn/index/classes/Container#onclick) *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-54] [`Container`](/pixi-vn/index/classes/Container).[`oncontextmenu`](/pixi-vn/index/classes/Container#oncontextmenu) *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) = `{}` Defined in: [src/canvas/components/Container.ts:93](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L93) ListenerExtension #### Inherited from [#inherited-from-55] [`Container`](/pixi-vn/index/classes/Container).[`onEventsHandlers`](/pixi-vn/index/classes/Container#oneventshandlers) *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-17] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-56] [`Container`](/pixi-vn/index/classes/Container).[`onglobalmousemove`](/pixi-vn/index/classes/Container#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-57] [`Container`](/pixi-vn/index/classes/Container).[`onglobalpointermove`](/pixi-vn/index/classes/Container#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-58] [`Container`](/pixi-vn/index/classes/Container).[`onglobaltouchmove`](/pixi-vn/index/classes/Container#onglobaltouchmove) *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-20] ```ts null ``` #### Inherited from [#inherited-from-59] [`Container`](/pixi-vn/index/classes/Container).[`onmousedown`](/pixi-vn/index/classes/Container#onmousedown) *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-60] [`Container`](/pixi-vn/index/classes/Container).[`onmouseenter`](/pixi-vn/index/classes/Container#onmouseenter) *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-61] [`Container`](/pixi-vn/index/classes/Container).[`onmouseleave`](/pixi-vn/index/classes/Container#onmouseleave) *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-62] [`Container`](/pixi-vn/index/classes/Container).[`onmousemove`](/pixi-vn/index/classes/Container#onmousemove) *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-63] [`Container`](/pixi-vn/index/classes/Container).[`onmouseout`](/pixi-vn/index/classes/Container#onmouseout) *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-64] [`Container`](/pixi-vn/index/classes/Container).[`onmouseover`](/pixi-vn/index/classes/Container#onmouseover) *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-65] [`Container`](/pixi-vn/index/classes/Container).[`onmouseup`](/pixi-vn/index/classes/Container#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-66] [`Container`](/pixi-vn/index/classes/Container).[`onmouseupoutside`](/pixi-vn/index/classes/Container#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-67] [`Container`](/pixi-vn/index/classes/Container).[`onpointercancel`](/pixi-vn/index/classes/Container#onpointercancel) *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-68] [`Container`](/pixi-vn/index/classes/Container).[`onpointerdown`](/pixi-vn/index/classes/Container#onpointerdown) *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-69] [`Container`](/pixi-vn/index/classes/Container).[`onpointerenter`](/pixi-vn/index/classes/Container#onpointerenter) *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-70] [`Container`](/pixi-vn/index/classes/Container).[`onpointerleave`](/pixi-vn/index/classes/Container#onpointerleave) *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-71] [`Container`](/pixi-vn/index/classes/Container).[`onpointermove`](/pixi-vn/index/classes/Container#onpointermove) *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-72] [`Container`](/pixi-vn/index/classes/Container).[`onpointerout`](/pixi-vn/index/classes/Container#onpointerout) *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-73] [`Container`](/pixi-vn/index/classes/Container).[`onpointerover`](/pixi-vn/index/classes/Container#onpointerover) *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-74] [`Container`](/pixi-vn/index/classes/Container).[`onpointertap`](/pixi-vn/index/classes/Container#onpointertap) *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-75] [`Container`](/pixi-vn/index/classes/Container).[`onpointerup`](/pixi-vn/index/classes/Container#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-76] [`Container`](/pixi-vn/index/classes/Container).[`onpointerupoutside`](/pixi-vn/index/classes/Container#onpointerupoutside) *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-48] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-77] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-78] [`Container`](/pixi-vn/index/classes/Container).[`onrightclick`](/pixi-vn/index/classes/Container#onrightclick) *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-79] [`Container`](/pixi-vn/index/classes/Container).[`onrightdown`](/pixi-vn/index/classes/Container#onrightdown) *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-80] [`Container`](/pixi-vn/index/classes/Container).[`onrightup`](/pixi-vn/index/classes/Container#onrightup) *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-81] [`Container`](/pixi-vn/index/classes/Container).[`onrightupoutside`](/pixi-vn/index/classes/Container#onrightupoutside) *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-82] [`Container`](/pixi-vn/index/classes/Container).[`ontap`](/pixi-vn/index/classes/Container#ontap) *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-83] [`Container`](/pixi-vn/index/classes/Container).[`ontouchcancel`](/pixi-vn/index/classes/Container#ontouchcancel) *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-84] [`Container`](/pixi-vn/index/classes/Container).[`ontouchend`](/pixi-vn/index/classes/Container#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-85] [`Container`](/pixi-vn/index/classes/Container).[`ontouchendoutside`](/pixi-vn/index/classes/Container#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-86] [`Container`](/pixi-vn/index/classes/Container).[`ontouchmove`](/pixi-vn/index/classes/Container#ontouchmove) *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-87] [`Container`](/pixi-vn/index/classes/Container).[`ontouchstart`](/pixi-vn/index/classes/Container#ontouchstart) *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-59] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-88] [`Container`](/pixi-vn/index/classes/Container).[`onwheel`](/pixi-vn/index/classes/Container#onwheel) *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-60] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-89] [`Container`](/pixi-vn/index/classes/Container).[`parent`](/pixi-vn/index/classes/Container#parent) *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-90] [`Container`](/pixi-vn/index/classes/Container).[`parentRenderLayer`](/pixi-vn/index/classes/Container#parentrenderlayer) *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` = `CANVAS_IMAGE_CONTAINER_ID` Defined in: [src/canvas/components/ImageContainer.ts:70](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L70) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Overrides [#overrides-1] [`Container`](/pixi-vn/index/classes/Container).[`pixivnId`](/pixi-vn/index/classes/Container#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-91] [`Container`](/pixi-vn/index/classes/Container).[`relativeGroupTransform`](/pixi-vn/index/classes/Container#relativegrouptransform) *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:800 **`Internal`** #### Inherited from [#inherited-from-92] [`Container`](/pixi-vn/index/classes/Container).[`renderPipeId`](/pixi-vn/index/classes/Container#renderpipeid) *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-61] ```ts container.sortableChildren = true; ``` #### Default [#default-49] ```ts false ``` #### Inherited from [#inherited-from-93] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-4] `void` #### Example [#example-62] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling automatic sorting * [Container#zIndex](/pixi-vn/index/classes/VideoSprite#zindex) For setting child order #### Inherited from [#inherited-from-94] [`Container`](/pixi-vn/index/classes/Container).[`sortChildren`](/pixi-vn/index/classes/Container#sortchildren) *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-50] ```ts false @internal ``` #### Inherited from [#inherited-from-95] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-51] ```ts 0 ``` #### Example [#example-63] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-96] [`Container`](/pixi-vn/index/classes/Container).[`tabIndex`](/pixi-vn/index/classes/Container#tabindex) *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-97] [`Container`](/pixi-vn/index/classes/Container).[`uid`](/pixi-vn/index/classes/Container#uid) *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-5] `void` #### Example [#example-64] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-98] [`Container`](/pixi-vn/index/classes/Container).[`updateCacheTexture`](/pixi-vn/index/classes/Container#updatecachetexture) *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-99] [`Container`](/pixi-vn/index/classes/Container).[`updateTick`](/pixi-vn/index/classes/Container#updatetick) *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-65] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-52] ```ts 0 ``` #### Inherited from [#inherited-from-100] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) *** ### prefixed [#prefixed] \> `static` **prefixed**: `string` | `boolean` Defined in: node_modules/eventemitter3/index.d.ts:9 #### Inherited from [#inherited-from-101] [`Container`](/pixi-vn/index/classes/Container).[`prefixed`](/pixi-vn/index/classes/Container#prefixed) ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Container.ts:160](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L160) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-6] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: [src/canvas/components/Container.ts:148](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L148) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-2] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-7] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-102] [`Container`](/pixi-vn/index/classes/Container).[`align`](/pixi-vn/index/classes/Container#align) *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-66] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-53] ```ts 1 ``` ##### See [#see-14] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control ##### Returns [#returns-8] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-3] ###### value [#value-1] `number` ##### Returns [#returns-9] `void` #### Inherited from [#inherited-from-103] [`Container`](/pixi-vn/index/classes/Container).[`alpha`](/pixi-vn/index/classes/Container#alpha) *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `PointData` Defined in: [src/canvas/components/Container.ts:119](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L119) The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. The default is `(0,0)`, this means the imageContainer's origin is the top left. Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered. Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-67] ```ts import { ImageContainer } from '@drincs/pixi-vn'; const imageContainer = new ImageContainer(); imageContainer.anchor = 0.5; ``` ##### Returns [#returns-10] `PointData` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: [src/canvas/components/Container.ts:124](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L124) The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. The default is `(0,0)`, this means the imageContainer's origin is the top left. Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered. Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-68] ```ts import { ImageContainer } from '@drincs/pixi-vn'; const imageContainer = new ImageContainer(); imageContainer.anchor = 0.5; ``` ##### Parameters [#parameters-4] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-11] `void` The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. The default is `(0,0)`, this means the imageContainer's origin is the top left. Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered. Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. #### Example [#example-69] ```ts import { ImageContainer } from '@drincs/pixi-vn'; const imageContainer = new ImageContainer(); imageContainer.anchor = 0.5; ``` #### Inherited from [#inherited-from-104] [`Container`](/pixi-vn/index/classes/Container).[`anchor`](/pixi-vn/index/classes/Container#anchor) *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-70] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-12] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-5] ###### value [#value-3] `number` ##### Returns [#returns-13] `void` #### Inherited from [#inherited-from-105] [`Container`](/pixi-vn/index/classes/Container).[`angle`](/pixi-vn/index/classes/Container#angle) *** ### blendMode [#blendmode] #### Get Signature [#get-signature-4] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-71] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-54] ```ts 'normal' ``` ##### See [#see-15] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments ##### Returns [#returns-14] `BLEND_MODES` #### Set Signature [#set-signature-4] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-6] ###### value [#value-4] `BLEND_MODES` ##### Returns [#returns-15] `void` #### Inherited from [#inherited-from-106] [`Container`](/pixi-vn/index/classes/Container).[`blendMode`](/pixi-vn/index/classes/Container#blendmode) *** ### filters [#filters] #### Get Signature [#get-signature-5] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-72] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-16] Filter For filter base class ##### Returns [#returns-16] readonly `Filter`\[] #### Set Signature [#set-signature-5] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-73] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-17] Filter For filter base class ##### Parameters [#parameters-7] ###### value [#value-5] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-17] `void` #### Inherited from [#inherited-from-107] [`Container`](/pixi-vn/index/classes/Container).[`filters`](/pixi-vn/index/classes/Container#filters) *** ### haveEmptyTexture [#haveemptytexture] #### Get Signature [#get-signature-6] \> **get** **haveEmptyTexture**(): `boolean` Defined in: [src/canvas/components/ImageContainer.ts:110](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L110) Check if there is a child with the empty texture. ##### Returns [#returns-18] `boolean` A boolean that is true if there is a child with the empty texture. *** ### height [#height] #### Get Signature [#get-signature-7] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1117 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-74] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Returns [#returns-19] `number` #### Set Signature [#set-signature-6] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1118 ##### Parameters [#parameters-8] ###### value [#value-6] `number` ##### Returns [#returns-20] `void` #### Inherited from [#inherited-from-108] [`Container`](/pixi-vn/index/classes/Container).[`height`](/pixi-vn/index/classes/Container#height) *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-8] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-21] `boolean` #### Inherited from [#inherited-from-109] [`Container`](/pixi-vn/index/classes/Container).[`isRenderable`](/pixi-vn/index/classes/Container#isrenderable) *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-9] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-22] `boolean` #### Set Signature [#set-signature-7] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-9] ###### value [#value-7] `boolean` ##### Returns [#returns-23] `void` #### Inherited from [#inherited-from-110] [`Container`](/pixi-vn/index/classes/Container).[`isRenderGroup`](/pixi-vn/index/classes/Container#isrendergroup) *** ### loadIsStarted [#loadisstarted] #### Get Signature [#get-signature-10] \> **get** **loadIsStarted**(): `boolean` Defined in: [src/canvas/components/ImageContainer.ts:72](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L72) ##### Returns [#returns-24] `boolean` *** ### memory [#memory] #### Get Signature [#get-signature-11] \> **get** **memory**(): [`ImageContainerMemory`](/pixi-vn/index/interfaces/ImageContainerMemory) Defined in: [src/canvas/components/ImageContainer.ts:57](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L57) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-25] [`ImageContainerMemory`](/pixi-vn/index/interfaces/ImageContainerMemory) #### Overrides [#overrides-2] [`Container`](/pixi-vn/index/classes/Container).[`memory`](/pixi-vn/index/classes/Container#memory-1) *** ### origin [#origin] #### Get Signature [#get-signature-12] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-75] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-26] `ObservablePoint` #### Set Signature [#set-signature-8] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-10] ###### value [#value-8] `number` | `PointData` ##### Returns [#returns-27] `void` #### Inherited from [#inherited-from-111] [`Container`](/pixi-vn/index/classes/Container).[`origin`](/pixi-vn/index/classes/Container#origin) *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-13] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Container.ts:231](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L231) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-28] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-9] \> **set** **percentagePosition**(`value`): `void` Defined in: [src/canvas/components/Container.ts:219](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L219) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-11] ###### value [#value-9] `number` | `Partial`\<`PointData`> ##### Returns [#returns-29] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-112] [`Container`](/pixi-vn/index/classes/Container).[`percentagePosition`](/pixi-vn/index/classes/Container#percentageposition) *** ### percentageX [#percentagex] #### Get Signature [#get-signature-14] \> **get** **percentageX**(): `number` Defined in: [src/canvas/components/Container.ts:245](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L245) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-30] `number` #### Set Signature [#set-signature-10] \> **set** **percentageX**(`_value`): `void` Defined in: [src/canvas/components/Container.ts:237](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L237) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-12] ###### \_value [#_value] `number` ##### Returns [#returns-31] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-113] [`Container`](/pixi-vn/index/classes/Container).[`percentageX`](/pixi-vn/index/classes/Container#percentagex) *** ### percentageY [#percentagey] #### Get Signature [#get-signature-15] \> **get** **percentageY**(): `number` Defined in: [src/canvas/components/Container.ts:256](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L256) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-32] `number` #### Set Signature [#set-signature-11] \> **set** **percentageY**(`_value`): `void` Defined in: [src/canvas/components/Container.ts:248](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L248) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-13] ###### \_value [#_value-1] `number` ##### Returns [#returns-33] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-114] [`Container`](/pixi-vn/index/classes/Container).[`percentageY`](/pixi-vn/index/classes/Container#percentagey) *** ### pivot [#pivot] #### Get Signature [#get-signature-16] \> **get** **pivot**(): `ObservablePoint` Defined in: [src/canvas/components/Container.ts:137](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L137) The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-76] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-34] `ObservablePoint` #### Set Signature [#set-signature-12] \> **set** **pivot**(`value`): `void` Defined in: [src/canvas/components/Container.ts:140](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L140) The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-77] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-3] 4.0.0 ##### Parameters [#parameters-14] ###### value [#value-10] `ObservablePoint` ##### Returns [#returns-35] `void` #### Inherited from [#inherited-from-115] [`Container`](/pixi-vn/index/classes/Container).[`pivot`](/pixi-vn/index/classes/Container#pivot) *** ### position [#position] #### Get Signature [#get-signature-17] \> **get** **position**(): `ObservablePoint` Defined in: [src/canvas/components/Container.ts:323](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L323) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-78] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Returns [#returns-36] `ObservablePoint` #### Set Signature [#set-signature-13] \> **set** **position**(`value`): `void` Defined in: [src/canvas/components/Container.ts:326](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L326) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-79] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-5] 4.0.0 ##### Parameters [#parameters-15] ###### value [#value-11] `ObservablePoint` ##### Returns [#returns-37] `void` #### Inherited from [#inherited-from-116] [`Container`](/pixi-vn/index/classes/Container).[`position`](/pixi-vn/index/classes/Container#position) *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-18] \> **get** **positionInfo**(): `object` Defined in: [src/canvas/components/Container.ts:267](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L267) ##### Returns [#returns-38] `object` ###### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-14] \> **set** **positionInfo**(`value`): `void` Defined in: [src/canvas/components/Container.ts:277](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L277) ##### Parameters [#parameters-16] ###### value [#value-12] ###### type? [#type-1] `"pixel"` | `"percentage"` | `"align"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-39] `void` #### Inherited from [#inherited-from-117] [`Container`](/pixi-vn/index/classes/Container).[`positionInfo`](/pixi-vn/index/classes/Container#positioninfo) *** ### positionType [#positiontype] #### Get Signature [#get-signature-19] \> **get** **positionType**(): `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/Container.ts:259](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L259) ##### Returns [#returns-40] `"pixel"` | `"percentage"` | `"align"` #### Inherited from [#inherited-from-118] [`Container`](/pixi-vn/index/classes/Container).[`positionType`](/pixi-vn/index/classes/Container#positiontype) *** ### renderable [#renderable] #### Get Signature [#get-signature-20] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-80] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-55] ```ts true ``` ##### See [#see-18] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-41] `boolean` #### Set Signature [#set-signature-15] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-17] ###### value [#value-13] `boolean` ##### Returns [#returns-42] `void` #### Inherited from [#inherited-from-119] [`Container`](/pixi-vn/index/classes/Container).[`renderable`](/pixi-vn/index/classes/Container#renderable) *** ### rotation [#rotation] #### Get Signature [#get-signature-21] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-81] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-43] `number` #### Set Signature [#set-signature-16] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-18] ###### value [#value-14] `number` ##### Returns [#returns-44] `void` #### Inherited from [#inherited-from-120] [`Container`](/pixi-vn/index/classes/Container).[`rotation`](/pixi-vn/index/classes/Container#rotation) *** ### scale [#scale] #### Get Signature [#get-signature-22] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-82] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-6] 4.0.0 ##### Returns [#returns-45] `ObservablePoint` #### Set Signature [#set-signature-17] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-19] ###### value [#value-15] `string` | `number` | `PointData` ##### Returns [#returns-46] `void` #### Inherited from [#inherited-from-121] [`Container`](/pixi-vn/index/classes/Container).[`scale`](/pixi-vn/index/classes/Container#scale) *** ### skew [#skew] #### Get Signature [#get-signature-23] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-83] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-7] 4.0.0 ##### Default [#default-56] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-47] `ObservablePoint` #### Set Signature [#set-signature-18] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-20] ###### value [#value-16] `PointData` ##### Returns [#returns-48] `void` #### Inherited from [#inherited-from-122] [`Container`](/pixi-vn/index/classes/Container).[`skew`](/pixi-vn/index/classes/Container#skew) *** ### texture [#texture] #### Get Signature [#get-signature-24] \> **get** **texture**(): `Texture`\<`TextureSource`\<`any`>> Defined in: [src/canvas/components/ImageContainer.ts:99](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L99) The texture of the first child. If there is no child, it returns a new [Texture](/pixi-vn/index/variables/Texture). ##### Returns [#returns-49] `Texture`\<`TextureSource`\<`any`>> *** ### tint [#tint] #### Get Signature [#get-signature-25] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-84] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-57] ```ts 0xFFFFFF ``` ##### See [#see-19] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control ##### Returns [#returns-50] `number` #### Set Signature [#set-signature-19] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-21] ###### value [#value-17] `ColorSource` ##### Returns [#returns-51] `void` #### Inherited from [#inherited-from-123] [`Container`](/pixi-vn/index/classes/Container).[`tint`](/pixi-vn/index/classes/Container#tint) *** ### visible [#visible] #### Get Signature [#get-signature-26] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-85] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-58] ```ts true ``` ##### See [#see-20] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-52] `boolean` #### Set Signature [#set-signature-20] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-22] ###### value [#value-18] `boolean` ##### Returns [#returns-53] `void` #### Inherited from [#inherited-from-124] [`Container`](/pixi-vn/index/classes/Container).[`visible`](/pixi-vn/index/classes/Container#visible) *** ### width [#width] #### Get Signature [#get-signature-27] \> **get** **width**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1102 The width of the Container, setting this will actually modify the scale to achieve the value set. \> \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-86] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Returns [#returns-54] `number` #### Set Signature [#set-signature-21] \> **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1103 ##### Parameters [#parameters-23] ###### value [#value-19] `number` ##### Returns [#returns-55] `void` #### Inherited from [#inherited-from-125] [`Container`](/pixi-vn/index/classes/Container).[`width`](/pixi-vn/index/classes/Container#width) *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-28] \> **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-87] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-21] [Container#localTransform](/pixi-vn/index/classes/VideoSprite#localtransform) For local space transform ##### Returns [#returns-56] `Matrix` #### Inherited from [#inherited-from-126] [`Container`](/pixi-vn/index/classes/Container).[`worldTransform`](/pixi-vn/index/classes/Container#worldtransform) *** ### x [#x-2] #### Get Signature [#get-signature-29] \> **get** **x**(): `number` Defined in: [src/canvas/components/Container.ts:331](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L331) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-88] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-57] `number` #### Set Signature [#set-signature-22] \> **set** **x**(`value`): `void` Defined in: [src/canvas/components/Container.ts:334](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L334) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-89] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-24] ###### value [#value-20] `number` ##### Returns [#returns-58] `void` #### Inherited from [#inherited-from-127] [`Container`](/pixi-vn/index/classes/Container).[`x`](/pixi-vn/index/classes/Container#x) *** ### xAlign [#xalign] #### Get Signature [#get-signature-30] \> **get** **xAlign**(): `number` Defined in: [src/canvas/components/Container.ts:188](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L188) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-59] `number` #### Set Signature [#set-signature-23] \> **set** **xAlign**(`value`): `void` Defined in: [src/canvas/components/Container.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L180) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-25] ###### value [#value-21] `number` ##### Returns [#returns-60] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-128] [`Container`](/pixi-vn/index/classes/Container).[`xAlign`](/pixi-vn/index/classes/Container#xalign) *** ### y [#y-2] #### Get Signature [#get-signature-31] \> **get** **y**(): `number` Defined in: [src/canvas/components/Container.ts:339](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L339) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-90] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-61] `number` #### Set Signature [#set-signature-24] \> **set** **y**(`value`): `void` Defined in: [src/canvas/components/Container.ts:342](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L342) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-91] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-26] ###### value [#value-22] `number` ##### Returns [#returns-62] `void` #### Inherited from [#inherited-from-129] [`Container`](/pixi-vn/index/classes/Container).[`y`](/pixi-vn/index/classes/Container#y) *** ### yAlign [#yalign] #### Get Signature [#get-signature-32] \> **get** **yAlign**(): `number` Defined in: [src/canvas/components/Container.ts:207](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L207) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-63] `number` #### Set Signature [#set-signature-25] \> **set** **yAlign**(`value`): `void` Defined in: [src/canvas/components/Container.ts:199](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L199) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-27] ###### value [#value-23] `number` ##### Returns [#returns-64] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-130] [`Container`](/pixi-vn/index/classes/Container).[`yAlign`](/pixi-vn/index/classes/Container#yalign) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] \> **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-28] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-65] `void` #### Inherited from [#inherited-from-131] [`Container`](/pixi-vn/index/classes/Container).[`_getGlobalBoundsRecursive`](/pixi-vn/index/classes/Container#_getglobalboundsrecursive) *** ### addChild() [#addchild] \> **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters] ##### U [#u] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>\[] #### Parameters [#parameters-29] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-66] `U`\[`0`] The first child that was added #### Example [#example-92] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-22] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For adding at specific index #### Inherited from [#inherited-from-132] [`Container`](/pixi-vn/index/classes/Container).[`addChild`](/pixi-vn/index/classes/Container#addchild) *** ### addChildAt() [#addchildat] \> **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-1] ##### U [#u-1] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> #### Parameters [#parameters-30] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-67] `U` The child that was added #### Example [#example-93] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-23] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to the end * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For moving existing children #### Inherited from [#inherited-from-133] [`Container`](/pixi-vn/index/classes/Container).[`addChildAt`](/pixi-vn/index/classes/Container#addchildat) *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] \> **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-2] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-31] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options-1] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-68] `void` ##### Example [#example-94] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-134] [`Container`](/pixi-vn/index/classes/Container).[`addEventListener`](/pixi-vn/index/classes/Container#addeventlistener) #### Call Signature [#call-signature-1] \> **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-32] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-2] `AddListenerOptions` ##### Returns [#returns-69] `void` ##### Inherited from [#inherited-from-135] [`Container`](/pixi-vn/index/classes/Container).[`addEventListener`](/pixi-vn/index/classes/Container#addeventlistener) *** ### addListener() [#addlistener] \> **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-3] ##### T [#t] `T` *extends* keyof AnyEvent | keyof ContainerEvents\> #### Parameters [#parameters-33] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-70] `this` #### Inherited from [#inherited-from-136] [`Container`](/pixi-vn/index/classes/Container).[`addListener`](/pixi-vn/index/classes/Container#addlistener) *** ### collectRenderables() [#collectrenderables] \> **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-34] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-71] `void` #### Inherited from [#inherited-from-137] [`Container`](/pixi-vn/index/classes/Container).[`collectRenderables`](/pixi-vn/index/classes/Container#collectrenderables) *** ### collectRenderablesSimple() [#collectrenderablessimple] \> **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:30 **`Internal`** Collects renderables using a simple method, suitable for containers marked as simple. This method iterates over the container's children and adds their renderables to the instruction set. #### Parameters [#parameters-35] ##### instructionSet [#instructionset-1] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-1] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer being processed. #### Returns [#returns-72] `void` #### Inherited from [#inherited-from-138] [`Container`](/pixi-vn/index/classes/Container).[`collectRenderablesSimple`](/pixi-vn/index/classes/Container#collectrenderablessimple) *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] \> **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-36] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-73] `void` #### Inherited from [#inherited-from-139] [`Container`](/pixi-vn/index/classes/Container).[`collectRenderablesWithEffects`](/pixi-vn/index/classes/Container#collectrenderableswitheffects) *** ### destroy() [#destroy] \> **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1343 Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling `destroy`. #### Parameters [#parameters-37] ##### options? [#options-3] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-74] `void` #### Example [#example-95] ```ts container.destroy(); container.destroy(true); container.destroy({ children: true }); container.destroy({ children: true, texture: true, textureSource: true }); ``` #### Inherited from [#inherited-from-140] [`Container`](/pixi-vn/index/classes/Container).[`destroy`](/pixi-vn/index/classes/Container#destroy) *** ### disableRenderGroup() [#disablerendergroup] \> **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-75] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-141] [`Container`](/pixi-vn/index/classes/Container).[`disableRenderGroup`](/pixi-vn/index/classes/Container#disablerendergroup) *** ### dispatchEvent() [#dispatchevent] \> **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this [Container](/pixi-vn/index/classes/Container) using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-38] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-76] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-96] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-142] [`Container`](/pixi-vn/index/classes/Container).[`dispatchEvent`](/pixi-vn/index/classes/Container#dispatchevent) *** ### emit() [#emit] \> **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-4] ##### T [#t-1] `T` *extends* keyof AnyEvent | keyof ContainerEvents\> #### Parameters [#parameters-39] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> & `AnyEvent`>\[`Extract`\<`T`, keyof AnyEvent | keyof ContainerEvents\>>] #### Returns [#returns-77] `boolean` #### Inherited from [#inherited-from-143] [`Container`](/pixi-vn/index/classes/Container).[`emit`](/pixi-vn/index/classes/Container#emit) *** ### enableRenderGroup() [#enablerendergroup] \> **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-78] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-144] [`Container`](/pixi-vn/index/classes/Container).[`enableRenderGroup`](/pixi-vn/index/classes/Container#enablerendergroup) *** ### eventNames() [#eventnames] \> **eventNames**(): (keyof AnyEvent | keyof ContainerEvents\>)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-79] (keyof AnyEvent | keyof ContainerEvents\>)\[] #### Inherited from [#inherited-from-145] [`Container`](/pixi-vn/index/classes/Container).[`eventNames`](/pixi-vn/index/classes/Container#eventnames) *** ### getBounds() [#getbounds] \> **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-40] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-1] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-80] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-97] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-24] * [Container#getLocalBounds](/pixi-vn/index/classes/VideoSprite#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-146] [`Container`](/pixi-vn/index/classes/Container).[`getBounds`](/pixi-vn/index/classes/Container#getbounds) *** ### getChildAt() [#getchildat] \> **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-5] ##### U [#u-2] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> #### Parameters [#parameters-41] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-81] `U` The child at the given index #### Example [#example-98] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-25] * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-147] [`Container`](/pixi-vn/index/classes/Container).[`getChildAt`](/pixi-vn/index/classes/Container#getchildat) *** ### getChildByLabel() [#getchildbylabel] \> **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-42] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-82] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-99] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-26] * [Container#getChildrenByLabel](/pixi-vn/index/classes/Container#getchildrenbylabel) For finding all matches * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-148] [`Container`](/pixi-vn/index/classes/Container).[`getChildByLabel`](/pixi-vn/index/classes/Container#getchildbylabel) *** ### ~~getChildByName()~~ [#getchildbyname] \> **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-43] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-83] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-27] Container#getChildByLabel #### Inherited from [#inherited-from-149] [`Container`](/pixi-vn/index/classes/Container).[`getChildByName`](/pixi-vn/index/classes/Container#getchildbyname) *** ### getChildIndex() [#getchildindex] \> **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-44] ##### child [#child-1] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite) The Container instance to identify #### Returns [#returns-84] `number` The index position of the child container #### Example [#example-100] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-3] If child is not in this container #### See [#see-28] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For changing index * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access #### Inherited from [#inherited-from-150] [`Container`](/pixi-vn/index/classes/Container).[`getChildIndex`](/pixi-vn/index/classes/Container#getchildindex) *** ### getChildrenByLabel() [#getchildrenbylabel] \> **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-45] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-85] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-101] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-29] * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For finding first match * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-151] [`Container`](/pixi-vn/index/classes/Container).[`getChildrenByLabel`](/pixi-vn/index/classes/Container#getchildrenbylabel) *** ### getFastGlobalBounds() [#getfastglobalbounds] \> **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-46] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-2] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-86] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-152] [`Container`](/pixi-vn/index/classes/Container).[`getFastGlobalBounds`](/pixi-vn/index/classes/Container#getfastglobalbounds) *** ### getGlobalAlpha() [#getglobalalpha] \> **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-47] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-87] `number` The resulting alpha value (between 0 and 1) #### Example [#example-102] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-153] [`Container`](/pixi-vn/index/classes/Container).[`getGlobalAlpha`](/pixi-vn/index/classes/Container#getglobalalpha) *** ### getGlobalPosition() [#getglobalposition] \> **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-48] ##### point? [#point] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-88] `Point` The updated point #### Example [#example-103] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-30] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For converting specific points * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting to local space #### Inherited from [#inherited-from-154] [`Container`](/pixi-vn/index/classes/Container).[`getGlobalPosition`](/pixi-vn/index/classes/Container#getglobalposition) *** ### getGlobalTint() [#getglobaltint] \> **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-49] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-89] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-104] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-155] [`Container`](/pixi-vn/index/classes/Container).[`getGlobalTint`](/pixi-vn/index/classes/Container#getglobaltint) *** ### getGlobalTransform() [#getglobaltransform] \> **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-50] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-90] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-105] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-156] [`Container`](/pixi-vn/index/classes/Container).[`getGlobalTransform`](/pixi-vn/index/classes/Container#getglobaltransform) *** ### getLocalBounds() [#getlocalbounds] \> **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-91] `Bounds` The bounding area #### Example [#example-106] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-31] * [Container#getBounds](/pixi-vn/index/classes/VideoSprite#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-157] [`Container`](/pixi-vn/index/classes/Container).[`getLocalBounds`](/pixi-vn/index/classes/Container#getlocalbounds) *** ### getSize() [#getsize] \> **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1136 Retrieves the size of the container as a \[Size]Size object. This is faster than get the width and height separately. #### Parameters [#parameters-51] ##### out? [#out-1] `Size` Optional object to store the size in. #### Returns [#returns-92] `Size` The size of the container. #### Example [#example-107] ```ts // Basic size retrieval const size = container.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; container.getSize(reuseSize); ``` #### Inherited from [#inherited-from-158] [`Container`](/pixi-vn/index/classes/Container).[`getSize`](/pixi-vn/index/classes/Container#getsize) *** ### importChildren() [#importchildren] \> `protected` **importChildren**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/Container.ts:83](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L83) #### Parameters [#parameters-52] ##### value [#value-24] [`ImageContainerMemory`](/pixi-vn/index/interfaces/ImageContainerMemory) #### Returns [#returns-93] `Promise`\<`void`> #### Inherited from [#inherited-from-159] [`Container`](/pixi-vn/index/classes/Container).[`importChildren`](/pixi-vn/index/classes/Container#importchildren) *** ### listenerCount() [#listenercount] \> **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-53] ##### event [#event-2] keyof AnyEvent | keyof ContainerEvents\> #### Returns [#returns-94] `number` #### Inherited from [#inherited-from-160] [`Container`](/pixi-vn/index/classes/Container).[`listenerCount`](/pixi-vn/index/classes/Container#listenercount) *** ### listeners() [#listeners] \> **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-6] ##### T [#t-2] `T` *extends* keyof AnyEvent | keyof ContainerEvents\> #### Parameters [#parameters-54] ##### event [#event-3] `T` #### Returns [#returns-95] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-161] [`Container`](/pixi-vn/index/classes/Container).[`listeners`](/pixi-vn/index/classes/Container#listeners) *** ### load() [#load] \> **load**(): `Promise`\<`void`> Defined in: [src/canvas/components/ImageContainer.ts:79](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L79) Load the children images. #### Returns [#returns-96] `Promise`\<`void`> A promise that resolves when the images are loaded. *** ### off() [#off] \> **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-7] ##### T [#t-3] `T` *extends* keyof AnyEvent | keyof ContainerEvents\> #### Parameters [#parameters-55] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-97] `this` #### Inherited from [#inherited-from-162] [`Container`](/pixi-vn/index/classes/Container).[`off`](/pixi-vn/index/classes/Container#off) *** ### on() [#on] \> **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/Container.ts:94](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L94) Add a listener for a given event. #### Type Parameters [#type-parameters-8] ##### T [#t-4] `T` *extends* `symbol` | `object` & `string` | keyof ContainerEvents\ #### Parameters [#parameters-56] ##### event [#event-5] `T` ##### fn [#fn-2] (...`args`) => `void` ##### context? [#context-2] `any` #### Returns [#returns-98] `this` #### Inherited from [#inherited-from-163] [`Container`](/pixi-vn/index/classes/Container).[`on`](/pixi-vn/index/classes/Container#on) *** ### once() [#once-1] \> **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-5] `T` *extends* keyof AnyEvent | keyof ContainerEvents\> #### Parameters [#parameters-57] ##### event [#event-6] `T` ##### fn [#fn-3] (...`args`) => `void` ##### context? [#context-3] `any` #### Returns [#returns-99] `this` #### Inherited from [#inherited-from-164] [`Container`](/pixi-vn/index/classes/Container).[`once`](/pixi-vn/index/classes/Container#once) *** ### reloadAnchor() [#reloadanchor] \> `protected` **reloadAnchor**(): `void` Defined in: [src/canvas/components/Container.ts:132](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L132) #### Returns [#returns-100] `void` #### Inherited from [#inherited-from-165] [`Container`](/pixi-vn/index/classes/Container).[`reloadAnchor`](/pixi-vn/index/classes/Container#reloadanchor) *** ### reloadPosition() [#reloadposition] \> `protected` **reloadPosition**(): `void` Defined in: [src/canvas/components/Container.ts:286](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Container.ts#L286) #### Returns [#returns-101] `void` #### Inherited from [#inherited-from-166] [`Container`](/pixi-vn/index/classes/Container).[`reloadPosition`](/pixi-vn/index/classes/Container#reloadposition) *** ### removeAllListeners() [#removealllisteners] \> **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-58] ##### event? [#event-7] keyof AnyEvent | keyof ContainerEvents\> #### Returns [#returns-102] `this` #### Inherited from [#inherited-from-167] [`Container`](/pixi-vn/index/classes/Container).[`removeAllListeners`](/pixi-vn/index/classes/Container#removealllisteners) *** ### removeChild() [#removechild] \> **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-10] ##### U [#u-3] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>\[] #### Parameters [#parameters-59] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-103] `U`\[`0`] The first child that was removed #### Example [#example-108] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-32] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-168] [`Container`](/pixi-vn/index/classes/Container).[`removeChild`](/pixi-vn/index/classes/Container#removechild) *** ### removeChildAt() [#removechildat] \> **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-11] ##### U [#u-4] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> #### Parameters [#parameters-60] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-104] `U` The child that was removed #### Example [#example-109] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-4] If index is out of bounds #### See [#see-33] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-169] [`Container`](/pixi-vn/index/classes/Container).[`removeChildAt`](/pixi-vn/index/classes/Container#removechildat) *** ### removeChildren() [#removechildren] \> **removeChildren**(`beginIndex?`, `endIndex?`): [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-61] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-105] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>\[] List of removed children #### Example [#example-110] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-5] If begin/end indexes are invalid #### See [#see-34] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children #### Inherited from [#inherited-from-170] [`Container`](/pixi-vn/index/classes/Container).[`removeChildren`](/pixi-vn/index/classes/Container#removechildren) *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-2] \> **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-12] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-62] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-4] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-106] `void` ##### Inherited from [#inherited-from-171] [`Container`](/pixi-vn/index/classes/Container).[`removeEventListener`](/pixi-vn/index/classes/Container#removeeventlistener) #### Call Signature [#call-signature-3] \> **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-63] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-5] `RemoveListenerOptions` ##### Returns [#returns-107] `void` ##### Inherited from [#inherited-from-172] [`Container`](/pixi-vn/index/classes/Container).[`removeEventListener`](/pixi-vn/index/classes/Container#removeeventlistener) *** ### removeFromParent() [#removefromparent] \> **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-108] `void` #### Example [#example-111] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-35] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a new parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For parent removing children #### Inherited from [#inherited-from-173] [`Container`](/pixi-vn/index/classes/Container).[`removeFromParent`](/pixi-vn/index/classes/Container#removefromparent) *** ### removeListener() [#removelistener] \> **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-13] ##### T [#t-6] `T` *extends* keyof AnyEvent | keyof ContainerEvents\> #### Parameters [#parameters-64] ##### event [#event-8] `T` ##### fn? [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-109] `this` #### Inherited from [#inherited-from-174] [`Container`](/pixi-vn/index/classes/Container).[`removeListener`](/pixi-vn/index/classes/Container#removelistener) *** ### reparentChild() [#reparentchild] \> **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-14] ##### U [#u-5] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>\[] #### Parameters [#parameters-65] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-110] `U`\[`0`] The first child that was reparented #### Example [#example-112] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-36] * [Container#reparentChildAt](/pixi-vn/index/classes/Container#reparentchildat) For index-specific reparenting * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For simple parenting #### Inherited from [#inherited-from-175] [`Container`](/pixi-vn/index/classes/Container).[`reparentChild`](/pixi-vn/index/classes/Container#reparentchild) *** ### reparentChildAt() [#reparentchildat] \> **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-6] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> #### Parameters [#parameters-66] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-111] `U` The reparented child #### Example [#example-113] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-6] If index is out of bounds #### See [#see-37] * [Container#reparentChild](/pixi-vn/index/classes/Container#reparentchild) For appending reparented children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-176] [`Container`](/pixi-vn/index/classes/Container).[`reparentChildAt`](/pixi-vn/index/classes/Container#reparentchildat) *** ### replaceChild() [#replacechild] \> **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-16] ##### U [#u-7] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> ##### T [#t-7] `T` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> #### Parameters [#parameters-67] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-112] `void` #### Inherited from [#inherited-from-177] [`Container`](/pixi-vn/index/classes/Container).[`replaceChild`](/pixi-vn/index/classes/Container#replacechild) *** ### setChildIndex() [#setchildindex] \> **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-68] ##### child [#child-4] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite) The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-113] `void` #### Example [#example-114] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-7] If index is out of bounds #### Throws [#throws-8] If child is not in container #### See [#see-38] * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current index * [Container#swapChildren](/pixi-vn/index/classes/Container#swapchildren) For swapping positions #### Inherited from [#inherited-from-178] [`Container`](/pixi-vn/index/classes/Container).[`setChildIndex`](/pixi-vn/index/classes/Container#setchildindex) *** ### setFromMatrix() [#setfrommatrix] \> **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-69] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-114] `void` #### Example [#example-115] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-39] * [Container#updateTransform](/pixi-vn/index/classes/Container#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-179] [`Container`](/pixi-vn/index/classes/Container).[`setFromMatrix`](/pixi-vn/index/classes/Container#setfrommatrix) *** ### setMask() [#setmask] \> **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-70] ##### options [#options-6] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-115] `void` #### Example [#example-116] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-40] * [Container#mask](/pixi-vn/index/classes/VideoSprite#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-180] [`Container`](/pixi-vn/index/classes/Container).[`setMask`](/pixi-vn/index/classes/Container#setmask) *** ### setMemory() [#setmemory] \> **setMemory**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/ImageContainer.ts:64](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageContainer.ts#L64) This method set the memory of the canvas element. #### Parameters [#parameters-71] ##### value [#value-25] [`ImageContainerMemory`](/pixi-vn/index/interfaces/ImageContainerMemory) #### Returns [#returns-116] `Promise`\<`void`> #### Throws [#throws-9] when the method is not overridden in the subclass. #### Overrides [#overrides-3] [`Container`](/pixi-vn/index/classes/Container).[`setMemory`](/pixi-vn/index/classes/Container#setmemory) *** ### setSize() [#setsize] \> **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1151 Sets the size of the container to the specified width and height. This is more efficient than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-72] ##### value [#value-26] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a \[Size]Size object. ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided. #### Returns [#returns-117] `void` #### Example [#example-117] ```ts // Basic size setting container.setSize(100, 200); // Set uniform size container.setSize(100); // Sets both width and height to 100 ``` #### Inherited from [#inherited-from-181] [`Container`](/pixi-vn/index/classes/Container).[`setSize`](/pixi-vn/index/classes/Container#setsize) *** ### swapChildren() [#swapchildren] \> **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-17] ##### U [#u-8] `U` *extends* [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> #### Parameters [#parameters-73] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-118] `void` #### Example [#example-118] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-10] If either child is not in container #### See [#see-41] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For direct index placement * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current positions #### Inherited from [#inherited-from-182] [`Container`](/pixi-vn/index/classes/Container).[`swapChildren`](/pixi-vn/index/classes/Container#swapchildren) *** ### toGlobal() [#toglobal] \> **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-18] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-74] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-1] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-119] `P` The global position #### Example [#example-119] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-42] * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-183] [`Container`](/pixi-vn/index/classes/Container).[`toGlobal`](/pixi-vn/index/classes/Container#toglobal) *** ### toLocal() [#tolocal] \> **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-19] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-75] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-2] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-120] `P` A point object representing the position in local space #### Example [#example-120] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-43] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-184] [`Container`](/pixi-vn/index/classes/Container).[`toLocal`](/pixi-vn/index/classes/Container#tolocal) *** ### updateLocalTransform() [#updatelocaltransform] \> **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-121] `void` #### Inherited from [#inherited-from-185] [`Container`](/pixi-vn/index/classes/Container).[`updateLocalTransform`](/pixi-vn/index/classes/Container#updatelocaltransform) *** ### updateTransform() [#updatetransform] \> **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-76] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-122] `this` This container, for chaining #### Example [#example-121] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-44] * [Container#setFromMatrix](/pixi-vn/index/classes/Container#setfrommatrix) For matrix-based transforms * [Container#position](/pixi-vn/index/interfaces/CanvasBaseInterface#position) For direct position access #### Inherited from [#inherited-from-186] [`Container`](/pixi-vn/index/classes/Container).[`updateTransform`](/pixi-vn/index/classes/Container#updatetransform) *** ### ~~mixin()~~ [#mixin] \> `static` **mixin**(`source`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:605 Mixes all enumerable properties and methods from a source object to Container. #### Parameters [#parameters-77] ##### source [#source] `Dict`\<`any`> The source of properties and methods to mix in. #### Returns [#returns-123] `void` #### Deprecated [#deprecated-3] since 8.8.0 #### Inherited from [#inherited-from-187] [`Container`](/pixi-vn/index/classes/Container).[`mixin`](/pixi-vn/index/classes/Container#mixin) # Class: ImageSprite (/pixi-vn/index/classes/ImageSprite) Defined in: [src/canvas/components/ImageSprite.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L41) This class is a extension of the [Sprite](/pixi-vn/index/classes/Sprite) class, it has the same properties and methods, but it has some features that make texture management easier. You need to use [load](#load) to show the image in the canvas. This class is used for functions like [addImage](/pixi-vn/index/functions/addImage) and [showWithDissolve](/pixi-vn/index/functions/showWithDissolve). ## Examples [#examples] ```ts Assets.add({ alias: "eggHead", src: "https://pixijs.com/assets/eggHead.png" }); const alien = new ImageSprite({ anchor: 0.5, x: 100, y: 100 }, "eggHead"); await alien.load(); canvas.add("alien", alien); ``` ```ts Assets.add({ alias: "eggHead", src: "https://pixijs.com/assets/eggHead.png" }); // the alias of the component is also the alias of the asset const eggHead = addImage("eggHead", { anchor: 0.5, x: 100, y: 100 }); await eggHead.load(); // a different alias for the component const alien = addImage("alien", "eggHead", { anchor: 0.5, x: 300, y: 100 }); await alien.load(); ``` ## Extends [#extends] * [`Sprite`](/pixi-vn/index/classes/Sprite)\<`Memory`> ## Extended by [#extended-by] * [`VideoSprite`](/pixi-vn/index/classes/VideoSprite) ## Type Parameters [#type-parameters] ### Memory [#memory] `Memory` *extends* [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory) = [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory) ## Constructors [#constructors] ### Constructor [#constructor] \> **new ImageSprite**\<`Memory`>(`options?`, `textureAlias?`): `ImageSprite`\<`Memory`> Defined in: [src/canvas/components/ImageSprite.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L56) #### Parameters [#parameters] ##### options? [#options] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions) | `Omit`\<`Texture`\<`TextureSource`\<`any`>>, `"on"`> The options for the component. ##### textureAlias? [#texturealias] `string` The URL or path. If you have initialized the "asset matrix", you can use the alias of the texture. #### Returns [#returns] `ImageSprite`\<`Memory`> #### Overrides [#overrides] [`Sprite`](/pixi-vn/index/classes/Sprite).[`constructor`](/pixi-vn/index/classes/Sprite#constructor) ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] [`Sprite`](/pixi-vn/index/classes/Sprite).[`__devtoolIgnore`](/pixi-vn/index/classes/Sprite#__devtoolignore) *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] [`Sprite`](/pixi-vn/index/classes/Sprite).[`__devtoolIgnoreChildren`](/pixi-vn/index/classes/Sprite#__devtoolignorechildren) *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] [`Sprite`](/pixi-vn/index/classes/Sprite).[`__devtoolLocked`](/pixi-vn/index/classes/Sprite#__devtoollocked) *** ### \_anchor [#_anchor] \> `readonly` **\_anchor**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:155 **`Internal`** #### Inherited from [#inherited-from-3] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_anchor`](/pixi-vn/index/classes/Sprite#_anchor) *** ### \_bounds [#_bounds] \> `protected` **\_bounds**: `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:59 #### Inherited from [#inherited-from-4] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_bounds`](/pixi-vn/index/classes/Sprite#_bounds) *** ### \_boundsDirty [#_boundsdirty] \> `protected` **\_boundsDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:60 #### Inherited from [#inherited-from-5] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_boundsDirty`](/pixi-vn/index/classes/Sprite#_boundsdirty) *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-6] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_cx`](/pixi-vn/index/classes/Sprite#_cx) *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-7] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_cy`](/pixi-vn/index/classes/Sprite#_cy) *** ### \_gcData? [#_gcdata] \> `optional` **\_gcData?**: `GCData` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:54 **`Internal`** #### Inherited from [#inherited-from-8] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_gcData`](/pixi-vn/index/classes/Sprite#_gcdata) *** ### \_gcLastUsed [#_gclastused] \> **\_gcLastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:58 **`Internal`** #### Inherited from [#inherited-from-9] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_gcLastUsed`](/pixi-vn/index/classes/Sprite#_gclastused) *** ### \_gpuData [#_gpudata] \> **\_gpuData**: `Record`\<`number`, `GPU_DATA`> Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:52 **`Internal`** #### Inherited from [#inherited-from-10] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_gpuData`](/pixi-vn/index/classes/Sprite#_gpudata) *** ### \_lastUsed [#_lastused] \> **\_lastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:50 **`Internal`** #### Inherited from [#inherited-from-11] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_lastUsed`](/pixi-vn/index/classes/Sprite#_lastused) *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-12] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_pivot`](/pixi-vn/index/classes/Sprite#_pivot) *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-13] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_position`](/pixi-vn/index/classes/Sprite#_position) *** ### \_roundPixels [#_roundpixels] \> **\_roundPixels**: `0` | `1` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:48 **`Internal`** #### Inherited from [#inherited-from-14] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_roundPixels`](/pixi-vn/index/classes/Sprite#_roundpixels) *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-15] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_scale`](/pixi-vn/index/classes/Sprite#_scale) *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-16] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_skew`](/pixi-vn/index/classes/Sprite#_skew) *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-17] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_sx`](/pixi-vn/index/classes/Sprite#_sx) *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-18] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_sy`](/pixi-vn/index/classes/Sprite#_sy) *** ### \_texture [#_texture] \> **\_texture**: `Texture` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:157 **`Internal`** #### Inherited from [#inherited-from-19] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_texture`](/pixi-vn/index/classes/Sprite#_texture) *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-20] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_zIndex`](/pixi-vn/index/classes/Sprite#_zindex) *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-21] [`Sprite`](/pixi-vn/index/classes/Sprite).[`accessible`](/pixi-vn/index/classes/Sprite#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-22] [`Sprite`](/pixi-vn/index/classes/Sprite).[`accessibleChildren`](/pixi-vn/index/classes/Sprite#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-23] [`Sprite`](/pixi-vn/index/classes/Sprite).[`accessibleHint`](/pixi-vn/index/classes/Sprite#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-24] [`Sprite`](/pixi-vn/index/classes/Sprite).[`accessiblePointerEvents`](/pixi-vn/index/classes/Sprite#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-25] [`Sprite`](/pixi-vn/index/classes/Sprite).[`accessibleText`](/pixi-vn/index/classes/Sprite#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-26] [`Sprite`](/pixi-vn/index/classes/Sprite).[`accessibleTitle`](/pixi-vn/index/classes/Sprite#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-27] [`Sprite`](/pixi-vn/index/classes/Sprite).[`accessibleType`](/pixi-vn/index/classes/Sprite#accessibletype) *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:46 **`Internal`** #### Inherited from [#inherited-from-28] [`Sprite`](/pixi-vn/index/classes/Sprite).[`allowChildren`](/pixi-vn/index/classes/Sprite#allowchildren) *** ### autoGarbageCollect [#autogarbagecollect] \> **autoGarbageCollect**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:56 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-29] [`Sprite`](/pixi-vn/index/classes/Sprite).[`autoGarbageCollect`](/pixi-vn/index/classes/Sprite#autogarbagecollect) *** ### batched [#batched] \> **batched**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:153 **`Internal`** #### Inherited from [#inherited-from-30] [`Sprite`](/pixi-vn/index/classes/Sprite).[`batched`](/pixi-vn/index/classes/Sprite#batched) *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-7] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-31] [`Sprite`](/pixi-vn/index/classes/Sprite).[`boundsArea`](/pixi-vn/index/classes/Sprite#boundsarea) *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-32] [`Sprite`](/pixi-vn/index/classes/Sprite).[`cacheAsBitmap`](/pixi-vn/index/classes/Sprite#cacheasbitmap) *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters-1] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns-1] `void` #### Example [#example-8] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](/pixi-vn/index/classes/VideoSprite#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-33] [`Sprite`](/pixi-vn/index/classes/Sprite).[`cacheAsTexture`](/pixi-vn/index/classes/Sprite#cacheastexture) *** ### canBundle [#canbundle] \> `readonly` **canBundle**: `true` = `true` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:44 **`Internal`** #### Inherited from [#inherited-from-34] [`Sprite`](/pixi-vn/index/classes/Sprite).[`canBundle`](/pixi-vn/index/classes/Sprite#canbundle) *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-9] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-35] [`Sprite`](/pixi-vn/index/classes/Sprite).[`children`](/pixi-vn/index/classes/Sprite#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-10] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-36] [`Sprite`](/pixi-vn/index/classes/Sprite).[`cullable`](/pixi-vn/index/classes/Sprite#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-11] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-37] [`Sprite`](/pixi-vn/index/classes/Sprite).[`cullableChildren`](/pixi-vn/index/classes/Sprite#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-12] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-9] ```ts null ``` #### Inherited from [#inherited-from-38] [`Sprite`](/pixi-vn/index/classes/Sprite).[`cullArea`](/pixi-vn/index/classes/Sprite#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-13] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-10] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-39] [`Sprite`](/pixi-vn/index/classes/Sprite).[`cursor`](/pixi-vn/index/classes/Sprite#cursor) *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-40] [`Sprite`](/pixi-vn/index/classes/Sprite).[`depthOfChildModified`](/pixi-vn/index/classes/Sprite#depthofchildmodified) *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-14] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-11] ```ts false ``` #### See [#see-3] [Container#destroy](/pixi-vn/index/classes/Container#destroy) For destroying objects #### Inherited from [#inherited-from-41] [`Sprite`](/pixi-vn/index/classes/Sprite).[`destroyed`](/pixi-vn/index/classes/Sprite#destroyed) *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-42] [`Sprite`](/pixi-vn/index/classes/Sprite).[`effects`](/pixi-vn/index/classes/Sprite#effects) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-15] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-43] [`Sprite`](/pixi-vn/index/classes/Sprite).[`eventMode`](/pixi-vn/index/classes/Sprite#eventmode) *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-16] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * [Container#filters](/pixi-vn/index/classes/VideoSprite#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-44] [`Sprite`](/pixi-vn/index/classes/Sprite).[`filterArea`](/pixi-vn/index/classes/Sprite#filterarea) *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-45] [`Sprite`](/pixi-vn/index/classes/Sprite).[`globalDisplayStatus`](/pixi-vn/index/classes/Sprite#globaldisplaystatus) *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-46] [`Sprite`](/pixi-vn/index/classes/Sprite).[`groupAlpha`](/pixi-vn/index/classes/Sprite#groupalpha) *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-47] [`Sprite`](/pixi-vn/index/classes/Sprite).[`groupBlendMode`](/pixi-vn/index/classes/Sprite#groupblendmode) *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-48] [`Sprite`](/pixi-vn/index/classes/Sprite).[`groupColor`](/pixi-vn/index/classes/Sprite#groupcolor) *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-49] [`Sprite`](/pixi-vn/index/classes/Sprite).[`groupColorAlpha`](/pixi-vn/index/classes/Sprite#groupcoloralpha) *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-50] [`Sprite`](/pixi-vn/index/classes/Sprite).[`groupTransform`](/pixi-vn/index/classes/Sprite#grouptransform) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-17] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-51] [`Sprite`](/pixi-vn/index/classes/Sprite).[`hitArea`](/pixi-vn/index/classes/Sprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-18] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-52] [`Sprite`](/pixi-vn/index/classes/Sprite).[`interactive`](/pixi-vn/index/classes/Sprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-12] ```ts true ``` #### Example [#example-19] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-53] [`Sprite`](/pixi-vn/index/classes/Sprite).[`interactiveChildren`](/pixi-vn/index/classes/Sprite#interactivechildren) *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-20] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * [Container#cacheAsTexture](/pixi-vn/index/classes/Container#cacheastexture) For enabling caching * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cache #### Inherited from [#inherited-from-54] [`Sprite`](/pixi-vn/index/classes/Sprite).[`isCachedAsTexture`](/pixi-vn/index/classes/Sprite#iscachedastexture) *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-3] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-21] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-55] [`Sprite`](/pixi-vn/index/classes/Sprite).[`isInteractive`](/pixi-vn/index/classes/Sprite#isinteractive) *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-56] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-57] [`Sprite`](/pixi-vn/index/classes/Sprite).[`layerParentId`](/pixi-vn/index/classes/Sprite#layerparentid) *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-58] [`Sprite`](/pixi-vn/index/classes/Sprite).[`localAlpha`](/pixi-vn/index/classes/Sprite#localalpha) *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-59] [`Sprite`](/pixi-vn/index/classes/Sprite).[`localBlendMode`](/pixi-vn/index/classes/Sprite#localblendmode) *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-60] [`Sprite`](/pixi-vn/index/classes/Sprite).[`localColor`](/pixi-vn/index/classes/Sprite#localcolor) *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-61] [`Sprite`](/pixi-vn/index/classes/Sprite).[`localDisplayStatus`](/pixi-vn/index/classes/Sprite#localdisplaystatus) *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-22] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](/pixi-vn/index/classes/VideoSprite#worldtransform) For global transform * [Container#groupTransform](/pixi-vn/index/classes/VideoSprite#grouptransform) For render group transform #### Inherited from [#inherited-from-62] [`Sprite`](/pixi-vn/index/classes/Sprite).[`localTransform`](/pixi-vn/index/classes/Sprite#localtransform) *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a [Sprite](/pixi-vn/index/classes/Sprite) object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-23] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * [Sprite](/pixi-vn/index/classes/Sprite) For texture-based masks * [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-63] [`Sprite`](/pixi-vn/index/classes/Sprite).[`mask`](/pixi-vn/index/classes/Sprite#mask) *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-64] [`Sprite`](/pixi-vn/index/classes/Sprite).[`name`](/pixi-vn/index/classes/Sprite#name) *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-65] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onclick`](/pixi-vn/index/classes/Sprite#onclick) *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-66] [`Sprite`](/pixi-vn/index/classes/Sprite).[`oncontextmenu`](/pixi-vn/index/classes/Sprite#oncontextmenu) *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) = `{}` Defined in: [src/canvas/components/Sprite.ts:99](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L99) ListenerExtension #### Inherited from [#inherited-from-67] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onEventsHandlers`](/pixi-vn/index/classes/Sprite#oneventshandlers) *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-17] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-68] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onglobalmousemove`](/pixi-vn/index/classes/Sprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-69] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onglobalpointermove`](/pixi-vn/index/classes/Sprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-70] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onglobaltouchmove`](/pixi-vn/index/classes/Sprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-20] ```ts null ``` #### Inherited from [#inherited-from-71] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmousedown`](/pixi-vn/index/classes/Sprite#onmousedown) *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-72] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmouseenter`](/pixi-vn/index/classes/Sprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-73] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmouseleave`](/pixi-vn/index/classes/Sprite#onmouseleave) *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-74] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmousemove`](/pixi-vn/index/classes/Sprite#onmousemove) *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-75] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmouseout`](/pixi-vn/index/classes/Sprite#onmouseout) *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-76] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmouseover`](/pixi-vn/index/classes/Sprite#onmouseover) *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-77] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmouseup`](/pixi-vn/index/classes/Sprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-78] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onmouseupoutside`](/pixi-vn/index/classes/Sprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-79] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointercancel`](/pixi-vn/index/classes/Sprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-80] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointerdown`](/pixi-vn/index/classes/Sprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-81] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointerenter`](/pixi-vn/index/classes/Sprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-82] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointerleave`](/pixi-vn/index/classes/Sprite#onpointerleave) *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-83] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointermove`](/pixi-vn/index/classes/Sprite#onpointermove) *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-84] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointerout`](/pixi-vn/index/classes/Sprite#onpointerout) *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-85] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointerover`](/pixi-vn/index/classes/Sprite#onpointerover) *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-86] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointertap`](/pixi-vn/index/classes/Sprite#onpointertap) *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-87] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointerup`](/pixi-vn/index/classes/Sprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-88] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onpointerupoutside`](/pixi-vn/index/classes/Sprite#onpointerupoutside) *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-47] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-89] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-90] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onrightclick`](/pixi-vn/index/classes/Sprite#onrightclick) *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-91] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onrightdown`](/pixi-vn/index/classes/Sprite#onrightdown) *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-92] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onrightup`](/pixi-vn/index/classes/Sprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-93] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onrightupoutside`](/pixi-vn/index/classes/Sprite#onrightupoutside) *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-94] [`Sprite`](/pixi-vn/index/classes/Sprite).[`ontap`](/pixi-vn/index/classes/Sprite#ontap) *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-95] [`Sprite`](/pixi-vn/index/classes/Sprite).[`ontouchcancel`](/pixi-vn/index/classes/Sprite#ontouchcancel) *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-96] [`Sprite`](/pixi-vn/index/classes/Sprite).[`ontouchend`](/pixi-vn/index/classes/Sprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-97] [`Sprite`](/pixi-vn/index/classes/Sprite).[`ontouchendoutside`](/pixi-vn/index/classes/Sprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-98] [`Sprite`](/pixi-vn/index/classes/Sprite).[`ontouchmove`](/pixi-vn/index/classes/Sprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-99] [`Sprite`](/pixi-vn/index/classes/Sprite).[`ontouchstart`](/pixi-vn/index/classes/Sprite#ontouchstart) *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-100] [`Sprite`](/pixi-vn/index/classes/Sprite).[`onwheel`](/pixi-vn/index/classes/Sprite#onwheel) *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-59] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-101] [`Sprite`](/pixi-vn/index/classes/Sprite).[`parent`](/pixi-vn/index/classes/Sprite#parent) *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-102] [`Sprite`](/pixi-vn/index/classes/Sprite).[`parentRenderLayer`](/pixi-vn/index/classes/Sprite#parentrenderlayer) *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` = `CANVAS_IMAGE_ID` Defined in: [src/canvas/components/ImageSprite.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L51) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Overrides [#overrides-1] [`Sprite`](/pixi-vn/index/classes/Sprite).[`pixivnId`](/pixi-vn/index/classes/Sprite#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-103] [`Sprite`](/pixi-vn/index/classes/Sprite).[`relativeGroupTransform`](/pixi-vn/index/classes/Sprite#relativegrouptransform) *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:151 **`Internal`** #### Inherited from [#inherited-from-104] [`Sprite`](/pixi-vn/index/classes/Sprite).[`renderPipeId`](/pixi-vn/index/classes/Sprite#renderpipeid) *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-60] ```ts container.sortableChildren = true; ``` #### Default [#default-49] ```ts false ``` #### Inherited from [#inherited-from-105] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-4] `void` #### Example [#example-61] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling automatic sorting * [Container#zIndex](/pixi-vn/index/classes/VideoSprite#zindex) For setting child order #### Inherited from [#inherited-from-106] [`Sprite`](/pixi-vn/index/classes/Sprite).[`sortChildren`](/pixi-vn/index/classes/Sprite#sortchildren) *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-50] ```ts false @internal ``` #### Inherited from [#inherited-from-107] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-51] ```ts 0 ``` #### Example [#example-62] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-108] [`Sprite`](/pixi-vn/index/classes/Sprite).[`tabIndex`](/pixi-vn/index/classes/Sprite#tabindex) *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-109] [`Sprite`](/pixi-vn/index/classes/Sprite).[`uid`](/pixi-vn/index/classes/Sprite#uid) *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-5] `void` #### Example [#example-63] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-110] [`Sprite`](/pixi-vn/index/classes/Sprite).[`updateCacheTexture`](/pixi-vn/index/classes/Sprite#updatecachetexture) *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-111] [`Sprite`](/pixi-vn/index/classes/Sprite).[`updateTick`](/pixi-vn/index/classes/Sprite#updatetick) *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-64] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-52] ```ts 0 ``` #### Inherited from [#inherited-from-112] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) *** ### prefixed [#prefixed] \> `static` **prefixed**: `string` | `boolean` Defined in: node_modules/eventemitter3/index.d.ts:9 #### Inherited from [#inherited-from-113] [`Sprite`](/pixi-vn/index/classes/Sprite).[`prefixed`](/pixi-vn/index/classes/Sprite#prefixed) ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Sprite.ts:140](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L140) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-6] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L128) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-2] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-7] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-114] [`Sprite`](/pixi-vn/index/classes/Sprite).[`align`](/pixi-vn/index/classes/Sprite#align) *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-65] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-53] ```ts 1 ``` ##### See [#see-14] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control ##### Returns [#returns-8] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-3] ###### value [#value-1] `number` ##### Returns [#returns-9] `void` #### Inherited from [#inherited-from-115] [`Sprite`](/pixi-vn/index/classes/Sprite).[`alpha`](/pixi-vn/index/classes/Sprite#alpha) *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:256 The anchor sets the origin point of the sprite. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. * The default is `(0,0)`, this means the sprite's origin is the top left. * Setting the anchor to `(0.5,0.5)` means the sprite's origin is centered. * Setting the anchor to `(1,1)` would mean the sprite's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-66] ```ts // Center the anchor point sprite.anchor = 0.5; // Sets both x and y to 0.5 sprite.position.set(400, 300); // Sprite will be centered at this position // Set specific x/y anchor points sprite.anchor = { x: 1, // Right edge y: 0 // Top edge }; // Using individual coordinates sprite.anchor.set(0.5, 1); // Center-bottom // For rotation around center sprite.anchor.set(0.5); sprite.rotation = Math.PI / 4; // 45 degrees around center // For scaling from center sprite.anchor.set(0.5); sprite.scale.set(2); // Scales from center point ``` ##### Returns [#returns-10] `ObservablePoint` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:257 ##### Parameters [#parameters-4] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-11] `void` #### Inherited from [#inherited-from-116] [`Sprite`](/pixi-vn/index/classes/Sprite).[`anchor`](/pixi-vn/index/classes/Sprite#anchor) *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-67] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-12] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-5] ###### value [#value-3] `number` ##### Returns [#returns-13] `void` #### Inherited from [#inherited-from-117] [`Sprite`](/pixi-vn/index/classes/Sprite).[`angle`](/pixi-vn/index/classes/Sprite#angle) *** ### blendMode [#blendmode] #### Get Signature [#get-signature-4] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-68] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-54] ```ts 'normal' ``` ##### See [#see-15] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments ##### Returns [#returns-14] `BLEND_MODES` #### Set Signature [#set-signature-4] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-6] ###### value [#value-4] `BLEND_MODES` ##### Returns [#returns-15] `void` #### Inherited from [#inherited-from-118] [`Sprite`](/pixi-vn/index/classes/Sprite).[`blendMode`](/pixi-vn/index/classes/Sprite#blendmode) *** ### bounds [#bounds] #### Get Signature [#get-signature-5] \> **get** **bounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:74 The local bounds of the view in its own coordinate space. Bounds are automatically updated when the view's content changes. ##### Example [#example-69] ```ts // Get bounds dimensions const bounds = view.bounds; console.log(`Width: ${bounds.maxX - bounds.minX}`); console.log(`Height: ${bounds.maxY - bounds.minY}`); ``` ##### See [#see-16] Bounds For bounds operations ##### Returns [#returns-16] `Bounds` The rectangular bounds of the view #### Inherited from [#inherited-from-119] [`Sprite`](/pixi-vn/index/classes/Sprite).[`bounds`](/pixi-vn/index/classes/Sprite#bounds) *** ### filters [#filters] #### Get Signature [#get-signature-6] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-70] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-17] Filter For filter base class ##### Returns [#returns-17] readonly `Filter`\[] #### Set Signature [#set-signature-5] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-71] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-18] Filter For filter base class ##### Parameters [#parameters-7] ###### value [#value-5] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-18] `void` #### Inherited from [#inherited-from-120] [`Sprite`](/pixi-vn/index/classes/Sprite).[`filters`](/pixi-vn/index/classes/Sprite#filters) *** ### haveEmptyTexture [#haveemptytexture] #### Get Signature [#get-signature-7] \> **get** **haveEmptyTexture**(): `boolean` Defined in: [src/canvas/components/ImageSprite.ts:139](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L139) Check if the texture is empty. ##### Returns [#returns-19] `boolean` A boolean that is true if the texture is empty. *** ### height [#height] #### Get Signature [#get-signature-8] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:300 The height of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example [#example-72] ```ts // Set height directly sprite.height = 150; console.log(sprite.scale.y); // Scale adjusted to match height // Set height while preserving aspect ratio const ratio = sprite.width / sprite.height; sprite.height = 200; sprite.width = 200 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.height = sprite.texture.orig.height; ``` ##### Returns [#returns-20] `number` #### Set Signature [#set-signature-6] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:301 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-73] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Parameters [#parameters-8] ###### value [#value-6] `number` ##### Returns [#returns-21] `void` #### Inherited from [#inherited-from-121] [`Sprite`](/pixi-vn/index/classes/Sprite).[`height`](/pixi-vn/index/classes/Sprite#height) *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-9] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-22] `boolean` #### Inherited from [#inherited-from-122] [`Sprite`](/pixi-vn/index/classes/Sprite).[`isRenderable`](/pixi-vn/index/classes/Sprite#isrenderable) *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-10] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-23] `boolean` #### Set Signature [#set-signature-7] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-9] ###### value [#value-7] `boolean` ##### Returns [#returns-24] `void` #### Inherited from [#inherited-from-123] [`Sprite`](/pixi-vn/index/classes/Sprite).[`isRenderGroup`](/pixi-vn/index/classes/Sprite#isrendergroup) *** ### loadIsStarted [#loadisstarted] #### Get Signature [#get-signature-11] \> **get** **loadIsStarted**(): `boolean` Defined in: [src/canvas/components/ImageSprite.ts:97](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L97) ##### Returns [#returns-25] `boolean` *** ### memory [#memory-1] #### Get Signature [#get-signature-12] \> **get** **memory**(): [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory) Defined in: [src/canvas/components/ImageSprite.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L65) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-26] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory) #### Overrides [#overrides-2] [`Sprite`](/pixi-vn/index/classes/Sprite).[`memory`](/pixi-vn/index/classes/Sprite#memory-1) *** ### origin [#origin] #### Get Signature [#get-signature-13] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-74] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-27] `ObservablePoint` #### Set Signature [#set-signature-8] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-10] ###### value [#value-8] `number` | `PointData` ##### Returns [#returns-28] `void` #### Inherited from [#inherited-from-124] [`Sprite`](/pixi-vn/index/classes/Sprite).[`origin`](/pixi-vn/index/classes/Sprite#origin) *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-14] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Sprite.ts:211](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L211) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-29] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-9] \> **set** **percentagePosition**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:199](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L199) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-11] ###### value [#value-9] `number` | `Partial`\<`PointData`> ##### Returns [#returns-30] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-125] [`Sprite`](/pixi-vn/index/classes/Sprite).[`percentagePosition`](/pixi-vn/index/classes/Sprite#percentageposition) *** ### percentageX [#percentagex] #### Get Signature [#get-signature-15] \> **get** **percentageX**(): `number` Defined in: [src/canvas/components/Sprite.ts:217](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L217) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-31] `number` #### Set Signature [#set-signature-10] \> **set** **percentageX**(`_value`): `void` Defined in: [src/canvas/components/Sprite.ts:220](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L220) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-12] ###### \_value [#_value] `number` ##### Returns [#returns-32] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-126] [`Sprite`](/pixi-vn/index/classes/Sprite).[`percentageX`](/pixi-vn/index/classes/Sprite#percentagex) *** ### percentageY [#percentagey] #### Get Signature [#get-signature-16] \> **get** **percentageY**(): `number` Defined in: [src/canvas/components/Sprite.ts:226](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L226) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-33] `number` #### Set Signature [#set-signature-11] \> **set** **percentageY**(`_value`): `void` Defined in: [src/canvas/components/Sprite.ts:229](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L229) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-13] ###### \_value [#_value-1] `number` ##### Returns [#returns-34] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-127] [`Sprite`](/pixi-vn/index/classes/Sprite).[`percentageY`](/pixi-vn/index/classes/Sprite#percentagey) *** ### pivot [#pivot] #### Get Signature [#get-signature-17] \> **get** **pivot**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1023 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-75] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-35] `ObservablePoint` #### Set Signature [#set-signature-12] \> **set** **pivot**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1024 ##### Parameters [#parameters-14] ###### value [#value-10] `number` | `PointData` ##### Returns [#returns-36] `void` #### Inherited from [#inherited-from-128] [`Sprite`](/pixi-vn/index/classes/Sprite).[`pivot`](/pixi-vn/index/classes/Sprite#pivot) *** ### position [#position] #### Get Signature [#get-signature-18] \> **get** **position**(): `ObservablePoint` Defined in: [src/canvas/components/Sprite.ts:301](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L301) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-76] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-3] 4.0.0 ##### Returns [#returns-37] `ObservablePoint` #### Set Signature [#set-signature-13] \> **set** **position**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:304](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L304) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-77] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Parameters [#parameters-15] ###### value [#value-11] `ObservablePoint` ##### Returns [#returns-38] `void` #### Inherited from [#inherited-from-129] [`Sprite`](/pixi-vn/index/classes/Sprite).[`position`](/pixi-vn/index/classes/Sprite#position) *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-19] \> **get** **positionInfo**(): `object` Defined in: [src/canvas/components/Sprite.ts:243](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L243) ##### Returns [#returns-39] `object` ###### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-14] \> **set** **positionInfo**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:253](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L253) ##### Parameters [#parameters-16] ###### value [#value-12] ###### type? [#type-1] `"pixel"` | `"percentage"` | `"align"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-40] `void` #### Inherited from [#inherited-from-130] [`Sprite`](/pixi-vn/index/classes/Sprite).[`positionInfo`](/pixi-vn/index/classes/Sprite#positioninfo) *** ### positionType [#positiontype] #### Get Signature [#get-signature-20] \> **get** **positionType**(): `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/Sprite.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L235) ##### Returns [#returns-41] `"pixel"` | `"percentage"` | `"align"` #### Inherited from [#inherited-from-131] [`Sprite`](/pixi-vn/index/classes/Sprite).[`positionType`](/pixi-vn/index/classes/Sprite#positiontype) *** ### renderable [#renderable] #### Get Signature [#get-signature-21] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-78] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-55] ```ts true ``` ##### See [#see-19] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-42] `boolean` #### Set Signature [#set-signature-15] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-17] ###### value [#value-13] `boolean` ##### Returns [#returns-43] `void` #### Inherited from [#inherited-from-132] [`Sprite`](/pixi-vn/index/classes/Sprite).[`renderable`](/pixi-vn/index/classes/Sprite#renderable) *** ### rotation [#rotation] #### Get Signature [#get-signature-22] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-79] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-44] `number` #### Set Signature [#set-signature-16] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-18] ###### value [#value-14] `number` ##### Returns [#returns-45] `void` #### Inherited from [#inherited-from-133] [`Sprite`](/pixi-vn/index/classes/Sprite).[`rotation`](/pixi-vn/index/classes/Sprite#rotation) *** ### roundPixels [#roundpixels] #### Get Signature [#get-signature-23] \> **get** **roundPixels**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:86 Whether or not to round the x/y position of the sprite. ##### Example [#example-80] ```ts // Enable pixel rounding for crisp rendering view.roundPixels = true; ``` ##### Default [#default-56] ```ts false ``` ##### Returns [#returns-46] `boolean` #### Set Signature [#set-signature-17] \> **set** **roundPixels**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:87 Whether or not to round the x/y position of the object. ##### Parameters [#parameters-19] ###### value [#value-15] `boolean` ##### Returns [#returns-47] `void` #### Inherited from [#inherited-from-134] [`Sprite`](/pixi-vn/index/classes/Sprite).[`roundPixels`](/pixi-vn/index/classes/Sprite#roundpixels) *** ### scale [#scale] #### Get Signature [#get-signature-24] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-81] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-5] 4.0.0 ##### Returns [#returns-48] `ObservablePoint` #### Set Signature [#set-signature-18] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-20] ###### value [#value-16] `string` | `number` | `PointData` ##### Returns [#returns-49] `void` #### Inherited from [#inherited-from-135] [`Sprite`](/pixi-vn/index/classes/Sprite).[`scale`](/pixi-vn/index/classes/Sprite#scale) *** ### skew [#skew] #### Get Signature [#get-signature-25] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-82] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-6] 4.0.0 ##### Default [#default-57] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-50] `ObservablePoint` #### Set Signature [#set-signature-19] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-21] ###### value [#value-17] `PointData` ##### Returns [#returns-51] `void` #### Inherited from [#inherited-from-136] [`Sprite`](/pixi-vn/index/classes/Sprite).[`skew`](/pixi-vn/index/classes/Sprite#skew) *** ### texture [#texture] #### Get Signature [#get-signature-26] \> **get** **texture**(): `Texture`\<`TextureSource`\<`any`>> Defined in: [src/canvas/components/ImageSprite.ts:131](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L131) The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-83] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-20] * [Texture](/pixi-vn/index/variables/Texture) For texture creation and management * [Assets](/pixi-vn/index/variables/Assets) For asset loading ##### Returns [#returns-52] `Texture`\<`TextureSource`\<`any`>> #### Set Signature [#set-signature-20] \> **set** **texture**(`value`): `void` Defined in: [src/canvas/components/ImageSprite.ts:127](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L127) The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-84] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-21] * [Texture](/pixi-vn/index/variables/Texture) For texture creation and management * [Assets](/pixi-vn/index/variables/Assets) For asset loading ##### Parameters [#parameters-22] ###### value [#value-18] `Texture`\<`TextureSource`\<`any`>> ##### Returns [#returns-53] `void` #### Overrides [#overrides-3] [`Sprite`](/pixi-vn/index/classes/Sprite).[`texture`](/pixi-vn/index/classes/Sprite#texture) *** ### textureAlias [#texturealias-1] #### Get Signature [#get-signature-27] \> **get** `protected` **textureAlias**(): `string` Defined in: [src/canvas/components/ImageSprite.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L45) ##### Returns [#returns-54] `string` *** ### tint [#tint] #### Get Signature [#get-signature-28] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-85] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-58] ```ts 0xFFFFFF ``` ##### See [#see-22] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control ##### Returns [#returns-55] `number` #### Set Signature [#set-signature-21] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-23] ###### value [#value-19] `ColorSource` ##### Returns [#returns-56] `void` #### Inherited from [#inherited-from-137] [`Sprite`](/pixi-vn/index/classes/Sprite).[`tint`](/pixi-vn/index/classes/Sprite#tint) *** ### visible [#visible] #### Get Signature [#get-signature-29] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-86] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-59] ```ts true ``` ##### See [#see-23] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-57] `boolean` #### Set Signature [#set-signature-22] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-24] ###### value [#value-20] `boolean` ##### Returns [#returns-58] `void` #### Inherited from [#inherited-from-138] [`Sprite`](/pixi-vn/index/classes/Sprite).[`visible`](/pixi-vn/index/classes/Sprite#visible) *** ### visualBounds [#visualbounds] #### Get Signature [#get-signature-30] \> **get** **visualBounds**(): `BoundsData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:205 The bounds of the sprite, taking into account the texture's trim area. ##### Example [#example-87] ````ts const texture = new Texture({ source: new TextureSource({ width: 300, height: 300 }), frame: new Rectangle(196, 66, 58, 56), trim: new Rectangle(4, 4, 58, 56), orig: new Rectangle(0, 0, 64, 64), rotate: 2, }); const sprite = new Sprite(texture); const visualBounds = sprite.visualBounds; // console.log(visualBounds); // { minX: -4, maxX: 62, minY: -4, maxY: 60 } ##### Returns `BoundsData` #### Inherited from [`Sprite`](/pixi-vn/index/classes/Sprite).[`visualBounds`](/pixi-vn/index/classes/Sprite#visualbounds) *** ### width #### Get Signature > **get** **width**(): `number` Defined in: node\_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:278 The width of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example ```ts // Set width directly sprite.width = 200; console.log(sprite.scale.x); // Scale adjusted to match width // Set width while preserving aspect ratio const ratio = sprite.height / sprite.width; sprite.width = 300; sprite.height = 300 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.width = sprite.texture.orig.width; ```` ##### Returns [#returns-59] `number` #### Set Signature [#set-signature-23] > **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:279 The width of the Container, setting this will actually modify the scale to achieve the value set. > \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. > \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) > as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-88] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Parameters [#parameters-25] ###### value [#value-21] `number` ##### Returns [#returns-60] `void` #### Inherited from [#inherited-from-139] [`Sprite`](/pixi-vn/index/classes/Sprite).[`width`](/pixi-vn/index/classes/Sprite#width) *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-31] > **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-89] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-24] [Container#localTransform](/pixi-vn/index/classes/VideoSprite#localtransform) For local space transform ##### Returns [#returns-61] `Matrix` #### Inherited from [#inherited-from-140] [`Sprite`](/pixi-vn/index/classes/Sprite).[`worldTransform`](/pixi-vn/index/classes/Sprite#worldtransform) *** ### x [#x-2] #### Get Signature [#get-signature-32] > **get** **x**(): `number` Defined in: [src/canvas/components/Sprite.ts:309](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L309) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-90] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-62] `number` #### Set Signature [#set-signature-24] > **set** **x**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:312](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L312) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-91] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-26] ###### value [#value-22] `number` ##### Returns [#returns-63] `void` #### Inherited from [#inherited-from-141] [`Sprite`](/pixi-vn/index/classes/Sprite).[`x`](/pixi-vn/index/classes/Sprite#x) *** ### xAlign [#xalign] #### Get Signature [#get-signature-33] > **get** **xAlign**(): `number` Defined in: [src/canvas/components/Sprite.ts:168](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L168) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-64] `number` #### Set Signature [#set-signature-25] > **set** **xAlign**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:162](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L162) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-27] ###### value [#value-23] `number` ##### Returns [#returns-65] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-142] [`Sprite`](/pixi-vn/index/classes/Sprite).[`xAlign`](/pixi-vn/index/classes/Sprite#xalign) *** ### y [#y-2] #### Get Signature [#get-signature-34] > **get** **y**(): `number` Defined in: [src/canvas/components/Sprite.ts:317](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L317) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-92] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-66] `number` #### Set Signature [#set-signature-26] > **set** **y**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:320](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L320) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-93] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-28] ###### value [#value-24] `number` ##### Returns [#returns-67] `void` #### Inherited from [#inherited-from-143] [`Sprite`](/pixi-vn/index/classes/Sprite).[`y`](/pixi-vn/index/classes/Sprite#y) *** ### yAlign [#yalign] #### Get Signature [#get-signature-35] > **get** **yAlign**(): `number` Defined in: [src/canvas/components/Sprite.ts:186](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L186) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-68] `number` #### Set Signature [#set-signature-27] > **set** **yAlign**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L180) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-29] ###### value [#value-25] `number` ##### Returns [#returns-69] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-144] [`Sprite`](/pixi-vn/index/classes/Sprite).[`yAlign`](/pixi-vn/index/classes/Sprite#yalign) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] > **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-30] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds-1] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-70] `void` #### Inherited from [#inherited-from-145] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_getGlobalBoundsRecursive`](/pixi-vn/index/classes/Sprite#_getglobalboundsrecursive) *** ### \_onTouch()? [#_ontouch] > `optional` **\_onTouch**(`now`): `void` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:31 An optional callback for when an item is touched #### Parameters [#parameters-31] ##### now [#now] `number` #### Returns [#returns-71] `void` #### Inherited from [#inherited-from-146] [`Sprite`](/pixi-vn/index/classes/Sprite).[`_onTouch`](/pixi-vn/index/classes/Sprite#_ontouch) *** ### addChild() [#addchild] > **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters-1] ##### U [#u] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-32] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-72] `U`\[`0`] The first child that was added #### Example [#example-94] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-25] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For adding at specific index #### Inherited from [#inherited-from-147] [`Sprite`](/pixi-vn/index/classes/Sprite).[`addChild`](/pixi-vn/index/classes/Sprite#addchild) *** ### addChildAt() [#addchildat] > **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-2] ##### U [#u-1] `U` *extends* `ContainerChild` #### Parameters [#parameters-33] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-73] `U` The child that was added #### Example [#example-95] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-26] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to the end * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For moving existing children #### Inherited from [#inherited-from-148] [`Sprite`](/pixi-vn/index/classes/Sprite).[`addChildAt`](/pixi-vn/index/classes/Sprite#addchildat) *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] > **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-3] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-34] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options-1] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-74] `void` ##### Example [#example-96] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-149] [`Sprite`](/pixi-vn/index/classes/Sprite).[`addEventListener`](/pixi-vn/index/classes/Sprite#addeventlistener) #### Call Signature [#call-signature-1] > **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-35] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-2] `AddListenerOptions` ##### Returns [#returns-75] `void` ##### Inherited from [#inherited-from-150] [`Sprite`](/pixi-vn/index/classes/Sprite).[`addEventListener`](/pixi-vn/index/classes/Sprite#addeventlistener) *** ### addListener() [#addlistener] > **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-4] ##### T [#t] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-36] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-76] `this` #### Inherited from [#inherited-from-151] [`Sprite`](/pixi-vn/index/classes/Sprite).[`addListener`](/pixi-vn/index/classes/Sprite#addlistener) *** ### collectRenderables() [#collectrenderables] > **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-37] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-77] `void` #### Inherited from [#inherited-from-152] [`Sprite`](/pixi-vn/index/classes/Sprite).[`collectRenderables`](/pixi-vn/index/classes/Sprite#collectrenderables) *** ### collectRenderablesSimple() [#collectrenderablessimple] > **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:119 **`Internal`** Collects renderables for the view container. #### Parameters [#parameters-38] ##### instructionSet [#instructionset-1] `InstructionSet` The instruction set to collect renderables for. ##### renderer [#renderer-1] `Renderer` The renderer to collect renderables for. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer. #### Returns [#returns-78] `void` #### Inherited from [#inherited-from-153] [`Sprite`](/pixi-vn/index/classes/Sprite).[`collectRenderablesSimple`](/pixi-vn/index/classes/Sprite#collectrenderablessimple) *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] > **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-39] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-79] `void` #### Inherited from [#inherited-from-154] [`Sprite`](/pixi-vn/index/classes/Sprite).[`collectRenderablesWithEffects`](/pixi-vn/index/classes/Sprite#collectrenderableswitheffects) *** ### containsPoint() [#containspoint] > **containsPoint**(`point`): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:104 Checks if the object contains the given point in local coordinates. Uses the view's bounds for hit testing. #### Parameters [#parameters-40] ##### point [#point] `PointData` The point to check in local coordinates #### Returns [#returns-80] `boolean` True if the point is within the view's bounds #### Example [#example-97] ```ts // Basic point check const localPoint = { x: 50, y: 25 }; const contains = view.containsPoint(localPoint); console.log('Point is inside:', contains); ``` #### See [#see-27] * [ViewContainer#bounds](/pixi-vn/index/classes/VideoSprite#bounds) For the bounds used in hit testing * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting global coordinates to local #### Inherited from [#inherited-from-155] [`Sprite`](/pixi-vn/index/classes/Sprite).[`containsPoint`](/pixi-vn/index/classes/Sprite#containspoint) *** ### destroy() [#destroy] > **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:222 Destroys this sprite renderable and optionally its texture. #### Parameters [#parameters-41] ##### options? [#options-3] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-81] `void` #### Example [#example-98] ```ts sprite.destroy(); sprite.destroy(true); sprite.destroy({ texture: true, textureSource: true }); ``` #### Inherited from [#inherited-from-156] [`Sprite`](/pixi-vn/index/classes/Sprite).[`destroy`](/pixi-vn/index/classes/Sprite#destroy) *** ### disableRenderGroup() [#disablerendergroup] > **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-82] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-157] [`Sprite`](/pixi-vn/index/classes/Sprite).[`disableRenderGroup`](/pixi-vn/index/classes/Sprite#disablerendergroup) *** ### dispatchEvent() [#dispatchevent] > **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this [Container](/pixi-vn/index/classes/Container) using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-42] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-83] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-99] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-158] [`Sprite`](/pixi-vn/index/classes/Sprite).[`dispatchEvent`](/pixi-vn/index/classes/Sprite#dispatchevent) *** ### emit() [#emit] > **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-5] ##### T [#t-1] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-43] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`ContainerChild`> & `AnyEvent`>\[`Extract`\<`T`, keyof ContainerEvents\ | keyof AnyEvent>] #### Returns [#returns-84] `boolean` #### Inherited from [#inherited-from-159] [`Sprite`](/pixi-vn/index/classes/Sprite).[`emit`](/pixi-vn/index/classes/Sprite#emit) *** ### enableRenderGroup() [#enablerendergroup] > **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-85] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-160] [`Sprite`](/pixi-vn/index/classes/Sprite).[`enableRenderGroup`](/pixi-vn/index/classes/Sprite#enablerendergroup) *** ### eventNames() [#eventnames] > **eventNames**(): (keyof ContainerEvents\ | keyof AnyEvent)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-86] (keyof ContainerEvents\ | keyof AnyEvent)\[] #### Inherited from [#inherited-from-161] [`Sprite`](/pixi-vn/index/classes/Sprite).[`eventNames`](/pixi-vn/index/classes/Sprite#eventnames) *** ### getBounds() [#getbounds] > **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-44] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-2] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-87] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-100] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-28] * [Container#getLocalBounds](/pixi-vn/index/classes/VideoSprite#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-162] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getBounds`](/pixi-vn/index/classes/Sprite#getbounds) *** ### getChildAt() [#getchildat] > **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-6] ##### U [#u-2] `U` *extends* `ContainerChild` #### Parameters [#parameters-45] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-88] `U` The child at the given index #### Example [#example-101] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-29] * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-163] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getChildAt`](/pixi-vn/index/classes/Sprite#getchildat) *** ### getChildByLabel() [#getchildbylabel] > **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-46] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-89] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-102] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-30] * [Container#getChildrenByLabel](/pixi-vn/index/classes/Container#getchildrenbylabel) For finding all matches * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-164] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getChildByLabel`](/pixi-vn/index/classes/Sprite#getchildbylabel) *** ### ~~getChildByName()~~ [#getchildbyname] > **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-47] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-90] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-31] Container#getChildByLabel #### Inherited from [#inherited-from-165] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getChildByName`](/pixi-vn/index/classes/Sprite#getchildbyname) *** ### getChildIndex() [#getchildindex] > **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-48] ##### child [#child-1] `ContainerChild` The Container instance to identify #### Returns [#returns-91] `number` The index position of the child container #### Example [#example-103] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-3] If child is not in this container #### See [#see-32] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For changing index * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access #### Inherited from [#inherited-from-166] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getChildIndex`](/pixi-vn/index/classes/Sprite#getchildindex) *** ### getChildrenByLabel() [#getchildrenbylabel] > **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-49] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-92] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-104] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-33] * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For finding first match * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-167] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getChildrenByLabel`](/pixi-vn/index/classes/Sprite#getchildrenbylabel) *** ### getFastGlobalBounds() [#getfastglobalbounds] > **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-50] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-3] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-93] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-168] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getFastGlobalBounds`](/pixi-vn/index/classes/Sprite#getfastglobalbounds) *** ### getGlobalAlpha() [#getglobalalpha] > **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-51] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-94] `number` The resulting alpha value (between 0 and 1) #### Example [#example-105] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-169] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getGlobalAlpha`](/pixi-vn/index/classes/Sprite#getglobalalpha) *** ### getGlobalPosition() [#getglobalposition] > **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-52] ##### point? [#point-1] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-95] `Point` The updated point #### Example [#example-106] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-34] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For converting specific points * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting to local space #### Inherited from [#inherited-from-170] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getGlobalPosition`](/pixi-vn/index/classes/Sprite#getglobalposition) *** ### getGlobalTint() [#getglobaltint] > **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-53] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-96] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-107] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-171] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getGlobalTint`](/pixi-vn/index/classes/Sprite#getglobaltint) *** ### getGlobalTransform() [#getglobaltransform] > **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-54] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-97] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-108] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-172] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getGlobalTransform`](/pixi-vn/index/classes/Sprite#getglobaltransform) *** ### getLocalBounds() [#getlocalbounds] > **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-98] `Bounds` The bounding area #### Example [#example-109] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-35] * [Container#getBounds](/pixi-vn/index/classes/VideoSprite#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-173] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getLocalBounds`](/pixi-vn/index/classes/Sprite#getlocalbounds) *** ### getSize() [#getsize] > **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:322 Retrieves the size of the Sprite as a \[Size]Size object based on the texture dimensions and scale. This is faster than getting width and height separately as it only calculates the bounds once. #### Parameters [#parameters-55] ##### out? [#out-1] `Size` Optional object to store the size in, to avoid allocating a new object #### Returns [#returns-99] `Size` The size of the Sprite #### Example [#example-110] ```ts // Basic size retrieval const sprite = new Sprite(Texture.from('sprite.png')); const size = sprite.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; sprite.getSize(reuseSize); ``` #### See [#see-36] * [Sprite#width](/pixi-vn/index/classes/Sprite#width) For getting just the width * [Sprite#height](/pixi-vn/index/classes/Sprite#height) For getting just the height * [Sprite#setSize](/pixi-vn/index/classes/Sprite#setsize) For setting both width and height #### Inherited from [#inherited-from-174] [`Sprite`](/pixi-vn/index/classes/Sprite).[`getSize`](/pixi-vn/index/classes/Sprite#getsize) *** ### listenerCount() [#listenercount] > **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-56] ##### event [#event-2] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-100] `number` #### Inherited from [#inherited-from-175] [`Sprite`](/pixi-vn/index/classes/Sprite).[`listenerCount`](/pixi-vn/index/classes/Sprite#listenercount) *** ### listeners() [#listeners] > **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-7] ##### T [#t-2] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-57] ##### event [#event-3] `T` #### Returns [#returns-101] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-176] [`Sprite`](/pixi-vn/index/classes/Sprite).[`listeners`](/pixi-vn/index/classes/Sprite#listeners) *** ### load() [#load] > **load**(): `Promise`\<`void`> Defined in: [src/canvas/components/ImageSprite.ts:104](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L104) Load the image from the link and set the texture of the sprite. #### Returns [#returns-102] `Promise`\<`void`> A promise that resolves when the image is loaded. *** ### off() [#off] > **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-8] ##### T [#t-3] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-58] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-103] `this` #### Inherited from [#inherited-from-177] [`Sprite`](/pixi-vn/index/classes/Sprite).[`off`](/pixi-vn/index/classes/Sprite#off) *** ### on() [#on] > **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/Sprite.ts:100](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L100) Add a listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-4] `T` *extends* `symbol` | `object` & `string` | keyof ContainerEvents\ #### Parameters [#parameters-59] ##### event [#event-5] `T` ##### fn [#fn-2] (...`args`) => `void` ##### context? [#context-2] `any` #### Returns [#returns-104] `this` #### Inherited from [#inherited-from-178] [`Sprite`](/pixi-vn/index/classes/Sprite).[`on`](/pixi-vn/index/classes/Sprite#on) *** ### once() [#once-1] > **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-10] ##### T [#t-5] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-60] ##### event [#event-6] `T` ##### fn [#fn-3] (...`args`) => `void` ##### context? [#context-3] `any` #### Returns [#returns-105] `this` #### Inherited from [#inherited-from-179] [`Sprite`](/pixi-vn/index/classes/Sprite).[`once`](/pixi-vn/index/classes/Sprite#once) *** ### reloadPosition() [#reloadposition] > `protected` **reloadPosition**(): `void` Defined in: [src/canvas/components/Sprite.ts:262](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L262) #### Returns [#returns-106] `void` #### Inherited from [#inherited-from-180] [`Sprite`](/pixi-vn/index/classes/Sprite).[`reloadPosition`](/pixi-vn/index/classes/Sprite#reloadposition) *** ### removeAllListeners() [#removealllisteners] > **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-61] ##### event? [#event-7] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-107] `this` #### Inherited from [#inherited-from-181] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeAllListeners`](/pixi-vn/index/classes/Sprite#removealllisteners) *** ### removeChild() [#removechild] > **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-11] ##### U [#u-3] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-62] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-108] `U`\[`0`] The first child that was removed #### Example [#example-111] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-37] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-182] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeChild`](/pixi-vn/index/classes/Sprite#removechild) *** ### removeChildAt() [#removechildat] > **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-12] ##### U [#u-4] `U` *extends* `ContainerChild` #### Parameters [#parameters-63] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-109] `U` The child that was removed #### Example [#example-112] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-4] If index is out of bounds #### See [#see-38] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-183] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeChildAt`](/pixi-vn/index/classes/Sprite#removechildat) *** ### removeChildren() [#removechildren] > **removeChildren**(`beginIndex?`, `endIndex?`): `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-64] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-110] `ContainerChild`\[] List of removed children #### Example [#example-113] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-5] If begin/end indexes are invalid #### See [#see-39] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children #### Inherited from [#inherited-from-184] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeChildren`](/pixi-vn/index/classes/Sprite#removechildren) *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-2] > **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-13] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-65] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-4] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-111] `void` ##### Inherited from [#inherited-from-185] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeEventListener`](/pixi-vn/index/classes/Sprite#removeeventlistener) #### Call Signature [#call-signature-3] > **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-66] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-5] `RemoveListenerOptions` ##### Returns [#returns-112] `void` ##### Inherited from [#inherited-from-186] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeEventListener`](/pixi-vn/index/classes/Sprite#removeeventlistener) *** ### removeFromParent() [#removefromparent] > **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-113] `void` #### Example [#example-114] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-40] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a new parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For parent removing children #### Inherited from [#inherited-from-187] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeFromParent`](/pixi-vn/index/classes/Sprite#removefromparent) *** ### removeListener() [#removelistener] > **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-14] ##### T [#t-6] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-67] ##### event [#event-8] `T` ##### fn? [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-114] `this` #### Inherited from [#inherited-from-188] [`Sprite`](/pixi-vn/index/classes/Sprite).[`removeListener`](/pixi-vn/index/classes/Sprite#removelistener) *** ### reparentChild() [#reparentchild] > **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-5] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-68] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-115] `U`\[`0`] The first child that was reparented #### Example [#example-115] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-41] * [Container#reparentChildAt](/pixi-vn/index/classes/Container#reparentchildat) For index-specific reparenting * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For simple parenting #### Inherited from [#inherited-from-189] [`Sprite`](/pixi-vn/index/classes/Sprite).[`reparentChild`](/pixi-vn/index/classes/Sprite#reparentchild) *** ### reparentChildAt() [#reparentchildat] > **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-16] ##### U [#u-6] `U` *extends* `ContainerChild` #### Parameters [#parameters-69] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-116] `U` The reparented child #### Example [#example-116] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-6] If index is out of bounds #### See [#see-42] * [Container#reparentChild](/pixi-vn/index/classes/Container#reparentchild) For appending reparented children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-190] [`Sprite`](/pixi-vn/index/classes/Sprite).[`reparentChildAt`](/pixi-vn/index/classes/Sprite#reparentchildat) *** ### replaceChild() [#replacechild] > **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-17] ##### U [#u-7] `U` *extends* `ContainerChild` ##### T [#t-7] `T` *extends* `ContainerChild` #### Parameters [#parameters-70] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-117] `void` #### Inherited from [#inherited-from-191] [`Sprite`](/pixi-vn/index/classes/Sprite).[`replaceChild`](/pixi-vn/index/classes/Sprite#replacechild) *** ### setChildIndex() [#setchildindex] > **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-71] ##### child [#child-4] `ContainerChild` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-118] `void` #### Example [#example-117] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-7] If index is out of bounds #### Throws [#throws-8] If child is not in container #### See [#see-43] * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current index * [Container#swapChildren](/pixi-vn/index/classes/Container#swapchildren) For swapping positions #### Inherited from [#inherited-from-192] [`Sprite`](/pixi-vn/index/classes/Sprite).[`setChildIndex`](/pixi-vn/index/classes/Sprite#setchildindex) *** ### setFromMatrix() [#setfrommatrix] > **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-72] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-119] `void` #### Example [#example-118] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-44] * [Container#updateTransform](/pixi-vn/index/classes/Container#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-193] [`Sprite`](/pixi-vn/index/classes/Sprite).[`setFromMatrix`](/pixi-vn/index/classes/Sprite#setfrommatrix) *** ### setMask() [#setmask] > **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-73] ##### options [#options-6] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-120] `void` #### Example [#example-119] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-45] * [Container#mask](/pixi-vn/index/classes/VideoSprite#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-194] [`Sprite`](/pixi-vn/index/classes/Sprite).[`setMask`](/pixi-vn/index/classes/Sprite#setmask) *** ### setMemory() [#setmemory] > **setMemory**(`memory`): `Promise`\<`void`> Defined in: [src/canvas/components/ImageSprite.ts:72](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L72) This method set the memory of the canvas element. #### Parameters [#parameters-74] ##### memory [#memory-2] [`SpriteMemory`](/pixi-vn/index/interfaces/SpriteMemory) | `Memory` #### Returns [#returns-121] `Promise`\<`void`> #### Throws [#throws-9] when the method is not overridden in the subclass. #### Overrides [#overrides-4] [`Sprite`](/pixi-vn/index/classes/Sprite).[`setMemory`](/pixi-vn/index/classes/Sprite#setmemory) *** ### setSize() [#setsize] > **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:353 Sets the size of the Sprite to the specified width and height. This is faster than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-75] ##### value [#value-26] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a Size object ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided #### Returns [#returns-122] `void` #### Example [#example-120] ```ts // Basic size setting const sprite = new Sprite(Texture.from('sprite.png')); sprite.setSize(100, 200); // Width: 100, Height: 200 // Set uniform size sprite.setSize(100); // Sets both width and height to 100 // Set size with object sprite.setSize({ width: 200, height: 300 }); // Reset to texture size sprite.setSize( sprite.texture.orig.width, sprite.texture.orig.height ); ``` #### See [#see-46] * [Sprite#width](/pixi-vn/index/classes/Sprite#width) For setting width only * [Sprite#height](/pixi-vn/index/classes/Sprite#height) For setting height only * [Sprite#texture](/pixi-vn/index/classes/Sprite#texture) For the source dimensions #### Inherited from [#inherited-from-195] [`Sprite`](/pixi-vn/index/classes/Sprite).[`setSize`](/pixi-vn/index/classes/Sprite#setsize) *** ### swapChildren() [#swapchildren] > **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-18] ##### U [#u-8] `U` *extends* `ContainerChild` #### Parameters [#parameters-76] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-123] `void` #### Example [#example-121] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-10] If either child is not in container #### See [#see-47] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For direct index placement * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current positions #### Inherited from [#inherited-from-196] [`Sprite`](/pixi-vn/index/classes/Sprite).[`swapChildren`](/pixi-vn/index/classes/Sprite#swapchildren) *** ### toGlobal() [#toglobal] > **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-19] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-77] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-2] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-124] `P` The global position #### Example [#example-122] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-48] * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-197] [`Sprite`](/pixi-vn/index/classes/Sprite).[`toGlobal`](/pixi-vn/index/classes/Sprite#toglobal) *** ### toLocal() [#tolocal] > **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-20] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-78] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-3] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-125] `P` A point object representing the position in local space #### Example [#example-123] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-49] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-198] [`Sprite`](/pixi-vn/index/classes/Sprite).[`toLocal`](/pixi-vn/index/classes/Sprite#tolocal) *** ### unload() [#unload] > **unload**(): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:110 Unloads the GPU data from the view. #### Returns [#returns-126] `void` #### Inherited from [#inherited-from-199] [`Sprite`](/pixi-vn/index/classes/Sprite).[`unload`](/pixi-vn/index/classes/Sprite#unload) *** ### updateLocalTransform() [#updatelocaltransform] > **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-127] `void` #### Inherited from [#inherited-from-200] [`Sprite`](/pixi-vn/index/classes/Sprite).[`updateLocalTransform`](/pixi-vn/index/classes/Sprite#updatelocaltransform) *** ### updateTransform() [#updatetransform] > **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-79] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-128] `this` This container, for chaining #### Example [#example-124] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-50] * [Container#setFromMatrix](/pixi-vn/index/classes/Container#setfrommatrix) For matrix-based transforms * [Container#position](/pixi-vn/index/interfaces/CanvasBaseInterface#position) For direct position access #### Inherited from [#inherited-from-201] [`Sprite`](/pixi-vn/index/classes/Sprite).[`updateTransform`](/pixi-vn/index/classes/Sprite#updatetransform) *** ### from() [#from-1] > `static` **from**(`source`, `skipCache?`): `ImageSprite`\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> Defined in: [src/canvas/components/ImageSprite.ts:90](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L90) Creates a new sprite based on a source texture, image, video, or canvas element. This is a convenience method that automatically creates and manages textures. #### Parameters [#parameters-80] ##### source [#source] `Texture`\<`TextureSource`\<`any`>> | [`TextureSourceLike`](/pixi-vn/index/type-aliases/TextureSourceLike) The source to create the sprite from. Can be a path to an image, a texture, or any valid texture source (canvas, video, etc.) ##### skipCache? [#skipcache] `boolean` Whether to skip adding to the texture cache when creating a new texture #### Returns [#returns-129] `ImageSprite`\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)> A new sprite based on the source #### Example [#example-125] ```ts // Create from path or URL const sprite = Sprite.from('assets/image.png'); // Create from existing texture const sprite = Sprite.from(texture); // Create from canvas const canvas = document.createElement('canvas'); const sprite = Sprite.from(canvas, true); // Skip caching new texture ``` #### See [#see-51] * Texture.from For texture creation details * [Assets](/pixi-vn/index/variables/Assets) For asset loading and management #### Overrides [#overrides-5] [`Sprite`](/pixi-vn/index/classes/Sprite).[`from`](/pixi-vn/index/classes/Sprite#from) *** ### ~~mixin()~~ [#mixin] \> `static` **mixin**(`source`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:605 Mixes all enumerable properties and methods from a source object to Container. #### Parameters [#parameters-81] ##### source [#source-1] `Dict`\<`any`> The source of properties and methods to mix in. #### Returns [#returns-130] `void` #### Deprecated [#deprecated-3] since 8.8.0 #### Inherited from [#inherited-from-202] [`Sprite`](/pixi-vn/index/classes/Sprite).[`mixin`](/pixi-vn/index/classes/Sprite#mixin) # Class: Label (/pixi-vn/index/classes/Label) Defined in: [src/narration/classes/Label.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/Label.ts#L33) Label is a class that contains a list of steps, which will be performed as the game continues. For Ren'py this is the equivalent of a label. ## Example [#example] ```ts const START_LABEL_ID = "StartLabel" export const startLabel = newLabel(START_LABEL_ID, [ (props) => { canvas.clear() narration.dialogue = { character: liam, text: "Which test do you want to perform?" } narration.choices = [ newChoiceOption("Events Test", eventsTestLabel), newChoiceOption("Show Image Test", showImageTest), ] }, (props) => narration.jump(START_LABEL_ID, props), ] ) narration.call(StartLabel) ``` ## Extends [#extends] * [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`Label`\<`T`>, `T`> ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` = \{ } ## Constructors [#constructors] ### Constructor [#constructor] \> **new Label**\<`T`>(`id`, `steps`, `props?`): `Label`\<`T`> Defined in: [src/narration/classes/Label.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/Label.ts#L45) #### Parameters [#parameters] ##### id [#id] `string` is the id of the label ##### steps [#steps] [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`T`>\[] | (() => [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`T`>\[]) is the list of steps that the label will perform ##### props? [#props] [`LabelProps`](/pixi-vn/index/interfaces/LabelProps)\<`Label`\<`T`>, `number`> is the properties of the label #### Returns [#returns] `Label`\<`T`> #### Overrides [#overrides] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`constructor`](/pixi-vn/index/classes/LabelAbstract#constructor) ## Properties [#properties] ### id [#id-1] \> `readonly` **id**: `string` Defined in: [src/narration/classes/LabelAbstract.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L22) Get the id of the label. This variable is used in the system to get the label by id, [RegisteredLabels.get](/pixi-vn/index/namespaces/RegisteredLabels/functions/get) #### Inherited from [#inherited-from] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`id`](/pixi-vn/index/classes/LabelAbstract#id) ## Accessors [#accessors] ### onLoadingLabel [#onloadinglabel] #### Get Signature [#get-signature] \> **get** **onLoadingLabel**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:60](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L60) Is a function that will be executed in [onStepStart](/pixi-vn/index/interfaces/LabelProps#onstepstart) if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the [narration.openedLabels](/pixi-vn/index/interfaces/NarrationManagerInterface#openedlabels). It is useful for example to make sure all images used have been cached ##### Example [#example-1] ```ts title="content/labels/start.label.ts" newLabel("start", [], { onLoadingLabel: async (stepId, label) => { await Assets.load('path/to/image1.png') await Assets.load('path/to/image2.png') } }) ``` ##### Returns [#returns-1] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Is a function that will be executed in [onStepStart](/pixi-vn/index/interfaces/LabelProps#onstepstart) if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the [narration.openedLabels](/pixi-vn/index/interfaces/NarrationManagerInterface#openedlabels). It is useful for example to make sure all images used have been cached #### Example [#example-2] ```ts title="content/labels/start.label.ts" newLabel("start", [], { onLoadingLabel: async (stepId, label) => { await Assets.load('path/to/image1.png') await Assets.load('path/to/image2.png') } }) ``` #### Inherited from [#inherited-from-1] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`onLoadingLabel`](/pixi-vn/index/classes/LabelAbstract#onloadinglabel) *** ### onStepEnd [#onstepend] #### Get Signature [#get-signature-1] \> **get** **onStepEnd**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:67](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L67) A function executed after each `step`. See more \here. ##### Example [#example-3] ```ts const startLabel = newLabel("start", [ async () => { await showImage("image1", "path/to/image1.png") await showImage("image2", "path/to/image2.png") } ], { onLoadingLabel: async (stepIndex, label) => { await Assets.load("path/to/image1.png") await Assets.load("path/to/image2.png") } }) ``` ##### Returns [#returns-2] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` A function executed after each `step`. See more \here. #### Example [#example-4] ```ts const startLabel = newLabel("start", [ async () => { await showImage("image1", "path/to/image1.png") await showImage("image2", "path/to/image2.png") } ], { onLoadingLabel: async (stepIndex, label) => { await Assets.load("path/to/image1.png") await Assets.load("path/to/image2.png") } }) ``` #### Inherited from [#inherited-from-2] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`onStepEnd`](/pixi-vn/index/classes/LabelAbstract#onstepend) *** ### onStepStart [#onstepstart] #### Get Signature [#get-signature-2] \> **get** **onStepStart**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L44) A function executed before each `step`. ##### Example [#example-5] ```ts const startLabel = newLabel("start", [ () => { narration.dialogue = "Step 1" }, () => { narration.dialogue = "Step 2" } ], { onStepStart: (stepIndex, label) => { console.log(`Step ${stepIndex} started`) } }) ``` ##### Returns [#returns-3] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` A function executed before each `step`. #### Example [#example-6] ```ts const startLabel = newLabel("start", [ () => { narration.dialogue = "Step 1" }, () => { narration.dialogue = "Step 2" } ], { onStepStart: (stepIndex, label) => { console.log(`Step ${stepIndex} started`) } }) ``` #### Inherited from [#inherited-from-3] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`onStepStart`](/pixi-vn/index/classes/LabelAbstract#onstepstart) *** ### stepCount [#stepcount] #### Get Signature [#get-signature-3] \> **get** **stepCount**(): `number` Defined in: [src/narration/classes/Label.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/Label.ts#L34) Get the number of steps in the label. This variable is used in the system to get the number of steps in the label. ##### Returns [#returns-4] `number` The number of steps in the label #### Overrides [#overrides-1] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`stepCount`](/pixi-vn/index/classes/LabelAbstract#stepcount) *** ### steps [#steps-1] #### Get Signature [#get-signature-4] \> **get** **steps**(): [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`T`>\[] Defined in: [src/narration/classes/Label.ts:58](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/Label.ts#L58) Get the steps of the label. ##### Returns [#returns-5] [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`T`>\[] ## Methods [#methods] ### getStepById() [#getstepbyid] \> **getStepById**(`stepId`): [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`T`> | `undefined` Defined in: [src/narration/classes/Label.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/Label.ts#L37) Get the step by id #### Parameters [#parameters-1] ##### stepId [#stepid] `number` Id of the step #### Returns [#returns-6] [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`T`> | `undefined` The step or undefined if it does not exist #### Overrides [#overrides-2] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`getStepById`](/pixi-vn/index/classes/LabelAbstract#getstepbyid) *** ### getStepSha() [#getstepsha] \> **getStepSha**(`index`): `string` Defined in: [src/narration/classes/Label.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/Label.ts#L65) Get the sha of the step #### Parameters [#parameters-2] ##### index [#index] `number` Index of the step #### Returns [#returns-7] `string` #### Overrides [#overrides-3] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract).[`getStepSha`](/pixi-vn/index/classes/LabelAbstract#getstepsha) # Abstract Class: LabelAbstract (/pixi-vn/index/classes/LabelAbstract) Defined in: [src/narration/classes/LabelAbstract.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L5) ## Extended by [#extended-by] * [`Label`](/pixi-vn/index/classes/Label) ## Type Parameters [#type-parameters] ### TLabel [#tlabel] `TLabel` ### TProps [#tprops] `TProps` *extends* `object` = \{ } ### StepIdType [#stepidtype] `StepIdType` = `number` ## Implements [#implements] * [`LabelProps`](/pixi-vn/index/interfaces/LabelProps)\<`TLabel`, `StepIdType`> ## Constructors [#constructors] ### Constructor [#constructor] \> **new LabelAbstract**\<`TLabel`, `TProps`, `StepIdType`>(`id`, `props?`): `LabelAbstract`\<`TLabel`, `TProps`, `StepIdType`> Defined in: [src/narration/classes/LabelAbstract.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L12) #### Parameters [#parameters] ##### id [#id] `string` is the id of the label ##### props? [#props] [`LabelProps`](/pixi-vn/index/interfaces/LabelProps)\<`TLabel`, `StepIdType`> is the properties of the label #### Returns [#returns] `LabelAbstract`\<`TLabel`, `TProps`, `StepIdType`> ## Properties [#properties] ### id [#id-1] \> `readonly` **id**: `string` Defined in: [src/narration/classes/LabelAbstract.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L22) Get the id of the label. This variable is used in the system to get the label by id, [RegisteredLabels.get](/pixi-vn/index/namespaces/RegisteredLabels/functions/get) ## Accessors [#accessors] ### onLoadingLabel [#onloadinglabel] #### Get Signature [#get-signature] \> **get** **onLoadingLabel**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:60](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L60) Is a function that will be executed in [onStepStart](/pixi-vn/index/interfaces/LabelProps#onstepstart) if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the [narration.openedLabels](/pixi-vn/index/interfaces/NarrationManagerInterface#openedlabels). It is useful for example to make sure all images used have been cached ##### Example [#example] ```ts title="content/labels/start.label.ts" newLabel("start", [], { onLoadingLabel: async (stepId, label) => { await Assets.load('path/to/image1.png') await Assets.load('path/to/image2.png') } }) ``` ##### Returns [#returns-1] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Is a function that will be executed in [onStepStart](/pixi-vn/index/interfaces/LabelProps#onstepstart) if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the [narration.openedLabels](/pixi-vn/index/interfaces/NarrationManagerInterface#openedlabels). It is useful for example to make sure all images used have been cached #### Example [#example-1] ```ts title="content/labels/start.label.ts" newLabel("start", [], { onLoadingLabel: async (stepId, label) => { await Assets.load('path/to/image1.png') await Assets.load('path/to/image2.png') } }) ``` #### Implementation of [#implementation-of] [`LabelProps`](/pixi-vn/index/interfaces/LabelProps).[`onLoadingLabel`](/pixi-vn/index/interfaces/LabelProps#onloadinglabel) *** ### onStepEnd [#onstepend] #### Get Signature [#get-signature-1] \> **get** **onStepEnd**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:67](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L67) A function executed after each `step`. See more \here. ##### Example [#example-2] ```ts const startLabel = newLabel("start", [ async () => { await showImage("image1", "path/to/image1.png") await showImage("image2", "path/to/image2.png") } ], { onLoadingLabel: async (stepIndex, label) => { await Assets.load("path/to/image1.png") await Assets.load("path/to/image2.png") } }) ``` ##### Returns [#returns-2] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` A function executed after each `step`. See more \here. #### Example [#example-3] ```ts const startLabel = newLabel("start", [ async () => { await showImage("image1", "path/to/image1.png") await showImage("image2", "path/to/image2.png") } ], { onLoadingLabel: async (stepIndex, label) => { await Assets.load("path/to/image1.png") await Assets.load("path/to/image2.png") } }) ``` #### Implementation of [#implementation-of-1] [`LabelProps`](/pixi-vn/index/interfaces/LabelProps).[`onStepEnd`](/pixi-vn/index/interfaces/LabelProps#onstepend) *** ### onStepStart [#onstepstart] #### Get Signature [#get-signature-2] \> **get** **onStepStart**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L44) A function executed before each `step`. ##### Example [#example-4] ```ts const startLabel = newLabel("start", [ () => { narration.dialogue = "Step 1" }, () => { narration.dialogue = "Step 2" } ], { onStepStart: (stepIndex, label) => { console.log(`Step ${stepIndex} started`) } }) ``` ##### Returns [#returns-3] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` A function executed before each `step`. #### Example [#example-5] ```ts const startLabel = newLabel("start", [ () => { narration.dialogue = "Step 1" }, () => { narration.dialogue = "Step 2" } ], { onStepStart: (stepIndex, label) => { console.log(`Step ${stepIndex} started`) } }) ``` #### Implementation of [#implementation-of-2] [`LabelProps`](/pixi-vn/index/interfaces/LabelProps).[`onStepStart`](/pixi-vn/index/interfaces/LabelProps#onstepstart) *** ### stepCount [#stepcount] #### Get Signature [#get-signature-3] \> **get** `abstract` **stepCount**(): `number` Defined in: [src/narration/classes/LabelAbstract.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L28) Get the number of steps in the label. This variable is used in the system to get the number of steps in the label. ##### Returns [#returns-4] `number` The number of steps in the label ## Methods [#methods] ### getStepById() [#getstepbyid] \> `abstract` **getStepById**(`stepId`): [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`TProps`> | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L41) Get the step by id #### Parameters [#parameters-1] ##### stepId [#stepid] `StepIdType` Id of the step #### Returns [#returns-5] [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`TProps`> | `undefined` The step or undefined if it does not exist *** ### getStepSha() [#getstepsha] \> `abstract` **getStepSha**(`stepId`): `string` | `undefined` Defined in: [src/narration/classes/LabelAbstract.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/LabelAbstract.ts#L34) Get the sha of the step #### Parameters [#parameters-2] ##### stepId [#stepid-1] `StepIdType` #### Returns [#returns-6] `string` | `undefined` # Class: NarrationManagerStatic (/pixi-vn/index/classes/NarrationManagerStatic) Defined in: [src/narration/NarrationManagerStatic.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L27) ## Properties [#properties] ### \_stepCounter [#_stepcounter] \> `static` **\_stepCounter**: `number` = `0` Defined in: [src/narration/NarrationManagerStatic.ts:202](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L202) *** ### choiceMadeTemp [#choicemadetemp] \> `static` **choiceMadeTemp**: `number` | `undefined` = `undefined` Defined in: [src/narration/NarrationManagerStatic.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L29) *** ### lastHistoryStep [#lasthistorystep] \> `static` **lastHistoryStep**: `Omit`\<[`HistoryStep`](/pixi-vn/index/interfaces/HistoryStep), `"diff"`> | `null` = `null` Defined in: [src/narration/NarrationManagerStatic.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L30) *** ### onLabelClosing? [#onlabelclosing] \> `static` `optional` **onLabelClosing?**: (`labelId`, `props`, `defaultClose`) => [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/NarrationManagerStatic.ts:396](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L396) Is a function that will be executed every time the current label is about to close because it naturally ran out of steps - either control is returning to the label that called it, or, if there's no parent label left on the stack, the game is about to end (see [Game.onEnd](/pixi-vn/index/namespaces/Game/functions/onEnd)). By default (when this is not set), the label is closed immediately, exactly like before this hook existed. If you set it, you take control: call `defaultClose()` yourself whenever you want the label to actually close (right away, or later, e.g. from a subsequent `next()`-like action in your template). Until `defaultClose()` is called, the label stays open: it is not popped off the opened labels stack, narration does not continue into the parent label, and the game does not end even if this was the last label - this is what lets an app show the final paragraph of a story before actually ending it, instead of both happening within the same `continue()` call. This does not fire for a `jump` or a choice's `closeCurrentLabel` option - those close the current label explicitly as part of starting a new one, so [onLabelStarting](#onlabelstarting) already covers deferring them. #### Parameters [#parameters] ##### labelId [#labelid] `string` ##### props [#props] `StepLabelProps` ##### defaultClose [#defaultclose] () => `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> #### Returns [#returns] [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### onLabelStarting? [#onlabelstarting] \> `static` `optional` **onLabelStarting?**: (`labelId`, `props`, `options`, `defaultStart`) => [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/NarrationManagerStatic.ts:369](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L369) Is a function that will be executed every time a label is about to be started, either via `call` or `jump` (this includes labels started through a choice of type `"call"` or `"jump"`). By default (when this is not set), the label is started immediately, exactly like before this hook existed. If you set it, you take control: call `defaultStart()` yourself whenever you want the label to actually run (right away, or later, e.g. from a subsequent `next()`-like action in your template). Until `defaultStart()` is called, nothing about the label happens: it is not added to the history and no step of it runs. #### Parameters [#parameters-1] ##### labelId [#labelid-1] `string` ##### props [#props-1] `StepLabelProps` ##### options [#options] ###### choiceMade? [#choicemade] `number` ###### closeCurrentLabel? [#closecurrentlabel] `boolean` ###### type [#type] `string` ##### defaultStart [#defaultstart] () => `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> #### Returns [#returns-1] [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### onLoadingLabel? [#onloadinglabel] \> `static` `optional` **onLoadingLabel?**: (`stepId`, `label`) => `void` | `Promise`\<`void`> Defined in: [src/narration/NarrationManagerStatic.ts:357](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L357) #### Parameters [#parameters-2] ##### stepId [#stepid] `number` ##### label [#label] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`> #### Returns [#returns-2] `void` | `Promise`\<`void`> *** ### onStepEnd? [#onstepend] \> `static` `optional` **onStepEnd?**: (`stepId`, `label`) => `void` | `Promise`\<`void`> Defined in: [src/narration/NarrationManagerStatic.ts:358](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L358) #### Parameters [#parameters-3] ##### stepId [#stepid-1] `number` ##### label [#label-1] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`> #### Returns [#returns-3] `void` | `Promise`\<`void`> ## Accessors [#accessors] ### \_currentLabel [#_currentlabel] #### Get Signature [#get-signature] \> **get** `static` **\_currentLabel**(): [`Label`](/pixi-vn/index/classes/Label)\<\{ }> | `undefined` Defined in: [src/narration/NarrationManagerStatic.ts:223](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L223) ##### Returns [#returns-4] [`Label`](/pixi-vn/index/classes/Label)\<\{ }> | `undefined` *** ### allChoicesMade [#allchoicesmade] #### Get Signature [#get-signature-1] \> **get** `static` **allChoicesMade**(): `ChoicesMadeType`\[] Defined in: [src/narration/NarrationManagerStatic.ts:187](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L187) is a list of all choices made by the player during the progression of the steps. ##### Returns [#returns-5] `ChoicesMadeType`\[] #### Set Signature [#set-signature] \> **set** `static` **allChoicesMade**(`value`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:195](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L195) ##### Parameters [#parameters-4] ###### value [#value] `ChoicesMadeType`\[] ##### Returns [#returns-6] `void` *** ### allOpenedLabels [#allopenedlabels] #### Get Signature [#get-signature-2] \> **get** `static` **allOpenedLabels**(): `AllOpenedLabelsType` Defined in: [src/narration/NarrationManagerStatic.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L35) is a list of all labels that have been opened during the progression of the steps. the key is the label id and the biggest step opened. ##### Returns [#returns-7] `AllOpenedLabelsType` #### Set Signature [#set-signature-1] \> **set** `static` **allOpenedLabels**(`value`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L43) ##### Parameters [#parameters-5] ###### value [#value-1] `AllOpenedLabelsType` ##### Returns [#returns-8] `void` *** ### currentLabelId [#currentlabelid] #### Get Signature [#get-signature-3] \> **get** `static` **currentLabelId**(): `string` | `undefined` Defined in: [src/narration/NarrationManagerStatic.ts:232](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L232) currentLabelId is the current label id that occurred during the progression of the steps. ##### Returns [#returns-9] `string` | `undefined` *** ### currentLabelStepIndex [#currentlabelstepindex] #### Get Signature [#get-signature-4] \> **get** `static` **currentLabelStepIndex**(): `number` | `null` Defined in: [src/narration/NarrationManagerStatic.ts:242](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L242) ##### Returns [#returns-10] `number` | `null` *** ### onStepStart [#onstepstart] #### Get Signature [#get-signature-5] \> **get** `static` **onStepStart**(): ((`stepId`, `label`) => `Promise`\<`void`\[]>) | `undefined` Defined in: [src/narration/NarrationManagerStatic.ts:343](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L343) ##### Returns [#returns-11] ((`stepId`, `label`) => `Promise`\<`void`\[]>) | `undefined` #### Set Signature [#set-signature-2] \> **set** `static` **onStepStart**(`value`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:337](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L337) ##### Parameters [#parameters-6] ###### value [#value-2] (`stepId`, `label`) => `void` | `Promise`\<`void`> ##### Returns [#returns-12] `void` *** ### openedLabels [#openedlabels] #### Get Signature [#get-signature-6] \> **get** `static` **openedLabels**(): [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/narration/NarrationManagerStatic.ts:210](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L210) ##### Returns [#returns-13] [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] #### Set Signature [#set-signature-3] \> **set** `static` **openedLabels**(`value`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:213](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L213) ##### Parameters [#parameters-7] ###### value [#value-3] [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] ##### Returns [#returns-14] `void` *** ### originalOpenedLabels [#originalopenedlabels] #### Get Signature [#get-signature-7] \> **get** `static` **originalOpenedLabels**(): [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/narration/NarrationManagerStatic.ts:217](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L217) ##### Returns [#returns-15] [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] #### Set Signature [#set-signature-4] \> **set** `static` **originalOpenedLabels**(`value`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:220](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L220) ##### Parameters [#parameters-8] ###### value [#value-4] [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] ##### Returns [#returns-16] `void` ## Methods [#methods] ### addChoicesMade() [#addchoicesmade] \> `static` **addChoicesMade**(`label`, `stepIndex`, `stepSha`, `choiceMade`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:269](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L269) #### Parameters [#parameters-9] ##### label [#label-2] `string` ##### stepIndex [#stepindex] `number` ##### stepSha [#stepsha] `string` ##### choiceMade [#choicemade-1] `number` #### Returns [#returns-17] `void` *** ### addLabelHistory() [#addlabelhistory] \> `static` **addLabelHistory**(`label`, `stepIndex`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:260](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L260) Add a label to the history. #### Parameters [#parameters-10] ##### label [#label-3] `string` The label to add to the history. ##### stepIndex [#stepindex-1] `number` The step index of the label. #### Returns [#returns-18] `void` *** ### getCurrentStepTimesCounter() [#getcurrentsteptimescounter] \> `static` **getCurrentStepTimesCounter**(`nestedId?`): `number` Defined in: [src/narration/NarrationManagerStatic.ts:110](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L110) #### Parameters [#parameters-11] ##### nestedId? [#nestedid] `string` = `""` #### Returns [#returns-19] `number` *** ### getCurrentStepTimesCounterData() [#getcurrentsteptimescounterdata] \> `static` **getCurrentStepTimesCounterData**(`nestedId?`): `CurrentStepTimesCounterMemotyData` | `null` Defined in: [src/narration/NarrationManagerStatic.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L50) #### Parameters [#parameters-12] ##### nestedId? [#nestedid-1] `string` = `""` #### Returns [#returns-20] `CurrentStepTimesCounterMemotyData` | `null` *** ### getRandomNumber() [#getrandomnumber] \> `static` **getRandomNumber**(`min`, `max`, `options?`): `number` | `undefined` Defined in: [src/narration/NarrationManagerStatic.ts:126](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L126) #### Parameters [#parameters-13] ##### min [#min] `number` ##### max [#max] `number` ##### options? [#options-1] ###### nestedId? [#nestedid-2] `string` ###### onceOnly? [#onceonly] `boolean` #### Returns [#returns-21] `number` | `undefined` *** ### increaseCurrentStepIndex() [#increasecurrentstepindex] \> `static` **increaseCurrentStepIndex**(): `void` Defined in: [src/narration/NarrationManagerStatic.ts:319](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L319) Increase the current step index of the current label. #### Returns [#returns-22] `void` *** ### increaseStepCounter() [#increasestepcounter] \> `static` **increaseStepCounter**(): `void` Defined in: [src/narration/NarrationManagerStatic.ts:206](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L206) Increase the last step index that occurred during the progression of the steps. #### Returns [#returns-23] `void` *** ### pushNewLabel() [#pushnewlabel] \> `static` **pushNewLabel**(`label`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:301](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L301) Add a label to the history. #### Parameters [#parameters-14] ##### label [#label-4] `string` The label to add to the history. #### Returns [#returns-24] `void` #### Throws [#throws] when the label is not found in the registered labels. *** ### resetCurrentStepTimesCounter() [#resetcurrentsteptimescounter] \> `static` **resetCurrentStepTimesCounter**(`nestedId?`): `void` Defined in: [src/narration/NarrationManagerStatic.ts:161](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/NarrationManagerStatic.ts#L161) #### Parameters [#parameters-15] ##### nestedId? [#nestedid-3] `string` = `""` #### Returns [#returns-25] `void` # Class: PixiError (/pixi-vn/index/classes/PixiError) Defined in: [src/core/PixiError.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/PixiError.ts#L5) ## Extends [#extends] * `Error` ## Constructors [#constructors] ### Constructor [#constructor] \> **new PixiError**(`code`, `message`): `PixiError` Defined in: [src/core/PixiError.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/PixiError.ts#L7) #### Parameters [#parameters] ##### code [#code] [`ErrorCodeType`](/pixi-vn/index/type-aliases/ErrorCodeType) ##### message [#message] `string` #### Returns [#returns] `PixiError` #### Overrides [#overrides] `Error.constructor` ### Constructor [#constructor-1] \> **new PixiError**(`code`, `message`, `type`, `data`, `parent?`): `PixiError` Defined in: [src/core/PixiError.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/PixiError.ts#L8) #### Parameters [#parameters-1] ##### code [#code-1] [`ErrorCodeType`](/pixi-vn/index/type-aliases/ErrorCodeType) ##### message [#message-1] `string` ##### type [#type] `"canvas"` ##### data [#data] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) | [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) & `ContainerOptions`\<`ContainerChild`> ##### parent? [#parent] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`any`> #### Returns [#returns-1] `PixiError` #### Overrides [#overrides-1] `Error.constructor` ## Properties [#properties] ### canvasElementInfo? [#canvaselementinfo] \> `optional` **canvasElementInfo?**: [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) Defined in: [src/core/PixiError.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/PixiError.ts#L32) *** ### cause? [#cause] \> `optional` **cause?**: `unknown` Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26 #### Inherited from [#inherited-from] `Error.cause` *** ### code [#code-2] \> **code**: [`ErrorCodeType`](/pixi-vn/index/type-aliases/ErrorCodeType) Defined in: [src/core/PixiError.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/PixiError.ts#L6) *** ### message [#message-2] \> **message**: `string` Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077 #### Inherited from [#inherited-from-1] `Error.message` *** ### name [#name] \> **name**: `string` Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076 #### Inherited from [#inherited-from-2] `Error.name` *** ### parent? [#parent-1] \> `optional` **parent?**: [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`any`> Defined in: [src/core/PixiError.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/PixiError.ts#L33) *** ### stack? [#stack] \> `optional` **stack?**: `string` Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078 #### Inherited from [#inherited-from-3] `Error.stack` *** ### stackTraceLimit [#stacktracelimit] \> `static` **stackTraceLimit**: `number` Defined in: node_modules/@types/node/globals.d.ts:67 The `Error.stackTraceLimit` property specifies the number of stack frames collected by a stack trace (whether generated by `new Error().stack` or `Error.captureStackTrace(obj)`). The default value is `10` but may be set to any valid JavaScript number. Changes will affect any stack trace captured *after* the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. #### Inherited from [#inherited-from-4] `Error.stackTraceLimit` ## Methods [#methods] ### captureStackTrace() [#capturestacktrace] \> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void` Defined in: node_modules/@types/node/globals.d.ts:51 Creates a `.stack` property on `targetObject`, which when accessed returns a string representing the location in the code at which `Error.captureStackTrace()` was called. ```js const myObject = {}; Error.captureStackTrace(myObject); myObject.stack; // Similar to `new Error().stack` ``` The first line of the trace will be prefixed with `${myObject.name}: ${myObject.message}`. The optional `constructorOpt` argument accepts a function. If given, all frames above `constructorOpt`, including `constructorOpt`, will be omitted from the generated stack trace. The `constructorOpt` argument is useful for hiding implementation details of error generation from the user. For instance: ```js function a() { b(); } function b() { c(); } function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit; // Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error; } a(); ``` #### Parameters [#parameters-2] ##### targetObject [#targetobject] `object` ##### constructorOpt? [#constructoropt] `Function` #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-5] `Error.captureStackTrace` *** ### isError() [#iserror] \> `static` **isError**(`error`): `error is Error` Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23 Indicates whether the argument provided is a built-in Error instance or not. #### Parameters [#parameters-3] ##### error [#error] `unknown` #### Returns [#returns-3] `error is Error` #### Inherited from [#inherited-from-6] `Error.isError` *** ### prepareStackTrace() [#preparestacktrace] \> `static` **prepareStackTrace**(`err`, `stackTraces`): `any` Defined in: node_modules/@types/node/globals.d.ts:55 #### Parameters [#parameters-4] ##### err [#err] `Error` ##### stackTraces [#stacktraces] `CallSite`\[] #### Returns [#returns-4] `any` #### See [#see] [https://v8.dev/docs/stack-trace-api#customizing-stack-traces](https://v8.dev/docs/stack-trace-api#customizing-stack-traces) #### Inherited from [#inherited-from-7] `Error.prepareStackTrace` # Class: Sprite (/pixi-vn/index/classes/Sprite) Defined in: [src/canvas/components/Sprite.ts:52](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L52) This class is a extension of the [PIXI.Sprite class](https://pixijs.com/8.x/examples/sprite/basic), it has the same properties and methods, but it has the ability to be saved and loaded by the Pixi’VN library. ## Example [#example] ```ts const texture = await Assets.load('https://pixijs.com/assets/bunny.png'); const sprite = Sprite.from(texture); sprite.anchor.set(0.5); sprite.x = canvas.screen.width / 2; sprite.y = canvas.screen.height / 2; sprite.eventMode = 'static'; sprite.cursor = 'pointer'; sprite.onEvent('pointerdown', EventTest); canvas.add("bunny", sprite); ``` ## Extends [#extends] * `Sprite` ## Extended by [#extended-by] * [`ImageSprite`](/pixi-vn/index/classes/ImageSprite) ## Type Parameters [#type-parameters] ### Memory [#memory] `Memory` *extends* `PixiSpriteOptions` & [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) = [`SpriteMemory`](/pixi-vn/index/interfaces/SpriteMemory) ## Implements [#implements] * [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`Memory` | [`SpriteMemory`](/pixi-vn/index/interfaces/SpriteMemory)> * [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension) * [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension) ## Constructors [#constructors] ### Constructor [#constructor] \> **new Sprite**\<`Memory`>(`options?`): `Sprite`\<`Memory`> Defined in: [src/canvas/components/Sprite.ts:62](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L62) #### Parameters [#parameters] ##### options? [#options] `Texture`\<`TextureSource`\<`any`>> | [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions) The options for the component. #### Returns [#returns] `Sprite`\<`Memory`> #### Overrides [#overrides] `PIXI.Sprite.constructor` ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] `PIXI.Sprite.__devtoolIgnore` *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] `PIXI.Sprite.__devtoolIgnoreChildren` *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] `PIXI.Sprite.__devtoolLocked` *** ### \_anchor [#_anchor] \> `readonly` **\_anchor**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:155 **`Internal`** #### Inherited from [#inherited-from-3] `PIXI.Sprite._anchor` *** ### \_bounds [#_bounds] \> `protected` **\_bounds**: `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:59 #### Inherited from [#inherited-from-4] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`_bounds`](/pixi-vn/index/classes/VideoSprite#_bounds) *** ### \_boundsDirty [#_boundsdirty] \> `protected` **\_boundsDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:60 #### Inherited from [#inherited-from-5] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`_boundsDirty`](/pixi-vn/index/classes/VideoSprite#_boundsdirty) *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-6] `PIXI.Sprite._cx` *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-7] `PIXI.Sprite._cy` *** ### \_gcData? [#_gcdata] \> `optional` **\_gcData?**: `GCData` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:54 **`Internal`** #### Inherited from [#inherited-from-8] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`_gcData`](/pixi-vn/index/classes/VideoSprite#_gcdata) *** ### \_gcLastUsed [#_gclastused] \> **\_gcLastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:58 **`Internal`** #### Inherited from [#inherited-from-9] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`_gcLastUsed`](/pixi-vn/index/classes/VideoSprite#_gclastused) *** ### \_gpuData [#_gpudata] \> **\_gpuData**: `Record`\<`number`, `GPU_DATA`> Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:52 **`Internal`** #### Inherited from [#inherited-from-10] `PIXI.Sprite._gpuData` *** ### \_lastUsed [#_lastused] \> **\_lastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:50 **`Internal`** #### Inherited from [#inherited-from-11] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`_lastUsed`](/pixi-vn/index/classes/VideoSprite#_lastused) *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-12] `PIXI.Sprite._pivot` *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-13] `PIXI.Sprite._position` *** ### \_roundPixels [#_roundpixels] \> **\_roundPixels**: `0` | `1` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:48 **`Internal`** #### Inherited from [#inherited-from-14] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`_roundPixels`](/pixi-vn/index/classes/VideoSprite#_roundpixels) *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-15] `PIXI.Sprite._scale` *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-16] `PIXI.Sprite._skew` *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-17] `PIXI.Sprite._sx` *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-18] `PIXI.Sprite._sy` *** ### \_texture [#_texture] \> **\_texture**: `Texture` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:157 **`Internal`** #### Inherited from [#inherited-from-19] `PIXI.Sprite._texture` *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-20] `PIXI.Sprite._zIndex` *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-21] `PIXI.Sprite.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-22] `PIXI.Sprite.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-23] `PIXI.Sprite.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-24] `PIXI.Sprite.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-25] `PIXI.Sprite.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-26] `PIXI.Sprite.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-7] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-27] `PIXI.Sprite.accessibleType` *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:46 **`Internal`** #### Inherited from [#inherited-from-28] `PIXI.Sprite.allowChildren` *** ### autoGarbageCollect [#autogarbagecollect] \> **autoGarbageCollect**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:56 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-29] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`autoGarbageCollect`](/pixi-vn/index/classes/VideoSprite#autogarbagecollect) *** ### batched [#batched] \> **batched**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:153 **`Internal`** #### Inherited from [#inherited-from-30] `PIXI.Sprite.batched` *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-8] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-31] `PIXI.Sprite.boundsArea` *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-32] `PIXI.Sprite.cacheAsBitmap` *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters-1] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns-1] `void` #### Example [#example-9] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](/pixi-vn/index/classes/VideoSprite#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-33] `PIXI.Sprite.cacheAsTexture` *** ### canBundle [#canbundle] \> `readonly` **canBundle**: `true` = `true` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:44 **`Internal`** #### Inherited from [#inherited-from-34] `PIXI.Sprite.canBundle` *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-10] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-35] `PIXI.Sprite.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-11] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-36] `PIXI.Sprite.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-12] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-37] `PIXI.Sprite.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-13] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-9] ```ts null ``` #### Inherited from [#inherited-from-38] `PIXI.Sprite.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-14] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-10] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-39] `PIXI.Sprite.cursor` *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-40] `PIXI.Sprite.depthOfChildModified` *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-15] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-11] ```ts false ``` #### See [#see-3] [Container#destroy](/pixi-vn/index/classes/Container#destroy) For destroying objects #### Inherited from [#inherited-from-41] `PIXI.Sprite.destroyed` *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-42] `PIXI.Sprite.effects` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-43] `PIXI.Sprite.eventMode` *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-17] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * [Container#filters](/pixi-vn/index/classes/VideoSprite#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-44] `PIXI.Sprite.filterArea` *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-45] `PIXI.Sprite.globalDisplayStatus` *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-46] `PIXI.Sprite.groupAlpha` *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-47] `PIXI.Sprite.groupBlendMode` *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-48] `PIXI.Sprite.groupColor` *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-49] `PIXI.Sprite.groupColorAlpha` *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-50] `PIXI.Sprite.groupTransform` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-18] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-51] `PIXI.Sprite.hitArea` *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-19] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-52] `PIXI.Sprite.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-12] ```ts true ``` #### Example [#example-20] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-53] `PIXI.Sprite.interactiveChildren` *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-21] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * [Container#cacheAsTexture](/pixi-vn/index/classes/Container#cacheastexture) For enabling caching * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cache #### Inherited from [#inherited-from-54] `PIXI.Sprite.isCachedAsTexture` *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-3] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-22] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-55] `PIXI.Sprite.isInteractive` *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-56] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-57] `PIXI.Sprite.layerParentId` *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-58] `PIXI.Sprite.localAlpha` *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-59] `PIXI.Sprite.localBlendMode` *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-60] `PIXI.Sprite.localColor` *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-61] `PIXI.Sprite.localDisplayStatus` *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-23] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](/pixi-vn/index/classes/VideoSprite#worldtransform) For global transform * [Container#groupTransform](/pixi-vn/index/classes/VideoSprite#grouptransform) For render group transform #### Inherited from [#inherited-from-62] `PIXI.Sprite.localTransform` *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a Sprite object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-24] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * Sprite For texture-based masks * [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-63] `PIXI.Sprite.mask` *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-64] `PIXI.Sprite.name` *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-65] `PIXI.Sprite.onclick` *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-66] `PIXI.Sprite.oncontextmenu` *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) = `{}` Defined in: [src/canvas/components/Sprite.ts:99](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L99) ListenerExtension #### Implementation of [#implementation-of] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`onEventsHandlers`](/pixi-vn/index/interfaces/ListenerExtension#oneventshandlers) *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-17] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-67] `PIXI.Sprite.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-68] `PIXI.Sprite.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-69] `PIXI.Sprite.onglobaltouchmove` *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-20] ```ts null ``` #### Inherited from [#inherited-from-70] `PIXI.Sprite.onmousedown` *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-71] `PIXI.Sprite.onmouseenter` *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-72] `PIXI.Sprite.onmouseleave` *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-73] `PIXI.Sprite.onmousemove` *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-74] `PIXI.Sprite.onmouseout` *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-75] `PIXI.Sprite.onmouseover` *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-76] `PIXI.Sprite.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-77] `PIXI.Sprite.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-78] `PIXI.Sprite.onpointercancel` *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-79] `PIXI.Sprite.onpointerdown` *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-80] `PIXI.Sprite.onpointerenter` *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-81] `PIXI.Sprite.onpointerleave` *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-82] `PIXI.Sprite.onpointermove` *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-83] `PIXI.Sprite.onpointerout` *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-84] `PIXI.Sprite.onpointerover` *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-85] `PIXI.Sprite.onpointertap` *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-86] `PIXI.Sprite.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-87] `PIXI.Sprite.onpointerupoutside` *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-48] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-88] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-89] `PIXI.Sprite.onrightclick` *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-90] `PIXI.Sprite.onrightdown` *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-91] `PIXI.Sprite.onrightup` *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-92] `PIXI.Sprite.onrightupoutside` *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-93] `PIXI.Sprite.ontap` *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-94] `PIXI.Sprite.ontouchcancel` *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-95] `PIXI.Sprite.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-96] `PIXI.Sprite.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-97] `PIXI.Sprite.ontouchmove` *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-98] `PIXI.Sprite.ontouchstart` *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-59] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-99] `PIXI.Sprite.onwheel` *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-60] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-100] `PIXI.Sprite.parent` *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-101] `PIXI.Sprite.parentRenderLayer` *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` = `CANVAS_SPRITE_ID` Defined in: [src/canvas/components/Sprite.ts:78](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L78) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Implementation of [#implementation-of-1] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`pixivnId`](/pixi-vn/index/classes/CanvasBaseItem#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-102] `PIXI.Sprite.relativeGroupTransform` *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:151 **`Internal`** #### Inherited from [#inherited-from-103] `PIXI.Sprite.renderPipeId` *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-61] ```ts container.sortableChildren = true; ``` #### Default [#default-49] ```ts false ``` #### Inherited from [#inherited-from-104] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-4] `void` #### Example [#example-62] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling automatic sorting * [Container#zIndex](/pixi-vn/index/classes/VideoSprite#zindex) For setting child order #### Inherited from [#inherited-from-105] `PIXI.Sprite.sortChildren` *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-50] ```ts false @internal ``` #### Inherited from [#inherited-from-106] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-51] ```ts 0 ``` #### Example [#example-63] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-107] `PIXI.Sprite.tabIndex` *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-108] `PIXI.Sprite.uid` *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-5] `void` #### Example [#example-64] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-109] `PIXI.Sprite.updateCacheTexture` *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-110] `PIXI.Sprite.updateTick` *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-65] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-52] ```ts 0 ``` #### Inherited from [#inherited-from-111] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) *** ### prefixed [#prefixed] \> `static` **prefixed**: `string` | `boolean` Defined in: node_modules/eventemitter3/index.d.ts:9 #### Inherited from [#inherited-from-112] `PIXI.Sprite.prefixed` ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Sprite.ts:140](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L140) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-6] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L128) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-2] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-7] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-2] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#align) *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-66] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-53] ```ts 1 ``` ##### See [#see-14] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control ##### Returns [#returns-8] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-3] ###### value [#value-1] `number` ##### Returns [#returns-9] `void` #### Inherited from [#inherited-from-113] `PIXI.Sprite.alpha` *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:256 The anchor sets the origin point of the sprite. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. * The default is `(0,0)`, this means the sprite's origin is the top left. * Setting the anchor to `(0.5,0.5)` means the sprite's origin is centered. * Setting the anchor to `(1,1)` would mean the sprite's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-67] ```ts // Center the anchor point sprite.anchor = 0.5; // Sets both x and y to 0.5 sprite.position.set(400, 300); // Sprite will be centered at this position // Set specific x/y anchor points sprite.anchor = { x: 1, // Right edge y: 0 // Top edge }; // Using individual coordinates sprite.anchor.set(0.5, 1); // Center-bottom // For rotation around center sprite.anchor.set(0.5); sprite.rotation = Math.PI / 4; // 45 degrees around center // For scaling from center sprite.anchor.set(0.5); sprite.scale.set(2); // Scales from center point ``` ##### Returns [#returns-10] `ObservablePoint` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:257 ##### Parameters [#parameters-4] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-11] `void` #### Inherited from [#inherited-from-114] `PIXI.Sprite.anchor` *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-68] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-12] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-5] ###### value [#value-3] `number` ##### Returns [#returns-13] `void` #### Inherited from [#inherited-from-115] `PIXI.Sprite.angle` *** ### blendMode [#blendmode] #### Get Signature [#get-signature-4] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-69] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-54] ```ts 'normal' ``` ##### See [#see-15] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments ##### Returns [#returns-14] `BLEND_MODES` #### Set Signature [#set-signature-4] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-6] ###### value [#value-4] `BLEND_MODES` ##### Returns [#returns-15] `void` #### Inherited from [#inherited-from-116] `PIXI.Sprite.blendMode` *** ### bounds [#bounds] #### Get Signature [#get-signature-5] \> **get** **bounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:74 The local bounds of the view in its own coordinate space. Bounds are automatically updated when the view's content changes. ##### Example [#example-70] ```ts // Get bounds dimensions const bounds = view.bounds; console.log(`Width: ${bounds.maxX - bounds.minX}`); console.log(`Height: ${bounds.maxY - bounds.minY}`); ``` ##### See [#see-16] Bounds For bounds operations ##### Returns [#returns-16] `Bounds` The rectangular bounds of the view #### Inherited from [#inherited-from-117] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`bounds`](/pixi-vn/index/classes/VideoSprite#bounds) *** ### filters [#filters] #### Get Signature [#get-signature-6] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-71] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-17] Filter For filter base class ##### Returns [#returns-17] readonly `Filter`\[] #### Set Signature [#set-signature-5] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-72] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-18] Filter For filter base class ##### Parameters [#parameters-7] ###### value [#value-5] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-18] `void` #### Inherited from [#inherited-from-118] `PIXI.Sprite.filters` *** ### height [#height] #### Get Signature [#get-signature-7] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:300 The height of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example [#example-73] ```ts // Set height directly sprite.height = 150; console.log(sprite.scale.y); // Scale adjusted to match height // Set height while preserving aspect ratio const ratio = sprite.width / sprite.height; sprite.height = 200; sprite.width = 200 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.height = sprite.texture.orig.height; ``` ##### Returns [#returns-19] `number` #### Set Signature [#set-signature-6] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:301 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-74] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Parameters [#parameters-8] ###### value [#value-6] `number` ##### Returns [#returns-20] `void` #### Inherited from [#inherited-from-119] `PIXI.Sprite.height` *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-8] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-21] `boolean` #### Inherited from [#inherited-from-120] `PIXI.Sprite.isRenderable` *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-9] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-22] `boolean` #### Set Signature [#set-signature-7] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-9] ###### value [#value-7] `boolean` ##### Returns [#returns-23] `void` #### Inherited from [#inherited-from-121] `PIXI.Sprite.isRenderGroup` *** ### memory [#memory-1] #### Get Signature [#get-signature-10] \> **get** **memory**(): [`SpriteMemory`](/pixi-vn/index/interfaces/SpriteMemory) | `Memory` Defined in: [src/canvas/components/Sprite.ts:79](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L79) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-24] [`SpriteMemory`](/pixi-vn/index/interfaces/SpriteMemory) | `Memory` #### Implementation of [#implementation-of-3] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`memory`](/pixi-vn/index/classes/CanvasBaseItem#memory) *** ### origin [#origin] #### Get Signature [#get-signature-11] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-75] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-25] `ObservablePoint` #### Set Signature [#set-signature-8] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-10] ###### value [#value-8] `number` | `PointData` ##### Returns [#returns-26] `void` #### Inherited from [#inherited-from-122] `PIXI.Sprite.origin` *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-12] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Sprite.ts:211](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L211) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-27] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-9] \> **set** **percentagePosition**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:199](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L199) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-11] ###### value [#value-9] `number` | `Partial`\<`PointData`> ##### Returns [#returns-28] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-4] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentageposition) *** ### percentageX [#percentagex] #### Get Signature [#get-signature-13] \> **get** **percentageX**(): `number` Defined in: [src/canvas/components/Sprite.ts:217](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L217) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-29] `number` #### Set Signature [#set-signature-10] \> **set** **percentageX**(`_value`): `void` Defined in: [src/canvas/components/Sprite.ts:220](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L220) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-12] ###### \_value [#_value] `number` ##### Returns [#returns-30] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-5] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagex) *** ### percentageY [#percentagey] #### Get Signature [#get-signature-14] \> **get** **percentageY**(): `number` Defined in: [src/canvas/components/Sprite.ts:226](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L226) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-31] `number` #### Set Signature [#set-signature-11] \> **set** **percentageY**(`_value`): `void` Defined in: [src/canvas/components/Sprite.ts:229](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L229) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-13] ###### \_value [#_value-1] `number` ##### Returns [#returns-32] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-6] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagey) *** ### pivot [#pivot] #### Get Signature [#get-signature-15] \> **get** **pivot**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1023 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-76] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-33] `ObservablePoint` #### Set Signature [#set-signature-12] \> **set** **pivot**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1024 ##### Parameters [#parameters-14] ###### value [#value-10] `number` | `PointData` ##### Returns [#returns-34] `void` #### Inherited from [#inherited-from-123] `PIXI.Sprite.pivot` *** ### position [#position] #### Get Signature [#get-signature-16] \> **get** **position**(): `ObservablePoint` Defined in: [src/canvas/components/Sprite.ts:301](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L301) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-77] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-3] 4.0.0 ##### Returns [#returns-35] `ObservablePoint` #### Set Signature [#set-signature-13] \> **set** **position**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:304](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L304) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-78] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Parameters [#parameters-15] ###### value [#value-11] `ObservablePoint` ##### Returns [#returns-36] `void` #### Overrides [#overrides-1] `PIXI.Sprite.position` *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-17] \> **get** **positionInfo**(): `object` Defined in: [src/canvas/components/Sprite.ts:243](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L243) ##### Returns [#returns-37] `object` ###### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-14] \> **set** **positionInfo**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:253](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L253) ##### Parameters [#parameters-16] ###### value [#value-12] ###### type? [#type-1] `"pixel"` | `"percentage"` | `"align"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-38] `void` #### Implementation of [#implementation-of-7] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionInfo`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positioninfo) *** ### positionType [#positiontype] #### Get Signature [#get-signature-18] \> **get** **positionType**(): `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/Sprite.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L235) ##### Returns [#returns-39] `"pixel"` | `"percentage"` | `"align"` #### Implementation of [#implementation-of-8] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionType`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positiontype) *** ### renderable [#renderable] #### Get Signature [#get-signature-19] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-79] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-55] ```ts true ``` ##### See [#see-19] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-40] `boolean` #### Set Signature [#set-signature-15] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-17] ###### value [#value-13] `boolean` ##### Returns [#returns-41] `void` #### Inherited from [#inherited-from-124] `PIXI.Sprite.renderable` *** ### rotation [#rotation] #### Get Signature [#get-signature-20] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-80] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-42] `number` #### Set Signature [#set-signature-16] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-18] ###### value [#value-14] `number` ##### Returns [#returns-43] `void` #### Inherited from [#inherited-from-125] `PIXI.Sprite.rotation` *** ### roundPixels [#roundpixels] #### Get Signature [#get-signature-21] \> **get** **roundPixels**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:86 Whether or not to round the x/y position of the sprite. ##### Example [#example-81] ```ts // Enable pixel rounding for crisp rendering view.roundPixels = true; ``` ##### Default [#default-56] ```ts false ``` ##### Returns [#returns-44] `boolean` #### Set Signature [#set-signature-17] \> **set** **roundPixels**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:87 Whether or not to round the x/y position of the object. ##### Parameters [#parameters-19] ###### value [#value-15] `boolean` ##### Returns [#returns-45] `void` #### Inherited from [#inherited-from-126] `PIXI.Sprite.roundPixels` *** ### scale [#scale] #### Get Signature [#get-signature-22] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-82] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-5] 4.0.0 ##### Returns [#returns-46] `ObservablePoint` #### Set Signature [#set-signature-18] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-20] ###### value [#value-16] `string` | `number` | `PointData` ##### Returns [#returns-47] `void` #### Inherited from [#inherited-from-127] `PIXI.Sprite.scale` *** ### skew [#skew] #### Get Signature [#get-signature-23] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-83] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-6] 4.0.0 ##### Default [#default-57] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-48] `ObservablePoint` #### Set Signature [#set-signature-19] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-21] ###### value [#value-17] `PointData` ##### Returns [#returns-49] `void` #### Inherited from [#inherited-from-128] `PIXI.Sprite.skew` *** ### texture [#texture] #### Get Signature [#get-signature-24] \> **get** **texture**(): `Texture` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:189 The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-84] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-20] * [Texture](/pixi-vn/index/variables/Texture) For texture creation and management * [Assets](/pixi-vn/index/variables/Assets) For asset loading ##### Returns [#returns-50] `Texture` #### Set Signature [#set-signature-20] \> **set** **texture**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:165 ##### Parameters [#parameters-22] ###### value [#value-18] `Texture` ##### Returns [#returns-51] `void` #### Inherited from [#inherited-from-129] `PIXI.Sprite.texture` *** ### tint [#tint] #### Get Signature [#get-signature-25] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-85] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-58] ```ts 0xFFFFFF ``` ##### See [#see-21] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control ##### Returns [#returns-52] `number` #### Set Signature [#set-signature-21] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-23] ###### value [#value-19] `ColorSource` ##### Returns [#returns-53] `void` #### Inherited from [#inherited-from-130] `PIXI.Sprite.tint` *** ### visible [#visible] #### Get Signature [#get-signature-26] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-86] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-59] ```ts true ``` ##### See [#see-22] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-54] `boolean` #### Set Signature [#set-signature-22] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-24] ###### value [#value-20] `boolean` ##### Returns [#returns-55] `void` #### Inherited from [#inherited-from-131] `PIXI.Sprite.visible` *** ### visualBounds [#visualbounds] #### Get Signature [#get-signature-27] \> **get** **visualBounds**(): `BoundsData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:205 The bounds of the sprite, taking into account the texture's trim area. ##### Example [#example-87] ````ts const texture = new Texture({ source: new TextureSource({ width: 300, height: 300 }), frame: new Rectangle(196, 66, 58, 56), trim: new Rectangle(4, 4, 58, 56), orig: new Rectangle(0, 0, 64, 64), rotate: 2, }); const sprite = new Sprite(texture); const visualBounds = sprite.visualBounds; // console.log(visualBounds); // { minX: -4, maxX: 62, minY: -4, maxY: 60 } ##### Returns `BoundsData` #### Inherited from `PIXI.Sprite.visualBounds` *** ### width #### Get Signature > **get** **width**(): `number` Defined in: node\_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:278 The width of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example ```ts // Set width directly sprite.width = 200; console.log(sprite.scale.x); // Scale adjusted to match width // Set width while preserving aspect ratio const ratio = sprite.height / sprite.width; sprite.width = 300; sprite.height = 300 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.width = sprite.texture.orig.width; ```` ##### Returns [#returns-56] `number` #### Set Signature [#set-signature-23] > **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:279 The width of the Container, setting this will actually modify the scale to achieve the value set. > \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. > \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) > as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-88] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Parameters [#parameters-25] ###### value [#value-21] `number` ##### Returns [#returns-57] `void` #### Inherited from [#inherited-from-132] `PIXI.Sprite.width` *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-28] > **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-89] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-23] [Container#localTransform](/pixi-vn/index/classes/VideoSprite#localtransform) For local space transform ##### Returns [#returns-58] `Matrix` #### Inherited from [#inherited-from-133] `PIXI.Sprite.worldTransform` *** ### x [#x-2] #### Get Signature [#get-signature-29] > **get** **x**(): `number` Defined in: [src/canvas/components/Sprite.ts:309](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L309) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-90] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-59] `number` #### Set Signature [#set-signature-24] > **set** **x**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:312](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L312) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-91] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-26] ###### value [#value-22] `number` ##### Returns [#returns-60] `void` #### Overrides [#overrides-2] `PIXI.Sprite.x` *** ### xAlign [#xalign] #### Get Signature [#get-signature-30] > **get** **xAlign**(): `number` Defined in: [src/canvas/components/Sprite.ts:168](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L168) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-61] `number` #### Set Signature [#set-signature-25] > **set** **xAlign**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:162](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L162) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-27] ###### value [#value-23] `number` ##### Returns [#returns-62] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-9] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#xalign) *** ### y [#y-2] #### Get Signature [#get-signature-31] > **get** **y**(): `number` Defined in: [src/canvas/components/Sprite.ts:317](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L317) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-92] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-63] `number` #### Set Signature [#set-signature-26] > **set** **y**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:320](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L320) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-93] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-28] ###### value [#value-24] `number` ##### Returns [#returns-64] `void` #### Overrides [#overrides-3] `PIXI.Sprite.y` *** ### yAlign [#yalign] #### Get Signature [#get-signature-32] > **get** **yAlign**(): `number` Defined in: [src/canvas/components/Sprite.ts:186](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L186) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-65] `number` #### Set Signature [#set-signature-27] > **set** **yAlign**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L180) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-29] ###### value [#value-25] `number` ##### Returns [#returns-66] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-10] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#yalign) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] > **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-30] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds-1] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-67] `void` #### Inherited from [#inherited-from-134] `PIXI.Sprite._getGlobalBoundsRecursive` *** ### \_onTouch()? [#_ontouch] > `optional` **\_onTouch**(`now`): `void` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:31 An optional callback for when an item is touched #### Parameters [#parameters-31] ##### now [#now] `number` #### Returns [#returns-68] `void` #### Inherited from [#inherited-from-135] `PIXI.Sprite._onTouch` *** ### addChild() [#addchild] > **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters-1] ##### U [#u] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-32] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-69] `U`\[`0`] The first child that was added #### Example [#example-94] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-24] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For adding at specific index #### Inherited from [#inherited-from-136] `PIXI.Sprite.addChild` *** ### addChildAt() [#addchildat] > **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-2] ##### U [#u-1] `U` *extends* `ContainerChild` #### Parameters [#parameters-33] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-70] `U` The child that was added #### Example [#example-95] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-25] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to the end * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For moving existing children #### Inherited from [#inherited-from-137] `PIXI.Sprite.addChildAt` *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] > **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-3] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-34] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options-1] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-71] `void` ##### Example [#example-96] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-138] `PIXI.Sprite.addEventListener` #### Call Signature [#call-signature-1] > **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-35] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-2] `AddListenerOptions` ##### Returns [#returns-72] `void` ##### Inherited from [#inherited-from-139] `PIXI.Sprite.addEventListener` *** ### addListener() [#addlistener] > **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-4] ##### T [#t] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-36] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-73] `this` #### Inherited from [#inherited-from-140] `PIXI.Sprite.addListener` *** ### collectRenderables() [#collectrenderables] > **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-37] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-74] `void` #### Inherited from [#inherited-from-141] `PIXI.Sprite.collectRenderables` *** ### collectRenderablesSimple() [#collectrenderablessimple] > **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:119 **`Internal`** Collects renderables for the view container. #### Parameters [#parameters-38] ##### instructionSet [#instructionset-1] `InstructionSet` The instruction set to collect renderables for. ##### renderer [#renderer-1] `Renderer` The renderer to collect renderables for. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer. #### Returns [#returns-75] `void` #### Inherited from [#inherited-from-142] `PIXI.Sprite.collectRenderablesSimple` *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] > **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-39] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-76] `void` #### Inherited from [#inherited-from-143] `PIXI.Sprite.collectRenderablesWithEffects` *** ### containsPoint() [#containspoint] > **containsPoint**(`point`): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:104 Checks if the object contains the given point in local coordinates. Uses the view's bounds for hit testing. #### Parameters [#parameters-40] ##### point [#point] `PointData` The point to check in local coordinates #### Returns [#returns-77] `boolean` True if the point is within the view's bounds #### Example [#example-97] ```ts // Basic point check const localPoint = { x: 50, y: 25 }; const contains = view.containsPoint(localPoint); console.log('Point is inside:', contains); ``` #### See [#see-26] * [ViewContainer#bounds](/pixi-vn/index/classes/VideoSprite#bounds) For the bounds used in hit testing * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting global coordinates to local #### Inherited from [#inherited-from-144] `PIXI.Sprite.containsPoint` *** ### destroy() [#destroy] > **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:222 Destroys this sprite renderable and optionally its texture. #### Parameters [#parameters-41] ##### options? [#options-3] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-78] `void` #### Example [#example-98] ```ts sprite.destroy(); sprite.destroy(true); sprite.destroy({ texture: true, textureSource: true }); ``` #### Inherited from [#inherited-from-145] `PIXI.Sprite.destroy` *** ### disableRenderGroup() [#disablerendergroup] > **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-79] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-146] `PIXI.Sprite.disableRenderGroup` *** ### dispatchEvent() [#dispatchevent] > **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this [Container](/pixi-vn/index/classes/Container) using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-42] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-80] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-99] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-147] `PIXI.Sprite.dispatchEvent` *** ### emit() [#emit] > **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-5] ##### T [#t-1] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-43] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`ContainerChild`> & `AnyEvent`>\[`Extract`\<`T`, keyof ContainerEvents\ | keyof AnyEvent>] #### Returns [#returns-81] `boolean` #### Inherited from [#inherited-from-148] `PIXI.Sprite.emit` *** ### enableRenderGroup() [#enablerendergroup] > **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-82] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-149] `PIXI.Sprite.enableRenderGroup` *** ### eventNames() [#eventnames] > **eventNames**(): (keyof ContainerEvents\ | keyof AnyEvent)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-83] (keyof ContainerEvents\ | keyof AnyEvent)\[] #### Inherited from [#inherited-from-150] `PIXI.Sprite.eventNames` *** ### getBounds() [#getbounds] > **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-44] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-2] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-84] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-100] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-27] * [Container#getLocalBounds](/pixi-vn/index/classes/VideoSprite#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-151] `PIXI.Sprite.getBounds` *** ### getChildAt() [#getchildat] > **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-6] ##### U [#u-2] `U` *extends* `ContainerChild` #### Parameters [#parameters-45] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-85] `U` The child at the given index #### Example [#example-101] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-28] * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-152] `PIXI.Sprite.getChildAt` *** ### getChildByLabel() [#getchildbylabel] > **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-46] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-86] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-102] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-29] * [Container#getChildrenByLabel](/pixi-vn/index/classes/Container#getchildrenbylabel) For finding all matches * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-153] `PIXI.Sprite.getChildByLabel` *** ### ~~getChildByName()~~ [#getchildbyname] > **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-47] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-87] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-30] Container#getChildByLabel #### Inherited from [#inherited-from-154] `PIXI.Sprite.getChildByName` *** ### getChildIndex() [#getchildindex] > **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-48] ##### child [#child-1] `ContainerChild` The Container instance to identify #### Returns [#returns-88] `number` The index position of the child container #### Example [#example-103] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-3] If child is not in this container #### See [#see-31] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For changing index * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access #### Inherited from [#inherited-from-155] `PIXI.Sprite.getChildIndex` *** ### getChildrenByLabel() [#getchildrenbylabel] > **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-49] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-89] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-104] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-32] * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For finding first match * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-156] `PIXI.Sprite.getChildrenByLabel` *** ### getFastGlobalBounds() [#getfastglobalbounds] > **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-50] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-3] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-90] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-157] `PIXI.Sprite.getFastGlobalBounds` *** ### getGlobalAlpha() [#getglobalalpha] > **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-51] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-91] `number` The resulting alpha value (between 0 and 1) #### Example [#example-105] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-158] `PIXI.Sprite.getGlobalAlpha` *** ### getGlobalPosition() [#getglobalposition] > **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-52] ##### point? [#point-1] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-92] `Point` The updated point #### Example [#example-106] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-33] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For converting specific points * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting to local space #### Inherited from [#inherited-from-159] `PIXI.Sprite.getGlobalPosition` *** ### getGlobalTint() [#getglobaltint] > **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-53] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-93] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-107] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-160] `PIXI.Sprite.getGlobalTint` *** ### getGlobalTransform() [#getglobaltransform] > **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-54] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-94] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-108] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-161] `PIXI.Sprite.getGlobalTransform` *** ### getLocalBounds() [#getlocalbounds] > **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-95] `Bounds` The bounding area #### Example [#example-109] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-34] * [Container#getBounds](/pixi-vn/index/classes/VideoSprite#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-162] `PIXI.Sprite.getLocalBounds` *** ### getSize() [#getsize] > **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:322 Retrieves the size of the Sprite as a \[Size]Size object based on the texture dimensions and scale. This is faster than getting width and height separately as it only calculates the bounds once. #### Parameters [#parameters-55] ##### out? [#out-1] `Size` Optional object to store the size in, to avoid allocating a new object #### Returns [#returns-96] `Size` The size of the Sprite #### Example [#example-110] ```ts // Basic size retrieval const sprite = new Sprite(Texture.from('sprite.png')); const size = sprite.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; sprite.getSize(reuseSize); ``` #### See [#see-35] * [Sprite#width](#width) For getting just the width * [Sprite#height](#height) For getting just the height * [Sprite#setSize](#setsize) For setting both width and height #### Inherited from [#inherited-from-163] `PIXI.Sprite.getSize` *** ### listenerCount() [#listenercount] > **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-56] ##### event [#event-2] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-97] `number` #### Inherited from [#inherited-from-164] `PIXI.Sprite.listenerCount` *** ### listeners() [#listeners] > **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-7] ##### T [#t-2] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-57] ##### event [#event-3] `T` #### Returns [#returns-98] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-165] `PIXI.Sprite.listeners` *** ### off() [#off] > **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-8] ##### T [#t-3] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-58] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-99] `this` #### Inherited from [#inherited-from-166] `PIXI.Sprite.off` *** ### on() [#on] > **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/Sprite.ts:100](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L100) Add a listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-4] `T` *extends* `symbol` | `object` & `string` | keyof ContainerEvents\ #### Parameters [#parameters-59] ##### event [#event-5] `T` ##### fn [#fn-2] (...`args`) => `void` ##### context? [#context-2] `any` #### Returns [#returns-100] `this` #### Implementation of [#implementation-of-11] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`on`](/pixi-vn/index/interfaces/ListenerExtension#on) #### Overrides [#overrides-4] `PIXI.Sprite.on` *** ### once() [#once-1] > **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-10] ##### T [#t-5] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-60] ##### event [#event-6] `T` ##### fn [#fn-3] (...`args`) => `void` ##### context? [#context-3] `any` #### Returns [#returns-101] `this` #### Inherited from [#inherited-from-167] `PIXI.Sprite.once` *** ### reloadPosition() [#reloadposition] > `protected` **reloadPosition**(): `void` Defined in: [src/canvas/components/Sprite.ts:262](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L262) #### Returns [#returns-102] `void` *** ### removeAllListeners() [#removealllisteners] > **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-61] ##### event? [#event-7] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-103] `this` #### Inherited from [#inherited-from-168] `PIXI.Sprite.removeAllListeners` *** ### removeChild() [#removechild] > **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-11] ##### U [#u-3] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-62] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-104] `U`\[`0`] The first child that was removed #### Example [#example-111] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-36] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-169] `PIXI.Sprite.removeChild` *** ### removeChildAt() [#removechildat] > **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-12] ##### U [#u-4] `U` *extends* `ContainerChild` #### Parameters [#parameters-63] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-105] `U` The child that was removed #### Example [#example-112] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-4] If index is out of bounds #### See [#see-37] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-170] `PIXI.Sprite.removeChildAt` *** ### removeChildren() [#removechildren] > **removeChildren**(`beginIndex?`, `endIndex?`): `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-64] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-106] `ContainerChild`\[] List of removed children #### Example [#example-113] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-5] If begin/end indexes are invalid #### See [#see-38] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children #### Inherited from [#inherited-from-171] `PIXI.Sprite.removeChildren` *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-2] > **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-13] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-65] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-4] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-107] `void` ##### Inherited from [#inherited-from-172] `PIXI.Sprite.removeEventListener` #### Call Signature [#call-signature-3] > **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-66] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-5] `RemoveListenerOptions` ##### Returns [#returns-108] `void` ##### Inherited from [#inherited-from-173] `PIXI.Sprite.removeEventListener` *** ### removeFromParent() [#removefromparent] > **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-109] `void` #### Example [#example-114] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-39] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a new parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For parent removing children #### Inherited from [#inherited-from-174] `PIXI.Sprite.removeFromParent` *** ### removeListener() [#removelistener] > **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-14] ##### T [#t-6] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-67] ##### event [#event-8] `T` ##### fn? [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-110] `this` #### Inherited from [#inherited-from-175] `PIXI.Sprite.removeListener` *** ### reparentChild() [#reparentchild] > **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-5] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-68] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-111] `U`\[`0`] The first child that was reparented #### Example [#example-115] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-40] * [Container#reparentChildAt](/pixi-vn/index/classes/Container#reparentchildat) For index-specific reparenting * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For simple parenting #### Inherited from [#inherited-from-176] `PIXI.Sprite.reparentChild` *** ### reparentChildAt() [#reparentchildat] > **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-16] ##### U [#u-6] `U` *extends* `ContainerChild` #### Parameters [#parameters-69] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-112] `U` The reparented child #### Example [#example-116] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-6] If index is out of bounds #### See [#see-41] * [Container#reparentChild](/pixi-vn/index/classes/Container#reparentchild) For appending reparented children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-177] `PIXI.Sprite.reparentChildAt` *** ### replaceChild() [#replacechild] > **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-17] ##### U [#u-7] `U` *extends* `ContainerChild` ##### T [#t-7] `T` *extends* `ContainerChild` #### Parameters [#parameters-70] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-113] `void` #### Inherited from [#inherited-from-178] `PIXI.Sprite.replaceChild` *** ### setChildIndex() [#setchildindex] > **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-71] ##### child [#child-4] `ContainerChild` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-114] `void` #### Example [#example-117] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-7] If index is out of bounds #### Throws [#throws-8] If child is not in container #### See [#see-42] * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current index * [Container#swapChildren](/pixi-vn/index/classes/Container#swapchildren) For swapping positions #### Inherited from [#inherited-from-179] `PIXI.Sprite.setChildIndex` *** ### setFromMatrix() [#setfrommatrix] > **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-72] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-115] `void` #### Example [#example-118] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-43] * [Container#updateTransform](/pixi-vn/index/classes/Container#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-180] `PIXI.Sprite.setFromMatrix` *** ### setMask() [#setmask] > **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-73] ##### options [#options-6] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-116] `void` #### Example [#example-119] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-44] * [Container#mask](/pixi-vn/index/classes/VideoSprite#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-181] `PIXI.Sprite.setMask` *** ### setMemory() [#setmemory] > **setMemory**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/Sprite.ts:87](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L87) This method set the memory of the canvas element. #### Parameters [#parameters-74] ##### value [#value-26] [`SpriteMemory`](/pixi-vn/index/interfaces/SpriteMemory) | `Memory` #### Returns [#returns-117] `Promise`\<`void`> #### Throws [#throws-9] when the method is not overridden in the subclass. #### Implementation of [#implementation-of-12] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`setMemory`](/pixi-vn/index/classes/CanvasBaseItem#setmemory) *** ### setSize() [#setsize] > **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:353 Sets the size of the Sprite to the specified width and height. This is faster than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-75] ##### value [#value-27] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a Size object ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided #### Returns [#returns-118] `void` #### Example [#example-120] ```ts // Basic size setting const sprite = new Sprite(Texture.from('sprite.png')); sprite.setSize(100, 200); // Width: 100, Height: 200 // Set uniform size sprite.setSize(100); // Sets both width and height to 100 // Set size with object sprite.setSize({ width: 200, height: 300 }); // Reset to texture size sprite.setSize( sprite.texture.orig.width, sprite.texture.orig.height ); ``` #### See [#see-45] * [Sprite#width](#width) For setting width only * [Sprite#height](#height) For setting height only * [Sprite#texture](#texture) For the source dimensions #### Inherited from [#inherited-from-182] `PIXI.Sprite.setSize` *** ### swapChildren() [#swapchildren] > **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-18] ##### U [#u-8] `U` *extends* `ContainerChild` #### Parameters [#parameters-76] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-119] `void` #### Example [#example-121] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-10] If either child is not in container #### See [#see-46] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For direct index placement * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current positions #### Inherited from [#inherited-from-183] `PIXI.Sprite.swapChildren` *** ### toGlobal() [#toglobal] > **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-19] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-77] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-2] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-120] `P` The global position #### Example [#example-122] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-47] * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-184] `PIXI.Sprite.toGlobal` *** ### toLocal() [#tolocal] > **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-20] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-78] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-3] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-121] `P` A point object representing the position in local space #### Example [#example-123] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-48] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-185] `PIXI.Sprite.toLocal` *** ### unload() [#unload] > **unload**(): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:110 Unloads the GPU data from the view. #### Returns [#returns-122] `void` #### Inherited from [#inherited-from-186] `PIXI.Sprite.unload` *** ### updateLocalTransform() [#updatelocaltransform] > **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-123] `void` #### Inherited from [#inherited-from-187] `PIXI.Sprite.updateLocalTransform` *** ### updateTransform() [#updatetransform] > **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-79] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-124] `this` This container, for chaining #### Example [#example-124] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-49] * [Container#setFromMatrix](/pixi-vn/index/classes/Container#setfrommatrix) For matrix-based transforms * [Container#position](/pixi-vn/index/interfaces/CanvasBaseInterface#position) For direct position access #### Inherited from [#inherited-from-188] `PIXI.Sprite.updateTransform` *** ### from() [#from-1] > `static` **from**(`source`, `skipCache?`): `Sprite`\<`any`> Defined in: [src/canvas/components/Sprite.ts:90](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L90) Creates a new sprite based on a source texture, image, video, or canvas element. This is a convenience method that automatically creates and manages textures. #### Parameters [#parameters-80] ##### source [#source] `Texture`\<`TextureSource`\<`any`>> | [`TextureSourceLike`](/pixi-vn/index/type-aliases/TextureSourceLike) The source to create the sprite from. Can be a path to an image, a texture, or any valid texture source (canvas, video, etc.) ##### skipCache? [#skipcache] `boolean` Whether to skip adding to the texture cache when creating a new texture #### Returns [#returns-125] `Sprite`\<`any`> A new sprite based on the source #### Example [#example-125] ```ts // Create from path or URL const sprite = Sprite.from('assets/image.png'); // Create from existing texture const sprite = Sprite.from(texture); // Create from canvas const canvas = document.createElement('canvas'); const sprite = Sprite.from(canvas, true); // Skip caching new texture ``` #### See [#see-50] * Texture.from For texture creation details * [Assets](/pixi-vn/index/variables/Assets) For asset loading and management #### Overrides [#overrides-5] `PIXI.Sprite.from` *** ### ~~mixin()~~ [#mixin] \> `static` **mixin**(`source`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:605 Mixes all enumerable properties and methods from a source object to Container. #### Parameters [#parameters-81] ##### source [#source-1] `Dict`\<`any`> The source of properties and methods to mix in. #### Returns [#returns-126] `void` #### Deprecated [#deprecated-3] since 8.8.0 #### Inherited from [#inherited-from-189] `PIXI.Sprite.mixin` # Class: StoredClassModel (/pixi-vn/index/classes/StoredClassModel) Defined in: [src/storage/classes/StoredClassModel.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L33) StoredClassModel is a abstract class that contains the methods to store a class in the game. I suggest you extend this class to create your own stored class. ## Example [#example] ```ts export class CharacterBaseModel extends StoredClassModel implements CharacterBaseModelProps { constructor(id: string, props: CharacterBaseModelProps) { super("___character___", id) this.defaultName = props.name this.defaultSurname = props.surname } readonly defaultName: string = "" get name(): string { return this.getStorageProperty("name") || this.defaultName } set name(value: string) { this.setStorageProperty("name", value) } readonly defaultSurname?: string get surname(): string | undefined { return this.getStorageProperty("surname") || this.defaultSurname } set surname(value: string | undefined) { this.setStorageProperty("surname", value) } } ``` ## Extended by [#extended-by] * [`CharacterStoredClass`](/pixi-vn/index/classes/CharacterStoredClass) ## Constructors [#constructors] ### Constructor [#constructor] \> **new StoredClassModel**(`categoryId`, `id`): `StoredClassModel` Defined in: [src/storage/classes/StoredClassModel.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L38) #### Parameters [#parameters] ##### categoryId [#categoryid] `string` The id of the category. For example if you are storing a character class, you can use "characters" as categoryId. so all instances of the character class will be stored in the "characters" category. ##### id [#id] `string` The id of instance of the class. This id must be unique for the category. #### Returns [#returns] `StoredClassModel` ## Properties [#properties] ### id [#id-1] \> `readonly` **id**: `string` Defined in: [src/storage/classes/StoredClassModel.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L63) Is id of the stored class. is unique for this class. ## Methods [#methods] ### getStorageProperty() [#getstorageproperty] \> `protected` **getStorageProperty**\<`T`>(`propertyName`, `idToUse?`): `T` | `undefined` Defined in: [src/storage/classes/StoredClassModel.ts:80](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L80) Get a property from the storage. #### Type Parameters [#type-parameters] ##### T [#t] `T` = [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) #### Parameters [#parameters-1] ##### propertyName [#propertyname] `string` The name of the property to get. ##### idToUse? [#idtouse] `string` = `...` The id of the instance to get the property. #### Returns [#returns-1] `T` | `undefined` The value of the property. If the property is not found, returns undefined. #### Default [#default] ```ts this.id ``` *** ### migrateOldStorage() [#migrateoldstorage] \> `protected` **migrateOldStorage**(`oldCategoryId?`): `void` Defined in: [src/storage/classes/StoredClassModel.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L43) #### Parameters [#parameters-2] ##### oldCategoryId? [#oldcategoryid] `string` = `...` #### Returns [#returns-2] `void` *** ### setStorageProperty() [#setstorageproperty] \> `protected` **setStorageProperty**\<`T`>(`propertyName`, `value`): `void` Defined in: [src/storage/classes/StoredClassModel.ts:71](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/classes/StoredClassModel.ts#L71) Update a property in the storage. #### Type Parameters [#type-parameters-1] ##### T [#t-1] `T` The type of the value to set. (Deprecated, it is not necessary to specify the type of the value, it will be inferred from the value) #### Parameters [#parameters-3] ##### propertyName [#propertyname-1] `string` The name of the property to set. ##### value [#value] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The value to set. If is undefined, the property will be removed from the storage. #### Returns [#returns-3] `void` # Class: Text (/pixi-vn/index/classes/Text) Defined in: [src/canvas/components/Text.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L34) This class is a extension of the [PIXI.Text class](https://pixijs.com/8.x/examples/text/pixi-text), it has the same properties and methods, but it has the ability to be saved and loaded by the Pixi’VN library. ## Example [#example] ```ts const text = new Text(); text.text = "Hello World" canvas.add("text", text); ``` ## Extends [#extends] * `Text` ## Implements [#implements] * [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<[`TextMemory`](/pixi-vn/index/interfaces/TextMemory)> * [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension) * [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension) ## Constructors [#constructors] ### Constructor [#constructor] \> **new Text**(`options?`): `Text` Defined in: [src/canvas/components/Text.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L38) #### Parameters [#parameters] ##### options? [#options] [`TextOptions`](/pixi-vn/index/interfaces/TextOptions) #### Returns [#returns] `Text` #### Overrides [#overrides] `PIXI.Text.constructor` ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] `PIXI.Text.__devtoolIgnore` *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] `PIXI.Text.__devtoolIgnoreChildren` *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] `PIXI.Text.__devtoolLocked` *** ### \_anchor [#_anchor] \> **\_anchor**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:241 **`Internal`** #### Inherited from [#inherited-from-3] `Text`.[`_anchor`](#_anchor) *** ### \_autoResolution [#_autoresolution] \> **\_autoResolution**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:245 **`Internal`** #### Inherited from [#inherited-from-4] `Text`.[`_autoResolution`](#_autoresolution) *** ### \_bounds [#_bounds] \> `protected` **\_bounds**: `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:59 #### Inherited from [#inherited-from-5] `PIXI.Text._bounds` *** ### \_boundsDirty [#_boundsdirty] \> `protected` **\_boundsDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:60 #### Inherited from [#inherited-from-6] `PIXI.Text._boundsDirty` *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-7] `PIXI.Text._cx` *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-8] `PIXI.Text._cy` *** ### \_didTextUpdate [#_didtextupdate] \> **\_didTextUpdate**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:249 **`Internal`** #### Inherited from [#inherited-from-9] `Text`.[`_didTextUpdate`](#_didtextupdate) *** ### \_gcData? [#_gcdata] \> `optional` **\_gcData?**: `GCData` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:54 **`Internal`** #### Inherited from [#inherited-from-10] `PIXI.Text._gcData` *** ### \_gcLastUsed [#_gclastused] \> **\_gcLastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:58 **`Internal`** #### Inherited from [#inherited-from-11] `PIXI.Text._gcLastUsed` *** ### \_gpuData [#_gpudata] \> **\_gpuData**: `Record`\<`number`, `GPU_DATA`> Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:52 **`Internal`** #### Inherited from [#inherited-from-12] `PIXI.Text._gpuData` *** ### \_lastUsed [#_lastused] \> **\_lastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:50 **`Internal`** #### Inherited from [#inherited-from-13] `PIXI.Text._lastUsed` *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-14] `PIXI.Text._pivot` *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-15] `PIXI.Text._position` *** ### \_resolution [#_resolution] \> **\_resolution**: `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:243 **`Internal`** #### Inherited from [#inherited-from-16] `Text`.[`_resolution`](#_resolution) *** ### \_roundPixels [#_roundpixels] \> **\_roundPixels**: `0` | `1` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:48 **`Internal`** #### Inherited from [#inherited-from-17] `PIXI.Text._roundPixels` *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-18] `PIXI.Text._scale` *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-19] `PIXI.Text._skew` *** ### \_style [#_style] \> **\_style**: `TextStyle` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:247 **`Internal`** #### Inherited from [#inherited-from-20] `PIXI.Text._style` *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-21] `PIXI.Text._sx` *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-22] `PIXI.Text._sy` *** ### \_text [#_text] \> `protected` **\_text**: `string` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:250 #### Inherited from [#inherited-from-23] `Text`.[`_text`](#_text) *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-24] `PIXI.Text._zIndex` *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-25] `PIXI.Text.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-26] `PIXI.Text.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-27] `PIXI.Text.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-28] `PIXI.Text.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-29] `PIXI.Text.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-30] `PIXI.Text.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-7] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-31] `PIXI.Text.accessibleType` *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:46 **`Internal`** #### Inherited from [#inherited-from-32] `PIXI.Text.allowChildren` *** ### autoGarbageCollect [#autogarbagecollect] \> **autoGarbageCollect**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:56 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-33] `PIXI.Text.autoGarbageCollect` *** ### autoGenerateMipmaps? [#autogeneratemipmaps] \> `optional` **autoGenerateMipmaps?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:159 Whether to generate mipmaps for the text texture. Improves rendering quality when the text is scaled down. \> \[!NOTE] Text is not updated when this property is updated, \> you must update the text manually by calling `text.onViewUpdate()` #### Default [#default-7] ```ts undefined - Falls back to TextureSource.defaultOptions.autoGenerateMipmaps ``` #### Inherited from [#inherited-from-34] `PIXI.Text.autoGenerateMipmaps` *** ### batched [#batched] \> **batched**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:239 **`Internal`** #### Inherited from [#inherited-from-35] `Text`.[`batched`](#batched) *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-8] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-36] `PIXI.Text.boundsArea` *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-37] `PIXI.Text.cacheAsBitmap` *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters-1] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns-1] `void` #### Example [#example-9] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](/pixi-vn/index/classes/VideoSprite#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-38] `PIXI.Text.cacheAsTexture` *** ### canBundle [#canbundle] \> `readonly` **canBundle**: `true` = `true` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:44 **`Internal`** #### Inherited from [#inherited-from-39] `PIXI.Text.canBundle` *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-10] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-40] `PIXI.Text.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-11] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-8] ```ts false ``` #### Inherited from [#inherited-from-41] `PIXI.Text.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-12] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-9] ```ts true ``` #### Inherited from [#inherited-from-42] `PIXI.Text.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-13] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-10] ```ts null ``` #### Inherited from [#inherited-from-43] `PIXI.Text.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-14] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-11] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-44] `PIXI.Text.cursor` *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-45] `PIXI.Text.depthOfChildModified` *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-15] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-12] ```ts false ``` #### See [#see-3] [Container#destroy](/pixi-vn/index/classes/Container#destroy) For destroying objects #### Inherited from [#inherited-from-46] `PIXI.Text.destroyed` *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-47] `PIXI.Text.effects` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-48] `PIXI.Text.eventMode` *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-17] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * [Container#filters](/pixi-vn/index/classes/VideoSprite#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-49] `PIXI.Text.filterArea` *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-50] `PIXI.Text.globalDisplayStatus` *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-51] `PIXI.Text.groupAlpha` *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-52] `PIXI.Text.groupBlendMode` *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-53] `PIXI.Text.groupColor` *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-54] `PIXI.Text.groupColorAlpha` *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-55] `PIXI.Text.groupTransform` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-18] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-56] `PIXI.Text.hitArea` *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-19] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-57] `PIXI.Text.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-13] ```ts true ``` #### Example [#example-20] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-58] `PIXI.Text.interactiveChildren` *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-21] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * [Container#cacheAsTexture](/pixi-vn/index/classes/Container#cacheastexture) For enabling caching * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cache #### Inherited from [#inherited-from-59] `PIXI.Text.isCachedAsTexture` *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-3] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-22] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-60] `PIXI.Text.isInteractive` *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-61] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-62] `PIXI.Text.layerParentId` *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-63] `PIXI.Text.localAlpha` *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-64] `PIXI.Text.localBlendMode` *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-65] `PIXI.Text.localColor` *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-66] `PIXI.Text.localDisplayStatus` *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-23] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](/pixi-vn/index/classes/VideoSprite#worldtransform) For global transform * [Container#groupTransform](/pixi-vn/index/classes/VideoSprite#grouptransform) For render group transform #### Inherited from [#inherited-from-67] `PIXI.Text.localTransform` *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a [Sprite](/pixi-vn/index/classes/Sprite) object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-24] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * [Sprite](/pixi-vn/index/classes/Sprite) For texture-based masks * [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-68] `PIXI.Text.mask` *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-69] `PIXI.Text.name` *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-70] `PIXI.Text.onclick` *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-71] `PIXI.Text.oncontextmenu` *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) = `{}` Defined in: [src/canvas/components/Text.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L63) #### Implementation of [#implementation-of] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`onEventsHandlers`](/pixi-vn/index/interfaces/ListenerExtension#oneventshandlers) *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-72] `PIXI.Text.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-73] `PIXI.Text.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-74] `PIXI.Text.onglobaltouchmove` *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-75] `PIXI.Text.onmousedown` *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-76] `PIXI.Text.onmouseenter` *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-77] `PIXI.Text.onmouseleave` *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-78] `PIXI.Text.onmousemove` *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-79] `PIXI.Text.onmouseout` *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-80] `PIXI.Text.onmouseover` *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-81] `PIXI.Text.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-82] `PIXI.Text.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-83] `PIXI.Text.onpointercancel` *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-84] `PIXI.Text.onpointerdown` *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-85] `PIXI.Text.onpointerenter` *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-86] `PIXI.Text.onpointerleave` *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-87] `PIXI.Text.onpointermove` *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-88] `PIXI.Text.onpointerout` *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-89] `PIXI.Text.onpointerover` *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-90] `PIXI.Text.onpointertap` *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-91] `PIXI.Text.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-92] `PIXI.Text.onpointerupoutside` *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-48] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-93] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-94] `PIXI.Text.onrightclick` *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-95] `PIXI.Text.onrightdown` *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-96] `PIXI.Text.onrightup` *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-97] `PIXI.Text.onrightupoutside` *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-98] `PIXI.Text.ontap` *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-99] `PIXI.Text.ontouchcancel` *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-100] `PIXI.Text.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-101] `PIXI.Text.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-102] `PIXI.Text.ontouchmove` *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-103] `PIXI.Text.ontouchstart` *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-59] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-104] `PIXI.Text.onwheel` *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-60] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-105] `PIXI.Text.parent` *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-106] `PIXI.Text.parentRenderLayer` *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` = `CANVAS_TEXT_ID` Defined in: [src/canvas/components/Text.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L50) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Implementation of [#implementation-of-1] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`pixivnId`](/pixi-vn/index/classes/CanvasBaseItem#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-107] `PIXI.Text.relativeGroupTransform` *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:145 **`Internal`** #### Inherited from [#inherited-from-108] `PIXI.Text.renderPipeId` *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-61] ```ts container.sortableChildren = true; ``` #### Default [#default-50] ```ts false ``` #### Inherited from [#inherited-from-109] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-4] `void` #### Example [#example-62] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling automatic sorting * [Container#zIndex](/pixi-vn/index/classes/VideoSprite#zindex) For setting child order #### Inherited from [#inherited-from-110] `PIXI.Text.sortChildren` *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-51] ```ts false @internal ``` #### Inherited from [#inherited-from-111] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-52] ```ts 0 ``` #### Example [#example-63] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-112] `PIXI.Text.tabIndex` *** ### textureStyle? [#texturestyle] \> `optional` **textureStyle?**: `TextureStyle` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:151 Optional texture style to use for the text. Only `scaleMode` is read, when a new texture is generated for the text (a text, style or resolution change). #### Advanced [#advanced-7] #### Inherited from [#inherited-from-113] `PIXI.Text.textureStyle` *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-114] `PIXI.Text.uid` *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-5] `void` #### Example [#example-64] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-115] `PIXI.Text.updateCacheTexture` *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-116] `PIXI.Text.updateTick` *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-65] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-53] ```ts 0 ``` #### Inherited from [#inherited-from-117] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) *** ### prefixed [#prefixed] \> `static` **prefixed**: `string` | `boolean` Defined in: node_modules/eventemitter3/index.d.ts:9 #### Inherited from [#inherited-from-118] `PIXI.Text.prefixed` ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Text.ts:103](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L103) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-6] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: [src/canvas/components/Text.ts:91](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L91) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-2] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-7] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-2] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#align) *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-66] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-54] ```ts 1 ``` ##### See [#see-14] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control ##### Returns [#returns-8] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-3] ###### value [#value-1] `number` ##### Returns [#returns-9] `void` #### Inherited from [#inherited-from-119] `PIXI.Text.alpha` *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:278 The anchor point of the text that controls the origin point for positioning and rotation. Can be a number (same value for x/y) or a PointData object. * (0,0) is top-left * (0.5,0.5) is center * (1,1) is bottom-right ```ts // Set anchor to center const text = new Text({ text: 'Hello Pixi!', anchor: 0.5 // Same as { x: 0.5, y: 0.5 } }); // Set anchor to top-left const text2 = new Text({ text: 'Hello Pixi!', anchor: { x: 0, y: 0 } // Top-left corner }); // Set anchor to bottom-right const text3 = new Text({ text: 'Hello Pixi!', anchor: { x: 1, y: 1 } // Bottom-right corner }); ``` ##### Default [#default-55] ```ts { x: 0, y: 0 } ``` ##### Returns [#returns-10] `ObservablePoint` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:279 ##### Parameters [#parameters-4] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-11] `void` #### Inherited from [#inherited-from-120] `PIXI.Text.anchor` *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-67] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-12] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-5] ###### value [#value-3] `number` ##### Returns [#returns-13] `void` #### Inherited from [#inherited-from-121] `PIXI.Text.angle` *** ### blendMode [#blendmode] #### Get Signature [#get-signature-4] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-68] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-56] ```ts 'normal' ``` ##### See [#see-15] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments ##### Returns [#returns-14] `BLEND_MODES` #### Set Signature [#set-signature-4] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-6] ###### value [#value-4] `BLEND_MODES` ##### Returns [#returns-15] `void` #### Inherited from [#inherited-from-122] `PIXI.Text.blendMode` *** ### bounds [#bounds] #### Get Signature [#get-signature-5] \> **get** **bounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:74 The local bounds of the view in its own coordinate space. Bounds are automatically updated when the view's content changes. ##### Example [#example-69] ```ts // Get bounds dimensions const bounds = view.bounds; console.log(`Width: ${bounds.maxX - bounds.minX}`); console.log(`Height: ${bounds.maxY - bounds.minY}`); ``` ##### See [#see-16] Bounds For bounds operations ##### Returns [#returns-16] `Bounds` The rectangular bounds of the view #### Inherited from [#inherited-from-123] `PIXI.Text.bounds` *** ### filters [#filters] #### Get Signature [#get-signature-6] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-70] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-17] Filter For filter base class ##### Returns [#returns-17] readonly `Filter`\[] #### Set Signature [#set-signature-5] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-71] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-18] Filter For filter base class ##### Parameters [#parameters-7] ###### value [#value-5] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-18] `void` #### Inherited from [#inherited-from-124] `PIXI.Text.filters` *** ### height [#height] #### Get Signature [#get-signature-7] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:401 The height of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example [#example-72] ```ts // Set height directly texture.height = 200; console.log(texture.scale.y); // Scale adjusted to match height // For better performance when setting both width and height texture.setSize(300, 400); // Avoids recalculating bounds twice ``` ##### Returns [#returns-19] `number` #### Set Signature [#set-signature-6] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:402 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-73] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Parameters [#parameters-8] ###### value [#value-6] `number` ##### Returns [#returns-20] `void` #### Inherited from [#inherited-from-125] `PIXI.Text.height` *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-8] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-8] ##### Returns [#returns-21] `boolean` #### Inherited from [#inherited-from-126] `PIXI.Text.isRenderable` *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-9] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-9] ##### Returns [#returns-22] `boolean` #### Set Signature [#set-signature-7] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-9] ###### value [#value-7] `boolean` ##### Returns [#returns-23] `void` #### Inherited from [#inherited-from-127] `PIXI.Text.isRenderGroup` *** ### memory [#memory] #### Get Signature [#get-signature-10] \> **get** **memory**(): [`TextMemory`](/pixi-vn/index/interfaces/TextMemory) Defined in: [src/canvas/components/Text.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L51) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-24] [`TextMemory`](/pixi-vn/index/interfaces/TextMemory) #### Implementation of [#implementation-of-3] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`memory`](/pixi-vn/index/classes/CanvasBaseItem#memory) *** ### origin [#origin] #### Get Signature [#get-signature-11] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-74] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-25] `ObservablePoint` #### Set Signature [#set-signature-8] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-10] ###### value [#value-8] `number` | `PointData` ##### Returns [#returns-26] `void` #### Inherited from [#inherited-from-128] `PIXI.Text.origin` *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-12] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Text.ts:174](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L174) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-27] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-9] \> **set** **percentagePosition**(`value`): `void` Defined in: [src/canvas/components/Text.ts:162](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L162) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-11] ###### value [#value-9] `number` | `Partial`\<`PointData`> ##### Returns [#returns-28] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-4] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentageposition) *** ### percentageX [#percentagex] #### Get Signature [#get-signature-13] \> **get** **percentageX**(): `number` Defined in: [src/canvas/components/Text.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L180) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-29] `number` #### Set Signature [#set-signature-10] \> **set** **percentageX**(`_value`): `void` Defined in: [src/canvas/components/Text.ts:183](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L183) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-12] ###### \_value [#_value] `number` ##### Returns [#returns-30] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-5] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagex) *** ### percentageY [#percentagey] #### Get Signature [#get-signature-14] \> **get** **percentageY**(): `number` Defined in: [src/canvas/components/Text.ts:189](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L189) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-31] `number` #### Set Signature [#set-signature-11] \> **set** **percentageY**(`_value`): `void` Defined in: [src/canvas/components/Text.ts:192](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L192) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-13] ###### \_value [#_value-1] `number` ##### Returns [#returns-32] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Implementation of [#implementation-of-6] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#percentagey) *** ### pivot [#pivot] #### Get Signature [#get-signature-15] \> **get** **pivot**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1023 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-75] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-33] `ObservablePoint` #### Set Signature [#set-signature-12] \> **set** **pivot**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1024 ##### Parameters [#parameters-14] ###### value [#value-10] `number` | `PointData` ##### Returns [#returns-34] `void` #### Inherited from [#inherited-from-129] `PIXI.Text.pivot` *** ### position [#position] #### Get Signature [#get-signature-16] \> **get** **position**(): `ObservablePoint` Defined in: [src/canvas/components/Text.ts:264](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L264) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-76] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-3] 4.0.0 ##### Returns [#returns-35] `ObservablePoint` #### Set Signature [#set-signature-13] \> **set** **position**(`value`): `void` Defined in: [src/canvas/components/Text.ts:267](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L267) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-77] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Parameters [#parameters-15] ###### value [#value-11] `ObservablePoint` ##### Returns [#returns-36] `void` #### Overrides [#overrides-1] `PIXI.Text.position` *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-17] \> **get** **positionInfo**(): `object` Defined in: [src/canvas/components/Text.ts:206](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L206) ##### Returns [#returns-37] `object` ###### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-14] \> **set** **positionInfo**(`value`): `void` Defined in: [src/canvas/components/Text.ts:216](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L216) ##### Parameters [#parameters-16] ###### value [#value-12] ###### type? [#type-1] `"pixel"` | `"percentage"` | `"align"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-38] `void` #### Implementation of [#implementation-of-7] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionInfo`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positioninfo) *** ### positionType [#positiontype] #### Get Signature [#get-signature-18] \> **get** **positionType**(): `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/Text.ts:198](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L198) ##### Returns [#returns-39] `"pixel"` | `"percentage"` | `"align"` #### Implementation of [#implementation-of-8] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`positionType`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#positiontype) *** ### renderable [#renderable] #### Get Signature [#get-signature-19] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-78] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-57] ```ts true ``` ##### See [#see-19] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-40] `boolean` #### Set Signature [#set-signature-15] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-17] ###### value [#value-13] `boolean` ##### Returns [#returns-41] `void` #### Inherited from [#inherited-from-130] `PIXI.Text.renderable` *** ### resolution [#resolution] #### Get Signature [#get-signature-20] \> **get** **resolution**(): `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:327 ##### Returns [#returns-42] `number` #### Set Signature [#set-signature-16] \> **set** **resolution**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:326 The resolution/device pixel ratio for rendering. Higher values result in sharper text at the cost of performance. Set to null for auto-resolution based on device. ##### Example [#example-79] ```ts const text = new Text({ text: 'Hello Pixi!', resolution: 2 // High DPI for sharper text }); const autoResText = new Text({ text: 'Auto Resolution', resolution: null // Use device's pixel ratio }); ``` ##### Default [#default-58] ```ts null ``` ##### Parameters [#parameters-18] ###### value [#value-14] `number` ##### Returns [#returns-43] `void` #### Inherited from [#inherited-from-131] `PIXI.Text.resolution` *** ### rotation [#rotation] #### Get Signature [#get-signature-21] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-80] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-44] `number` #### Set Signature [#set-signature-17] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-19] ###### value [#value-15] `number` ##### Returns [#returns-45] `void` #### Inherited from [#inherited-from-132] `PIXI.Text.rotation` *** ### roundPixels [#roundpixels] #### Get Signature [#get-signature-22] \> **get** **roundPixels**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:86 Whether or not to round the x/y position of the sprite. ##### Example [#example-81] ```ts // Enable pixel rounding for crisp rendering view.roundPixels = true; ``` ##### Default [#default-59] ```ts false ``` ##### Returns [#returns-46] `boolean` #### Set Signature [#set-signature-18] \> **set** **roundPixels**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:87 Whether or not to round the x/y position of the object. ##### Parameters [#parameters-20] ###### value [#value-16] `boolean` ##### Returns [#returns-47] `void` #### Inherited from [#inherited-from-133] `PIXI.Text.roundPixels` *** ### scale [#scale] #### Get Signature [#get-signature-23] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-82] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-5] 4.0.0 ##### Returns [#returns-48] `ObservablePoint` #### Set Signature [#set-signature-19] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-21] ###### value [#value-17] `string` | `number` | `PointData` ##### Returns [#returns-49] `void` #### Inherited from [#inherited-from-134] `PIXI.Text.scale` *** ### skew [#skew] #### Get Signature [#get-signature-24] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-83] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-6] 4.0.0 ##### Default [#default-60] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-50] `ObservablePoint` #### Set Signature [#set-signature-20] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-22] ###### value [#value-18] `PointData` ##### Returns [#returns-51] `void` #### Inherited from [#inherited-from-135] `PIXI.Text.skew` *** ### style [#style] #### Get Signature [#get-signature-25] \> **get** **style**(): `TEXT_STYLE` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:328 ##### Returns [#returns-52] `TEXT_STYLE` #### Set Signature [#set-signature-21] \> **set** **style**(`style`): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:374 The style configuration for the text. Can be a TextStyle instance or a configuration object. Supports canvas text styles, HTML text styles, and bitmap text styles. ##### Example [#example-84] ````ts const text = new Text({ text: 'Styled Text', style: { fontSize: 24, fill: 0xff1010, // Red color fontFamily: 'Arial', align: 'center', // Center alignment stroke: { color: '#4a1850', width: 5 }, // Purple stroke dropShadow: { color: '#000000', // Black shadow blur: 4, // Shadow blur distance: 6 // Shadow distance } } }); const htmlText = new HTMLText({ text: 'HTML Styled Text', style: { fontSize: '20px', fill: 'blue', fontFamily: 'Verdana', } }); const bitmapText = new BitmapText({ text: 'Bitmap Styled Text', style: { fontName: 'Arial', fontSize: 32, } }) // Update style dynamically text.style = { fontSize: 30, // Change font size fill: 0x00ff00, // Change color to green align: 'right', // Change alignment to right stroke: { color: '#000000', width: 2 }, // Add black stroke } ##### Parameters ###### style `TEXT_STYLE` \| `TEXT_STYLE_OPTIONS` \| `Partial`\<`TEXT_STYLE`\> ##### Returns `void` #### Inherited from `PIXI.Text.style` *** ### styleKey #### Get Signature > **get** **styleKey**(): `string` Defined in: node\_modules/pixi.js/lib/scene/text/AbstractText.d.ts:487 Returns a unique key for this instance. This key is used for caching. ##### Returns `string` Unique key for the instance #### Inherited from `Text`.[`styleKey`](#stylekey) *** ### text #### Get Signature > **get** **text**(): `string` Defined in: node\_modules/pixi.js/lib/scene/text/AbstractText.d.ts:308 ##### Returns `string` #### Set Signature > **set** **text**(`value`): `void` Defined in: node\_modules/pixi.js/lib/scene/text/AbstractText.d.ts:307 The text content to display. Use '\n' for line breaks. Accepts strings, numbers, or objects with toString() method. ##### Example ```ts const text = new Text({ text: 'Hello Pixi!', }); const multilineText = new Text({ text: 'Line 1\nLine 2\nLine 3', }); const numberText = new Text({ text: 12345, // Will be converted to '12345' }); const objectText = new Text({ text: { toString: () => 'Object Text' }, // Custom toString }); // Update text dynamically text.text = 'Updated Text'; // Re-renders with new text text.text = 67890; // Updates to '67890' text.text = { toString: () => 'Dynamic Text' }; // Uses custom toString method // Clear text text.text = ''; // Clears the text ```` ##### Default [#default-61] ```ts '' ``` ##### Parameters [#parameters-23] ###### value [#value-19] `TextString` ##### Returns [#returns-53] `void` #### Inherited from [#inherited-from-136] `PIXI.Text.text` *** ### tint [#tint] #### Get Signature [#get-signature-26] > **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-85] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-62] ```ts 0xFFFFFF ``` ##### See [#see-20] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control ##### Returns [#returns-54] `number` #### Set Signature [#set-signature-22] > **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-24] ###### value [#value-20] `ColorSource` ##### Returns [#returns-55] `void` #### Inherited from [#inherited-from-137] `PIXI.Text.tint` *** ### visible [#visible] #### Get Signature [#get-signature-27] > **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-86] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-63] ```ts true ``` ##### See [#see-21] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-56] `boolean` #### Set Signature [#set-signature-23] > **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-25] ###### value [#value-21] `boolean` ##### Returns [#returns-57] `void` #### Inherited from [#inherited-from-138] `PIXI.Text.visible` *** ### width [#width] #### Get Signature [#get-signature-28] > **get** **width**(): `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:387 The width of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example [#example-87] ```ts // Set width directly texture.width = 200; console.log(texture.scale.x); // Scale adjusted to match width // For better performance when setting both width and height texture.setSize(300, 400); // Avoids recalculating bounds twice ``` ##### Returns [#returns-58] `number` #### Set Signature [#set-signature-24] > **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:388 The width of the Container, setting this will actually modify the scale to achieve the value set. > \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. > \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) > as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-88] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Parameters [#parameters-26] ###### value [#value-22] `number` ##### Returns [#returns-59] `void` #### Inherited from [#inherited-from-139] `PIXI.Text.width` *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-29] > **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-89] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-22] [Container#localTransform](/pixi-vn/index/classes/VideoSprite#localtransform) For local space transform ##### Returns [#returns-60] `Matrix` #### Inherited from [#inherited-from-140] `PIXI.Text.worldTransform` *** ### x [#x-2] #### Get Signature [#get-signature-30] > **get** **x**(): `number` Defined in: [src/canvas/components/Text.ts:272](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L272) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-90] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-61] `number` #### Set Signature [#set-signature-25] > **set** **x**(`value`): `void` Defined in: [src/canvas/components/Text.ts:275](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L275) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-91] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-27] ###### value [#value-23] `number` ##### Returns [#returns-62] `void` #### Overrides [#overrides-2] `PIXI.Text.x` *** ### xAlign [#xalign] #### Get Signature [#get-signature-31] > **get** **xAlign**(): `number` Defined in: [src/canvas/components/Text.ts:131](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L131) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-63] `number` #### Set Signature [#set-signature-26] > **set** **xAlign**(`value`): `void` Defined in: [src/canvas/components/Text.ts:125](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L125) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-28] ###### value [#value-24] `number` ##### Returns [#returns-64] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-9] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#xalign) *** ### y [#y-2] #### Get Signature [#get-signature-32] > **get** **y**(): `number` Defined in: [src/canvas/components/Text.ts:280](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L280) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-92] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-65] `number` #### Set Signature [#set-signature-27] > **set** **y**(`value`): `void` Defined in: [src/canvas/components/Text.ts:283](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L283) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-93] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-29] ###### value [#value-25] `number` ##### Returns [#returns-66] `void` #### Overrides [#overrides-3] `PIXI.Text.y` *** ### yAlign [#yalign] #### Get Signature [#get-signature-33] > **get** **yAlign**(): `number` Defined in: [src/canvas/components/Text.ts:149](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L149) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-67] `number` #### Set Signature [#set-signature-28] > **set** **yAlign**(`value`): `void` Defined in: [src/canvas/components/Text.ts:143](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L143) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-30] ###### value [#value-26] `number` ##### Returns [#returns-68] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Implementation of [#implementation-of-10] [`AdditionalPositionsExtension`](/pixi-vn/index/interfaces/AdditionalPositionsExtension).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtension#yalign) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] > **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-31] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds-1] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-69] `void` #### Inherited from [#inherited-from-141] `PIXI.Text._getGlobalBoundsRecursive` *** ### \_onTouch()? [#_ontouch] > `optional` **\_onTouch**(`now`): `void` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:31 An optional callback for when an item is touched #### Parameters [#parameters-32] ##### now [#now] `number` #### Returns [#returns-70] `void` #### Inherited from [#inherited-from-142] `PIXI.Text._onTouch` *** ### addChild() [#addchild] > **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters] ##### U [#u] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-33] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-71] `U`\[`0`] The first child that was added #### Example [#example-94] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-23] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For adding at specific index #### Inherited from [#inherited-from-143] `PIXI.Text.addChild` *** ### addChildAt() [#addchildat] > **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-1] ##### U [#u-1] `U` *extends* `ContainerChild` #### Parameters [#parameters-34] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-72] `U` The child that was added #### Example [#example-95] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-24] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to the end * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For moving existing children #### Inherited from [#inherited-from-144] `PIXI.Text.addChildAt` *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] > **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-2] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-35] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options-1] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-73] `void` ##### Example [#example-96] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-145] `PIXI.Text.addEventListener` #### Call Signature [#call-signature-1] > **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-36] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-2] `AddListenerOptions` ##### Returns [#returns-74] `void` ##### Inherited from [#inherited-from-146] `PIXI.Text.addEventListener` *** ### addListener() [#addlistener] > **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-3] ##### T [#t] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-37] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-75] `this` #### Inherited from [#inherited-from-147] `PIXI.Text.addListener` *** ### collectRenderables() [#collectrenderables] > **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-38] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-76] `void` #### Inherited from [#inherited-from-148] `PIXI.Text.collectRenderables` *** ### collectRenderablesSimple() [#collectrenderablessimple] > **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:119 **`Internal`** Collects renderables for the view container. #### Parameters [#parameters-39] ##### instructionSet [#instructionset-1] `InstructionSet` The instruction set to collect renderables for. ##### renderer [#renderer-1] `Renderer` The renderer to collect renderables for. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer. #### Returns [#returns-77] `void` #### Inherited from [#inherited-from-149] `PIXI.Text.collectRenderablesSimple` *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] > **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-40] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-78] `void` #### Inherited from [#inherited-from-150] `PIXI.Text.collectRenderablesWithEffects` *** ### containsPoint() [#containspoint] > **containsPoint**(`point`): `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:468 Checks if the object contains the given point in local coordinates. Uses the text's bounds for hit testing. #### Parameters [#parameters-41] ##### point [#point] `PointData` The point to check in local coordinates #### Returns [#returns-79] `boolean` True if the point is within the text's bounds #### Example [#example-97] ```ts // Basic point check const localPoint = { x: 50, y: 25 }; const contains = text.containsPoint(localPoint); console.log('Point is inside:', contains); ``` #### See [#see-25] [Container#toLocal](/pixi-vn/index/classes/Container#tolocal) For converting global coordinates to local #### Inherited from [#inherited-from-151] `PIXI.Text.containsPoint` *** ### destroy() [#destroy] > **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:481 Destroys this text renderable and optionally its style texture. #### Parameters [#parameters-42] ##### options? [#options-3] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-80] `void` #### Example [#example-98] ```ts // Destroys the text and its style text.destroy({ style: true, texture: true, textureSource: true }); text.destroy(true); text.destroy() // Destroys the text, but not its style ``` #### Inherited from [#inherited-from-152] `PIXI.Text.destroy` *** ### disableRenderGroup() [#disablerendergroup] > **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-81] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-153] `PIXI.Text.disableRenderGroup` *** ### dispatchEvent() [#dispatchevent] > **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this [Container](/pixi-vn/index/classes/Container) using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-43] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-82] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-99] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-154] `PIXI.Text.dispatchEvent` *** ### emit() [#emit] > **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-4] ##### T [#t-1] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-44] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`ContainerChild`> & `AnyEvent`>\[`Extract`\<`T`, keyof ContainerEvents\ | keyof AnyEvent>] #### Returns [#returns-83] `boolean` #### Inherited from [#inherited-from-155] `PIXI.Text.emit` *** ### enableRenderGroup() [#enablerendergroup] > **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-84] `void` #### Advanced [#advanced-11] #### Inherited from [#inherited-from-156] `PIXI.Text.enableRenderGroup` *** ### eventNames() [#eventnames] > **eventNames**(): (keyof ContainerEvents\ | keyof AnyEvent)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-85] (keyof ContainerEvents\ | keyof AnyEvent)\[] #### Inherited from [#inherited-from-157] `PIXI.Text.eventNames` *** ### getBounds() [#getbounds] > **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-45] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-2] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-86] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-100] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-26] * [Container#getLocalBounds](/pixi-vn/index/classes/VideoSprite#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-158] `PIXI.Text.getBounds` *** ### getChildAt() [#getchildat] > **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-5] ##### U [#u-2] `U` *extends* `ContainerChild` #### Parameters [#parameters-46] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-87] `U` The child at the given index #### Example [#example-101] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-27] * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-159] `PIXI.Text.getChildAt` *** ### getChildByLabel() [#getchildbylabel] > **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-47] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-88] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-102] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-28] * [Container#getChildrenByLabel](/pixi-vn/index/classes/Container#getchildrenbylabel) For finding all matches * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-160] `PIXI.Text.getChildByLabel` *** ### ~~getChildByName()~~ [#getchildbyname] > **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-48] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-89] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-29] Container#getChildByLabel #### Inherited from [#inherited-from-161] `PIXI.Text.getChildByName` *** ### getChildIndex() [#getchildindex] > **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-49] ##### child [#child-1] `ContainerChild` The Container instance to identify #### Returns [#returns-90] `number` The index position of the child container #### Example [#example-103] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-3] If child is not in this container #### See [#see-30] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For changing index * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access #### Inherited from [#inherited-from-162] `PIXI.Text.getChildIndex` *** ### getChildrenByLabel() [#getchildrenbylabel] > **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-50] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-91] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-104] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-31] * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For finding first match * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-163] `PIXI.Text.getChildrenByLabel` *** ### getFastGlobalBounds() [#getfastglobalbounds] > **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-51] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-3] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-92] `Bounds` The computed bounds. #### Advanced [#advanced-12] #### Inherited from [#inherited-from-164] `PIXI.Text.getFastGlobalBounds` *** ### getGlobalAlpha() [#getglobalalpha] > **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-52] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-93] `number` The resulting alpha value (between 0 and 1) #### Example [#example-105] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-165] `PIXI.Text.getGlobalAlpha` *** ### getGlobalPosition() [#getglobalposition] > **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-53] ##### point? [#point-1] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-94] `Point` The updated point #### Example [#example-106] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-32] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For converting specific points * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting to local space #### Inherited from [#inherited-from-166] `PIXI.Text.getGlobalPosition` *** ### getGlobalTint() [#getglobaltint] > **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-54] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-95] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-107] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-167] `PIXI.Text.getGlobalTint` *** ### getGlobalTransform() [#getglobaltransform] > **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-55] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-96] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-108] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-168] `PIXI.Text.getGlobalTransform` *** ### getLocalBounds() [#getlocalbounds] > **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-97] `Bounds` The bounding area #### Example [#example-109] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-33] * [Container#getBounds](/pixi-vn/index/classes/VideoSprite#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-169] `PIXI.Text.getLocalBounds` *** ### getSize() [#getsize] > **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:426 Retrieves the size of the Text as a \[Size]Size object based on the texture dimensions and scale. This is faster than getting width and height separately as it only calculates the bounds once. #### Parameters [#parameters-56] ##### out? [#out-1] `Size` Optional object to store the size in, to avoid allocating a new object #### Returns [#returns-98] `Size` The size of the Sprite #### Example [#example-110] ```ts // Basic size retrieval const text = new Text({ text: 'Hello Pixi!', style: { fontSize: 24 } }); const size = text.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; text.getSize(reuseSize); ``` #### See [#see-34] * [Text#width](#width) For getting just the width * [Text#height](#height) For getting just the height * [Text#setSize](#setsize) For setting both width and height #### Inherited from [#inherited-from-170] `PIXI.Text.getSize` *** ### listenerCount() [#listenercount] > **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-57] ##### event [#event-2] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-99] `number` #### Inherited from [#inherited-from-171] `PIXI.Text.listenerCount` *** ### listeners() [#listeners] > **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-6] ##### T [#t-2] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-58] ##### event [#event-3] `T` #### Returns [#returns-100] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-172] `PIXI.Text.listeners` *** ### off() [#off] > **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-7] ##### T [#t-3] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-59] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-101] `this` #### Inherited from [#inherited-from-173] `PIXI.Text.off` *** ### on() [#on] > **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/Text.ts:64](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L64) Add a listener for a given event. #### Type Parameters [#type-parameters-8] ##### T [#t-4] `T` *extends* `symbol` | `object` & `string` | keyof ContainerEvents\ #### Parameters [#parameters-60] ##### event [#event-5] `T` ##### fn [#fn-2] (...`args`) => `void` ##### context? [#context-2] `any` #### Returns [#returns-102] `this` #### Implementation of [#implementation-of-11] [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension).[`on`](/pixi-vn/index/interfaces/ListenerExtension#on) #### Overrides [#overrides-4] `PIXI.Text.on` *** ### once() [#once-1] > **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-5] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-61] ##### event [#event-6] `T` ##### fn [#fn-3] (...`args`) => `void` ##### context? [#context-3] `any` #### Returns [#returns-103] `this` #### Inherited from [#inherited-from-174] `PIXI.Text.once` *** ### onViewUpdate() [#onviewupdate] > **onViewUpdate**(): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:470 **`Internal`** #### Returns [#returns-104] `void` #### Inherited from [#inherited-from-175] `PIXI.Text.onViewUpdate` *** ### reloadPosition() [#reloadposition] > `protected` **reloadPosition**(): `void` Defined in: [src/canvas/components/Text.ts:225](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L225) #### Returns [#returns-105] `void` *** ### removeAllListeners() [#removealllisteners] > **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-62] ##### event? [#event-7] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-106] `this` #### Inherited from [#inherited-from-176] `PIXI.Text.removeAllListeners` *** ### removeChild() [#removechild] > **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-10] ##### U [#u-3] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-63] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-107] `U`\[`0`] The first child that was removed #### Example [#example-111] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-35] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-177] `PIXI.Text.removeChild` *** ### removeChildAt() [#removechildat] > **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-11] ##### U [#u-4] `U` *extends* `ContainerChild` #### Parameters [#parameters-64] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-108] `U` The child that was removed #### Example [#example-112] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-4] If index is out of bounds #### See [#see-36] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-178] `PIXI.Text.removeChildAt` *** ### removeChildren() [#removechildren] > **removeChildren**(`beginIndex?`, `endIndex?`): `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-65] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-109] `ContainerChild`\[] List of removed children #### Example [#example-113] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-5] If begin/end indexes are invalid #### See [#see-37] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children #### Inherited from [#inherited-from-179] `PIXI.Text.removeChildren` *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-2] > **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-12] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-66] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-4] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-110] `void` ##### Inherited from [#inherited-from-180] `PIXI.Text.removeEventListener` #### Call Signature [#call-signature-3] > **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-67] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-5] `RemoveListenerOptions` ##### Returns [#returns-111] `void` ##### Inherited from [#inherited-from-181] `PIXI.Text.removeEventListener` *** ### removeFromParent() [#removefromparent] > **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-112] `void` #### Example [#example-114] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-38] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a new parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For parent removing children #### Inherited from [#inherited-from-182] `PIXI.Text.removeFromParent` *** ### removeListener() [#removelistener] > **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-13] ##### T [#t-6] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-68] ##### event [#event-8] `T` ##### fn? [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-113] `this` #### Inherited from [#inherited-from-183] `PIXI.Text.removeListener` *** ### reparentChild() [#reparentchild] > **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-14] ##### U [#u-5] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-69] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-114] `U`\[`0`] The first child that was reparented #### Example [#example-115] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-39] * [Container#reparentChildAt](/pixi-vn/index/classes/Container#reparentchildat) For index-specific reparenting * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For simple parenting #### Inherited from [#inherited-from-184] `PIXI.Text.reparentChild` *** ### reparentChildAt() [#reparentchildat] > **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-6] `U` *extends* `ContainerChild` #### Parameters [#parameters-70] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-115] `U` The reparented child #### Example [#example-116] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-6] If index is out of bounds #### See [#see-40] * [Container#reparentChild](/pixi-vn/index/classes/Container#reparentchild) For appending reparented children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-185] `PIXI.Text.reparentChildAt` *** ### replaceChild() [#replacechild] > **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-16] ##### U [#u-7] `U` *extends* `ContainerChild` ##### T [#t-7] `T` *extends* `ContainerChild` #### Parameters [#parameters-71] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-116] `void` #### Inherited from [#inherited-from-186] `PIXI.Text.replaceChild` *** ### setChildIndex() [#setchildindex] > **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-72] ##### child [#child-4] `ContainerChild` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-117] `void` #### Example [#example-117] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-7] If index is out of bounds #### Throws [#throws-8] If child is not in container #### See [#see-41] * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current index * [Container#swapChildren](/pixi-vn/index/classes/Container#swapchildren) For swapping positions #### Inherited from [#inherited-from-187] `PIXI.Text.setChildIndex` *** ### setFromMatrix() [#setfrommatrix] > **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-73] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-118] `void` #### Example [#example-118] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-42] * [Container#updateTransform](/pixi-vn/index/classes/Container#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-188] `PIXI.Text.setFromMatrix` *** ### setMask() [#setmask] > **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-74] ##### options [#options-6] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-119] `void` #### Example [#example-119] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-43] * [Container#mask](/pixi-vn/index/classes/VideoSprite#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-189] `PIXI.Text.setMask` *** ### setMemory() [#setmemory] > **setMemory**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/Text.ts:59](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Text.ts#L59) This method set the memory of the canvas element. #### Parameters [#parameters-75] ##### value [#value-27] [`TextMemory`](/pixi-vn/index/interfaces/TextMemory) #### Returns [#returns-120] `Promise`\<`void`> #### Throws [#throws-9] when the method is not overridden in the subclass. #### Implementation of [#implementation-of-12] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`setMemory`](/pixi-vn/index/classes/CanvasBaseItem#setmemory) *** ### setSize() [#setsize] > **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:453 Sets the size of the Text to the specified width and height. This is faster than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-76] ##### value [#value-28] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a Size object ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided #### Returns [#returns-121] `void` #### Example [#example-120] ```ts // Basic size setting const text = new Text({ text: 'Hello Pixi!', style: { fontSize: 24 } }); text.setSize(100, 200); // Width: 100, Height: 200 // Set uniform size text.setSize(100); // Sets both width and height to 100 // Set size with object text.setSize({ width: 200, height: 300 }); ``` #### See [#see-44] * [Text#width](#width) For setting width only * [Text#height](#height) For setting height only #### Inherited from [#inherited-from-190] `PIXI.Text.setSize` *** ### swapChildren() [#swapchildren] > **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-17] ##### U [#u-8] `U` *extends* `ContainerChild` #### Parameters [#parameters-77] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-122] `void` #### Example [#example-121] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-10] If either child is not in container #### See [#see-45] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For direct index placement * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current positions #### Inherited from [#inherited-from-191] `PIXI.Text.swapChildren` *** ### toGlobal() [#toglobal] > **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-18] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-78] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-2] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-123] `P` The global position #### Example [#example-122] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-46] * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-192] `PIXI.Text.toGlobal` *** ### toLocal() [#tolocal] > **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-19] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-79] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-3] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-124] `P` A point object representing the position in local space #### Example [#example-123] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-47] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-193] `PIXI.Text.toLocal` *** ### unload() [#unload] > **unload**(): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:110 Unloads the GPU data from the view. #### Returns [#returns-125] `void` #### Inherited from [#inherited-from-194] `PIXI.Text.unload` *** ### updateLocalTransform() [#updatelocaltransform] > **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-126] `void` #### Inherited from [#inherited-from-195] `PIXI.Text.updateLocalTransform` *** ### updateTransform() [#updatetransform] > **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-80] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-127] `this` This container, for chaining #### Example [#example-124] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-48] * [Container#setFromMatrix](/pixi-vn/index/classes/Container#setfrommatrix) For matrix-based transforms * [Container#position](/pixi-vn/index/interfaces/CanvasBaseInterface#position) For direct position access #### Inherited from [#inherited-from-196] `PIXI.Text.updateTransform` *** ### ~~mixin()~~ [#mixin] \> `static` **mixin**(`source`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:605 Mixes all enumerable properties and methods from a source object to Container. #### Parameters [#parameters-81] ##### source [#source] `Dict`\<`any`> The source of properties and methods to mix in. #### Returns [#returns-128] `void` #### Deprecated [#deprecated-3] since 8.8.0 #### Inherited from [#inherited-from-197] `PIXI.Text.mixin` # Abstract Class: TickerBase (/pixi-vn/index/classes/TickerBase) Defined in: [src/tickers/classes/TickerBase.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L44) A class is used to create a ticker element to add into a Pixi Application. You can use `tickers.add()` (from `@drincs/pixi-vn`) to add this element into the application. This class should be extended and the fn method should be overridden. You must use the [tickerDecorator](/pixi-vn/index/functions/tickerDecorator) to register the ticker in the game. In Ren'Py is a transform. ## Example [#example] ```ts \@tickerDecorator() // this is equivalent to tickerDecorator("RotateTicker") export class RotateTicker extends TickerBase<{ speed?: number }> { override fn( t: TickerValue, // the ticker that is calling this method args: { // the arguments that you passed when you added the ticker speed?: number, }, aliases: string[], // the aliases of the canvas elements that are connected to this ticker tickerId: string, // the id of the ticker. You can use this to get the ticker from tickers.currentTickers ): void { let speed = args.speed === undefined ? 0.1 : args.speed aliases.forEach((alias) => { let element = canvas.find(alias) if (element && element instanceof Container) { if (clockwise) element.rotation += speed * t.deltaTime else element.rotation -= speed * t.deltaTime } }) } } ``` ## Type Parameters [#type-parameters] ### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) The type of the arguments that you want to pass to the ticker. ## Implements [#implements] * [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> ## Constructors [#constructors] ### Constructor [#constructor] \> **new TickerBase**\<`TArgs`>(`args`, `options?`): `TickerBase`\<`TArgs`> Defined in: [src/tickers/classes/TickerBase.ts:49](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L49) #### Parameters [#parameters] ##### args [#args] `TArgs` The arguments that you want to pass to the ticker. ##### options? [#options] The options of the ticker. ###### canvasElementAliases? [#canvaselementaliases] `string`\[] The aliases of the canvas elements that are connected to this ticker. This is used by the system to know which canvas elements are connected to this ticker, and to pass them to the fn method. **Default** ```ts [] ``` ###### duration? [#duration] `number` The duration of the ticker in seconds. If is undefined, the step will end only when the animation is finished (if the animation doesn't have a goal to reach then it won't finish). **Default** ```ts undefined ``` ###### id? [#id] `string` The id of the ticker. This param is used by the system when will ber restoring the tickers from a save. If not provided, a random id will be generated. **Default** ```ts undefined ``` ###### priority? [#priority] `UPDATE_PRIORITY` The priority of the ticker. **Default** ```ts UPDATE_PRIORITY.NORMAL ``` #### Returns [#returns] `TickerBase`\<`TArgs`> ## Properties [#properties] ### alias [#alias] \> `readonly` **alias**: `string` Defined in: [src/tickers/classes/TickerBase.ts:83](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L83) Get the alias of the ticker class. This variable is used in the system to get the ticker class by id, [RegisteredTickers.getInstance](/pixi-vn/index/namespaces/RegisteredTickers/functions/getInstance) #### Implementation of [#implementation-of] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`alias`](/pixi-vn/index/interfaces/Ticker#alias) *** ### args [#args-1] \> **args**: `TArgs` Defined in: [src/tickers/classes/TickerBase.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L85) Arguments to pass to the ticker #### Implementation of [#implementation-of-1] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`args`](/pixi-vn/index/interfaces/Ticker#args) *** ### canvasElementAliases [#canvaselementaliases-1] \> **canvasElementAliases**: `string`\[] = `[]` Defined in: [src/tickers/classes/TickerBase.ts:89](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L89) The aliases of the canvas elements that are connected to this ticker #### Implementation of [#implementation-of-2] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`canvasElementAliases`](/pixi-vn/index/interfaces/Ticker#canvaselementaliases) *** ### duration? [#duration-1] \> `optional` **duration?**: `number` Defined in: [src/tickers/classes/TickerBase.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L86) Duration in seconds to run the ticker #### Implementation of [#implementation-of-3] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`duration`](/pixi-vn/index/interfaces/Ticker#duration) *** ### fnValue? [#fnvalue] \> `protected` `optional` **fnValue?**: () => `void` Defined in: [src/tickers/classes/TickerBase.ts:116](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L116) #### Returns [#returns-1] `void` *** ### id [#id-1] \> `readonly` **id**: `string` Defined in: [src/tickers/classes/TickerBase.ts:84](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L84) The id of the ticker. Must be unique for each ticker instance. #### Implementation of [#implementation-of-4] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`id`](/pixi-vn/index/interfaces/Ticker#id) *** ### priority? [#priority-1] \> `optional` **priority?**: `UPDATE_PRIORITY` Defined in: [src/tickers/classes/TickerBase.ts:87](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L87) Priority of the ticker #### Implementation of [#implementation-of-5] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`priority`](/pixi-vn/index/interfaces/Ticker#priority) *** ### ticker [#ticker] \> `protected` **ticker**: [`TickerValue`](/pixi-vn/index/interfaces/TickerValue) Defined in: [src/tickers/classes/TickerBase.ts:88](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L88) ## Accessors [#accessors] ### paused [#paused] #### Get Signature [#get-signature] \> **get** **paused**(): `boolean` Defined in: [src/tickers/classes/TickerBase.ts:141](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L141) Checks if the ticker is paused. ##### Returns [#returns-2] `boolean` true if the ticker is paused, false otherwise. Checks if the ticker is paused. #### Implementation of [#implementation-of-6] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`paused`](/pixi-vn/index/interfaces/Ticker#paused) ## Methods [#methods] ### complete() [#complete] \> **complete**(`_options?`): `void` Defined in: [src/tickers/classes/TickerBase.ts:117](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L117) Completes the animation and applies the final state. #### Parameters [#parameters-1] ##### \_options? [#_options] ###### ignoreTickerSteps? [#ignoretickersteps] `boolean` #### Returns [#returns-3] `void` #### Implementation of [#implementation-of-7] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`complete`](/pixi-vn/index/interfaces/Ticker#complete) *** ### fn() [#fn] \> `abstract` **fn**(`_ticker`, `_args`, `_alias`, `_tickerId`): `void` Defined in: [src/tickers/classes/TickerBase.ts:110](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L110) The method that will be called every frame. This method should be overridden and you can use `canvas.find()` (from `@drincs/pixi-vn/canvas`) to get the canvas element of the canvas, and edit them. #### Parameters [#parameters-2] ##### \_ticker [#_ticker] [`TickerValue`](/pixi-vn/index/interfaces/TickerValue) The ticker that is calling this method ##### \_args [#_args] `TArgs` The arguments that you passed when you added the ticker ##### \_alias [#_alias] `string` | `string`\[] The alias of the canvas elements that are connected to this ticker ##### \_tickerId [#_tickerid] `string` The id of the ticker. You can use this to get the ticker from `tickers.currentTickers` #### Returns [#returns-4] `void` *** ### pause() [#pause] \> **pause**(): `void` Defined in: [src/tickers/classes/TickerBase.ts:135](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L135) Pauses the animation. #### Returns [#returns-5] `void` #### Implementation of [#implementation-of-8] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`pause`](/pixi-vn/index/interfaces/Ticker#pause) *** ### play() [#play] \> **play**(): `void` Defined in: [src/tickers/classes/TickerBase.ts:138](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L138) Plays the animation. #### Returns [#returns-6] `void` #### Implementation of [#implementation-of-9] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`play`](/pixi-vn/index/interfaces/Ticker#play) *** ### start() [#start] \> **start**(): `void` Defined in: [src/tickers/classes/TickerBase.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L128) Starts the ticker. This will start the ticker and begin the animation. #### Returns [#returns-7] `void` #### Implementation of [#implementation-of-10] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`start`](/pixi-vn/index/interfaces/Ticker#start) *** ### stop() [#stop] \> **stop**(): `void` Defined in: [src/tickers/classes/TickerBase.ts:120](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/classes/TickerBase.ts#L120) Stops the animation at its current state, and prevents it from resuming when the animation is played again. #### Returns [#returns-8] `void` #### Implementation of [#implementation-of-11] [`Ticker`](/pixi-vn/index/interfaces/Ticker).[`stop`](/pixi-vn/index/interfaces/Ticker#stop) # Class: VideoSprite (/pixi-vn/index/classes/VideoSprite) Defined in: [src/canvas/components/VideoSprite.ts:83](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L83) This class is a extension of the [ImageSprite](/pixi-vn/index/classes/ImageSprite) class, it has the same properties and methods, but it has some features that make video management easier. You need to use [load](#load) to show the video in the canvas. This class is used for functions like [addVideo](/pixi-vn/index/functions/addVideo) and [showWithDissolve](/pixi-vn/index/functions/showWithDissolve). Listen to the `"ended"` event (see [VideoSpriteEventType](/pixi-vn/index/type-aliases/VideoSpriteEventType)) with a handler registered with `eventDecorator`, so it is saved: ```ts class Events { \@eventDecorator() static removeFilm(component: VideoSprite) { canvas.remove(component.label); } } film.on("ended", Events.removeFilm); ``` ## Examples [#examples] ```ts Assets.add({ alias: "film", src: "https://pixijs.com/assets/video.mp4" }); const film = new VideoSprite({ x: 100, y: 100 }, "film"); await film.load(); canvas.add("film", film); ``` ```ts Assets.add({ alias: "film", src: "https://pixijs.com/assets/video.mp4" }); // the alias of the component is also the alias of the asset const film = addVideo("film", { loop: true }); film.currentTime = 2; await film.load(); // a different alias for the component const film2 = await showVideo("film2", "film", { xAlign: 1 }); ``` ## Extends [#extends] * [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`VideoSpriteMemory`](/pixi-vn/index/interfaces/VideoSpriteMemory)> ## Constructors [#constructors] ### Constructor [#constructor] \> **new VideoSprite**(`options?`, `textureAlias?`): `VideoSprite` Defined in: [src/canvas/components/VideoSprite.ts:88](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L88) #### Parameters [#parameters] ##### options? [#options] `Texture`\<`TextureSource`\<`any`>> | [`VideoSpriteOptions`](/pixi-vn/index/interfaces/VideoSpriteOptions) The options for the component. ##### textureAlias? [#texturealias] `string` The URL or path. If you have initialized the "asset matrix", you can use the alias of the texture. #### Returns [#returns] `VideoSprite` #### Overrides [#overrides] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`constructor`](/pixi-vn/index/classes/ImageSprite#constructor) ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`__devtoolIgnore`](/pixi-vn/index/classes/ImageSprite#__devtoolignore) *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`__devtoolIgnoreChildren`](/pixi-vn/index/classes/ImageSprite#__devtoolignorechildren) *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`__devtoolLocked`](/pixi-vn/index/classes/ImageSprite#__devtoollocked) *** ### \_anchor [#_anchor] \> `readonly` **\_anchor**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:155 **`Internal`** #### Inherited from [#inherited-from-3] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_anchor`](/pixi-vn/index/classes/ImageSprite#_anchor) *** ### \_bounds [#_bounds] \> `protected` **\_bounds**: `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:59 #### Inherited from [#inherited-from-4] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_bounds`](/pixi-vn/index/classes/ImageSprite#_bounds) *** ### \_boundsDirty [#_boundsdirty] \> `protected` **\_boundsDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:60 #### Inherited from [#inherited-from-5] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_boundsDirty`](/pixi-vn/index/classes/ImageSprite#_boundsdirty) *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-6] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_cx`](/pixi-vn/index/classes/ImageSprite#_cx) *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-7] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_cy`](/pixi-vn/index/classes/ImageSprite#_cy) *** ### \_gcData? [#_gcdata] \> `optional` **\_gcData?**: `GCData` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:54 **`Internal`** #### Inherited from [#inherited-from-8] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_gcData`](/pixi-vn/index/classes/ImageSprite#_gcdata) *** ### \_gcLastUsed [#_gclastused] \> **\_gcLastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:58 **`Internal`** #### Inherited from [#inherited-from-9] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_gcLastUsed`](/pixi-vn/index/classes/ImageSprite#_gclastused) *** ### \_gpuData [#_gpudata] \> **\_gpuData**: `Record`\<`number`, `GPU_DATA`> Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:52 **`Internal`** #### Inherited from [#inherited-from-10] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_gpuData`](/pixi-vn/index/classes/ImageSprite#_gpudata) *** ### \_lastUsed [#_lastused] \> **\_lastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:50 **`Internal`** #### Inherited from [#inherited-from-11] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_lastUsed`](/pixi-vn/index/classes/ImageSprite#_lastused) *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-12] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_pivot`](/pixi-vn/index/classes/ImageSprite#_pivot) *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-13] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_position`](/pixi-vn/index/classes/ImageSprite#_position) *** ### \_roundPixels [#_roundpixels] \> **\_roundPixels**: `0` | `1` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:48 **`Internal`** #### Inherited from [#inherited-from-14] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_roundPixels`](/pixi-vn/index/classes/ImageSprite#_roundpixels) *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-15] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_scale`](/pixi-vn/index/classes/ImageSprite#_scale) *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-16] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_skew`](/pixi-vn/index/classes/ImageSprite#_skew) *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-17] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_sx`](/pixi-vn/index/classes/ImageSprite#_sx) *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-18] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_sy`](/pixi-vn/index/classes/ImageSprite#_sy) *** ### \_texture [#_texture] \> **\_texture**: `Texture` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:157 **`Internal`** #### Inherited from [#inherited-from-19] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_texture`](/pixi-vn/index/classes/ImageSprite#_texture) *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-20] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_zIndex`](/pixi-vn/index/classes/ImageSprite#_zindex) *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-21] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`accessible`](/pixi-vn/index/classes/ImageSprite#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-22] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`accessibleChildren`](/pixi-vn/index/classes/ImageSprite#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-23] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`accessibleHint`](/pixi-vn/index/classes/ImageSprite#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-24] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`accessiblePointerEvents`](/pixi-vn/index/classes/ImageSprite#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-25] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`accessibleText`](/pixi-vn/index/classes/ImageSprite#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-26] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`accessibleTitle`](/pixi-vn/index/classes/ImageSprite#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-27] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`accessibleType`](/pixi-vn/index/classes/ImageSprite#accessibletype) *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:46 **`Internal`** #### Inherited from [#inherited-from-28] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`allowChildren`](/pixi-vn/index/classes/ImageSprite#allowchildren) *** ### autoGarbageCollect [#autogarbagecollect] \> **autoGarbageCollect**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:56 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-29] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`autoGarbageCollect`](/pixi-vn/index/classes/ImageSprite#autogarbagecollect) *** ### batched [#batched] \> **batched**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:153 **`Internal`** #### Inherited from [#inherited-from-30] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`batched`](/pixi-vn/index/classes/ImageSprite#batched) *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-7] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-31] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`boundsArea`](/pixi-vn/index/classes/ImageSprite#boundsarea) *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-32] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`cacheAsBitmap`](/pixi-vn/index/classes/ImageSprite#cacheasbitmap) *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters-1] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns-1] `void` #### Example [#example-8] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-33] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`cacheAsTexture`](/pixi-vn/index/classes/ImageSprite#cacheastexture) *** ### canBundle [#canbundle] \> `readonly` **canBundle**: `true` = `true` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:44 **`Internal`** #### Inherited from [#inherited-from-34] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`canBundle`](/pixi-vn/index/classes/ImageSprite#canbundle) *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-9] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-35] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`children`](/pixi-vn/index/classes/ImageSprite#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-10] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-36] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`cullable`](/pixi-vn/index/classes/ImageSprite#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-11] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-37] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`cullableChildren`](/pixi-vn/index/classes/ImageSprite#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-12] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-9] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`cullArea`](/pixi-vn/index/classes/ImageSprite#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-13] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-10] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-39] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`cursor`](/pixi-vn/index/classes/ImageSprite#cursor) *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-2] `void` #### Inherited from [#inherited-from-40] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`depthOfChildModified`](/pixi-vn/index/classes/ImageSprite#depthofchildmodified) *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-14] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-11] ```ts false ``` #### See [#see-3] [Container#destroy](/pixi-vn/index/classes/Container#destroy) For destroying objects #### Inherited from [#inherited-from-41] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`destroyed`](/pixi-vn/index/classes/ImageSprite#destroyed) *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-42] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`effects`](/pixi-vn/index/classes/ImageSprite#effects) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-15] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-43] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`eventMode`](/pixi-vn/index/classes/ImageSprite#eventmode) *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-16] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * [Container#filters](#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-44] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`filterArea`](/pixi-vn/index/classes/ImageSprite#filterarea) *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-45] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`globalDisplayStatus`](/pixi-vn/index/classes/ImageSprite#globaldisplaystatus) *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-46] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`groupAlpha`](/pixi-vn/index/classes/ImageSprite#groupalpha) *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-47] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`groupBlendMode`](/pixi-vn/index/classes/ImageSprite#groupblendmode) *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-48] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`groupColor`](/pixi-vn/index/classes/ImageSprite#groupcolor) *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-49] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`groupColorAlpha`](/pixi-vn/index/classes/ImageSprite#groupcoloralpha) *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-50] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`groupTransform`](/pixi-vn/index/classes/ImageSprite#grouptransform) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-17] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-51] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`hitArea`](/pixi-vn/index/classes/ImageSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](#eventmode) #### Example [#example-18] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-52] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`interactive`](/pixi-vn/index/classes/ImageSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-12] ```ts true ``` #### Example [#example-19] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-53] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`interactiveChildren`](/pixi-vn/index/classes/ImageSprite#interactivechildren) *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-20] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * [Container#cacheAsTexture](/pixi-vn/index/classes/Container#cacheastexture) For enabling caching * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cache #### Inherited from [#inherited-from-54] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`isCachedAsTexture`](/pixi-vn/index/classes/ImageSprite#iscachedastexture) *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-3] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-21] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-55] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`isInteractive`](/pixi-vn/index/classes/ImageSprite#isinteractive) *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-56] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-57] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`layerParentId`](/pixi-vn/index/classes/ImageSprite#layerparentid) *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-58] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`localAlpha`](/pixi-vn/index/classes/ImageSprite#localalpha) *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-59] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`localBlendMode`](/pixi-vn/index/classes/ImageSprite#localblendmode) *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-60] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`localColor`](/pixi-vn/index/classes/ImageSprite#localcolor) *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-61] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`localDisplayStatus`](/pixi-vn/index/classes/ImageSprite#localdisplaystatus) *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-22] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](#worldtransform) For global transform * [Container#groupTransform](#grouptransform) For render group transform #### Inherited from [#inherited-from-62] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`localTransform`](/pixi-vn/index/classes/ImageSprite#localtransform) *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a [Sprite](/pixi-vn/index/classes/Sprite) object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-23] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * [Sprite](/pixi-vn/index/classes/Sprite) For texture-based masks * [Container#setMask](#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-63] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`mask`](/pixi-vn/index/classes/ImageSprite#mask) *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-64] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`name`](/pixi-vn/index/classes/ImageSprite#name) *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-65] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onclick`](/pixi-vn/index/classes/ImageSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-66] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`oncontextmenu`](/pixi-vn/index/classes/ImageSprite#oncontextmenu) *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) = `{}` Defined in: [src/canvas/components/Sprite.ts:99](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L99) ListenerExtension #### Inherited from [#inherited-from-67] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onEventsHandlers`](/pixi-vn/index/classes/ImageSprite#oneventshandlers) *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-17] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-68] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onglobalmousemove`](/pixi-vn/index/classes/ImageSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-69] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onglobalpointermove`](/pixi-vn/index/classes/ImageSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-70] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/ImageSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-20] ```ts null ``` #### Inherited from [#inherited-from-71] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmousedown`](/pixi-vn/index/classes/ImageSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-72] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmouseenter`](/pixi-vn/index/classes/ImageSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-73] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmouseleave`](/pixi-vn/index/classes/ImageSprite#onmouseleave) *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-74] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmousemove`](/pixi-vn/index/classes/ImageSprite#onmousemove) *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-75] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmouseout`](/pixi-vn/index/classes/ImageSprite#onmouseout) *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-76] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmouseover`](/pixi-vn/index/classes/ImageSprite#onmouseover) *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-77] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmouseup`](/pixi-vn/index/classes/ImageSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-78] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onmouseupoutside`](/pixi-vn/index/classes/ImageSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-79] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointercancel`](/pixi-vn/index/classes/ImageSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-80] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointerdown`](/pixi-vn/index/classes/ImageSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-81] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointerenter`](/pixi-vn/index/classes/ImageSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-82] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointerleave`](/pixi-vn/index/classes/ImageSprite#onpointerleave) *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-83] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointermove`](/pixi-vn/index/classes/ImageSprite#onpointermove) *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-84] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointerout`](/pixi-vn/index/classes/ImageSprite#onpointerout) *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-85] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointerover`](/pixi-vn/index/classes/ImageSprite#onpointerover) *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-86] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointertap`](/pixi-vn/index/classes/ImageSprite#onpointertap) *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-87] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointerup`](/pixi-vn/index/classes/ImageSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-88] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onpointerupoutside`](/pixi-vn/index/classes/ImageSprite#onpointerupoutside) *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-47] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-89] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-90] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onrightclick`](/pixi-vn/index/classes/ImageSprite#onrightclick) *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-91] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onrightdown`](/pixi-vn/index/classes/ImageSprite#onrightdown) *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-92] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onrightup`](/pixi-vn/index/classes/ImageSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-93] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onrightupoutside`](/pixi-vn/index/classes/ImageSprite#onrightupoutside) *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-94] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`ontap`](/pixi-vn/index/classes/ImageSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-95] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`ontouchcancel`](/pixi-vn/index/classes/ImageSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-96] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`ontouchend`](/pixi-vn/index/classes/ImageSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-97] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`ontouchendoutside`](/pixi-vn/index/classes/ImageSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-98] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`ontouchmove`](/pixi-vn/index/classes/ImageSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-99] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`ontouchstart`](/pixi-vn/index/classes/ImageSprite#ontouchstart) *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-100] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`onwheel`](/pixi-vn/index/classes/ImageSprite#onwheel) *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-59] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-101] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`parent`](/pixi-vn/index/classes/ImageSprite#parent) *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-102] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`parentRenderLayer`](/pixi-vn/index/classes/ImageSprite#parentrenderlayer) *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` = `CANVAS_VIDEO_ID` Defined in: [src/canvas/components/VideoSprite.ts:105](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L105) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Overrides [#overrides-1] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`pixivnId`](/pixi-vn/index/classes/ImageSprite#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-103] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`relativeGroupTransform`](/pixi-vn/index/classes/ImageSprite#relativegrouptransform) *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:151 **`Internal`** #### Inherited from [#inherited-from-104] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`renderPipeId`](/pixi-vn/index/classes/ImageSprite#renderpipeid) *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-60] ```ts container.sortableChildren = true; ``` #### Default [#default-49] ```ts false ``` #### Inherited from [#inherited-from-105] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-4] `void` #### Example [#example-61] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](#sortablechildren) For enabling automatic sorting * [Container#zIndex](#zindex) For setting child order #### Inherited from [#inherited-from-106] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`sortChildren`](/pixi-vn/index/classes/ImageSprite#sortchildren) *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-50] ```ts false @internal ``` #### Inherited from [#inherited-from-107] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-51] ```ts 0 ``` #### Example [#example-62] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-108] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`tabIndex`](/pixi-vn/index/classes/ImageSprite#tabindex) *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-109] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`uid`](/pixi-vn/index/classes/ImageSprite#uid) *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-5] `void` #### Example [#example-63] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-110] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`updateCacheTexture`](/pixi-vn/index/classes/ImageSprite#updatecachetexture) *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-111] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`updateTick`](/pixi-vn/index/classes/ImageSprite#updatetick) *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-64] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-52] ```ts 0 ``` #### Inherited from [#inherited-from-112] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) *** ### prefixed [#prefixed] \> `static` **prefixed**: `string` | `boolean` Defined in: node_modules/eventemitter3/index.d.ts:9 #### Inherited from [#inherited-from-113] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`prefixed`](/pixi-vn/index/classes/ImageSprite#prefixed) ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Sprite.ts:140](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L140) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-6] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L128) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-2] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-7] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-114] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`align`](/pixi-vn/index/classes/ImageSprite#align) *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-65] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-53] ```ts 1 ``` ##### See [#see-14] * [Container#visible](#visible) For toggling visibility * [Container#renderable](#renderable) For render control ##### Returns [#returns-8] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-3] ###### value [#value-1] `number` ##### Returns [#returns-9] `void` #### Inherited from [#inherited-from-115] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`alpha`](/pixi-vn/index/classes/ImageSprite#alpha) *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:256 The anchor sets the origin point of the sprite. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. * The default is `(0,0)`, this means the sprite's origin is the top left. * Setting the anchor to `(0.5,0.5)` means the sprite's origin is centered. * Setting the anchor to `(1,1)` would mean the sprite's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-66] ```ts // Center the anchor point sprite.anchor = 0.5; // Sets both x and y to 0.5 sprite.position.set(400, 300); // Sprite will be centered at this position // Set specific x/y anchor points sprite.anchor = { x: 1, // Right edge y: 0 // Top edge }; // Using individual coordinates sprite.anchor.set(0.5, 1); // Center-bottom // For rotation around center sprite.anchor.set(0.5); sprite.rotation = Math.PI / 4; // 45 degrees around center // For scaling from center sprite.anchor.set(0.5); sprite.scale.set(2); // Scales from center point ``` ##### Returns [#returns-10] `ObservablePoint` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:257 ##### Parameters [#parameters-4] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-11] `void` #### Inherited from [#inherited-from-116] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`anchor`](/pixi-vn/index/classes/ImageSprite#anchor) *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-67] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-12] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-5] ###### value [#value-3] `number` ##### Returns [#returns-13] `void` #### Inherited from [#inherited-from-117] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`angle`](/pixi-vn/index/classes/ImageSprite#angle) *** ### blendMode [#blendmode] #### Get Signature [#get-signature-4] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-68] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-54] ```ts 'normal' ``` ##### See [#see-15] * [Container#alpha](#alpha) For transparency * [Container#tint](#tint) For color adjustments ##### Returns [#returns-14] `BLEND_MODES` #### Set Signature [#set-signature-4] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-6] ###### value [#value-4] `BLEND_MODES` ##### Returns [#returns-15] `void` #### Inherited from [#inherited-from-118] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`blendMode`](/pixi-vn/index/classes/ImageSprite#blendmode) *** ### bounds [#bounds] #### Get Signature [#get-signature-5] \> **get** **bounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:74 The local bounds of the view in its own coordinate space. Bounds are automatically updated when the view's content changes. ##### Example [#example-69] ```ts // Get bounds dimensions const bounds = view.bounds; console.log(`Width: ${bounds.maxX - bounds.minX}`); console.log(`Height: ${bounds.maxY - bounds.minY}`); ``` ##### See [#see-16] Bounds For bounds operations ##### Returns [#returns-16] `Bounds` The rectangular bounds of the view #### Inherited from [#inherited-from-119] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`bounds`](/pixi-vn/index/classes/ImageSprite#bounds) *** ### currentTime [#currenttime] #### Get Signature [#get-signature-6] \> **get** **currentTime**(): `number` Defined in: [src/canvas/components/VideoSprite.ts:276](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L276) The current time of the video. ##### Returns [#returns-17] `number` #### Set Signature [#set-signature-5] \> **set** **currentTime**(`value`): `void` Defined in: [src/canvas/components/VideoSprite.ts:279](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L279) ##### Parameters [#parameters-7] ###### value [#value-5] `number` ##### Returns [#returns-18] `void` *** ### duration [#duration] #### Get Signature [#get-signature-7] \> **get** **duration**(): `number` | `undefined` Defined in: [src/canvas/components/VideoSprite.ts:300](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L300) The duration of the video. ##### Returns [#returns-19] `number` | `undefined` *** ### filters [#filters] #### Get Signature [#get-signature-8] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-70] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-17] Filter For filter base class ##### Returns [#returns-20] readonly `Filter`\[] #### Set Signature [#set-signature-6] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-71] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-18] Filter For filter base class ##### Parameters [#parameters-8] ###### value [#value-6] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-21] `void` #### Inherited from [#inherited-from-120] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`filters`](/pixi-vn/index/classes/ImageSprite#filters) *** ### haveEmptyTexture [#haveemptytexture] #### Get Signature [#get-signature-9] \> **get** **haveEmptyTexture**(): `boolean` Defined in: [src/canvas/components/ImageSprite.ts:139](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L139) Check if the texture is empty. ##### Returns [#returns-22] `boolean` A boolean that is true if the texture is empty. #### Inherited from [#inherited-from-121] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`haveEmptyTexture`](/pixi-vn/index/classes/ImageSprite#haveemptytexture) *** ### height [#height] #### Get Signature [#get-signature-10] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:300 The height of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example [#example-72] ```ts // Set height directly sprite.height = 150; console.log(sprite.scale.y); // Scale adjusted to match height // Set height while preserving aspect ratio const ratio = sprite.width / sprite.height; sprite.height = 200; sprite.width = 200 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.height = sprite.texture.orig.height; ``` ##### Returns [#returns-23] `number` #### Set Signature [#set-signature-7] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:301 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-73] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Parameters [#parameters-9] ###### value [#value-7] `number` ##### Returns [#returns-24] `void` #### Inherited from [#inherited-from-122] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`height`](/pixi-vn/index/classes/ImageSprite#height) *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-11] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-25] `boolean` #### Inherited from [#inherited-from-123] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`isRenderable`](/pixi-vn/index/classes/ImageSprite#isrenderable) *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-12] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-26] `boolean` #### Set Signature [#set-signature-8] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-10] ###### value [#value-8] `boolean` ##### Returns [#returns-27] `void` #### Inherited from [#inherited-from-124] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`isRenderGroup`](/pixi-vn/index/classes/ImageSprite#isrendergroup) *** ### loadIsStarted [#loadisstarted] #### Get Signature [#get-signature-13] \> **get** **loadIsStarted**(): `boolean` Defined in: [src/canvas/components/ImageSprite.ts:97](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L97) ##### Returns [#returns-28] `boolean` #### Inherited from [#inherited-from-125] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`loadIsStarted`](/pixi-vn/index/classes/ImageSprite#loadisstarted) *** ### loop [#loop] #### Get Signature [#get-signature-14] \> **get** **loop**(): `boolean` Defined in: [src/canvas/components/VideoSprite.ts:199](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L199) Set to true if you want the video to loop. ##### Returns [#returns-29] `boolean` #### Set Signature [#set-signature-9] \> **set** **loop**(`value`): `void` Defined in: [src/canvas/components/VideoSprite.ts:202](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L202) ##### Parameters [#parameters-11] ###### value [#value-9] `boolean` ##### Returns [#returns-30] `void` *** ### memory [#memory] #### Get Signature [#get-signature-15] \> **get** **memory**(): [`VideoSpriteMemory`](/pixi-vn/index/interfaces/VideoSpriteMemory) Defined in: [src/canvas/components/VideoSprite.ts:106](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L106) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-31] [`VideoSpriteMemory`](/pixi-vn/index/interfaces/VideoSpriteMemory) #### Overrides [#overrides-2] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`memory`](/pixi-vn/index/classes/ImageSprite#memory-1) *** ### origin [#origin] #### Get Signature [#get-signature-16] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-74] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-32] `ObservablePoint` #### Set Signature [#set-signature-10] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-12] ###### value [#value-10] `number` | `PointData` ##### Returns [#returns-33] `void` #### Inherited from [#inherited-from-126] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`origin`](/pixi-vn/index/classes/ImageSprite#origin) *** ### paused [#paused] #### Get Signature [#get-signature-17] \> **get** **paused**(): `boolean` Defined in: [src/canvas/components/VideoSprite.ts:224](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L224) Set to true if you want the video to be paused. This is also the state saved by [memory](#memory). It reflects the video element, which is shared by every sprite showing it. While `canvas.pause()` suspends the video, it is the requested playback state (the one `canvas.resume()` will apply), not the temporary suspension. Before the video is loaded, it is the value that [load](#load) applies. ##### Returns [#returns-34] `boolean` #### Set Signature [#set-signature-11] \> **set** **paused**(`value`): `void` Defined in: [src/canvas/components/VideoSprite.ts:232](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L232) ##### Parameters [#parameters-13] ###### value [#value-11] `boolean` ##### Returns [#returns-35] `void` *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-18] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/Sprite.ts:211](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L211) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-36] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-12] \> **set** **percentagePosition**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:199](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L199) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-14] ###### value [#value-12] `number` | `Partial`\<`PointData`> ##### Returns [#returns-37] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-127] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`percentagePosition`](/pixi-vn/index/classes/ImageSprite#percentageposition) *** ### percentageX [#percentagex] #### Get Signature [#get-signature-19] \> **get** **percentageX**(): `number` Defined in: [src/canvas/components/Sprite.ts:217](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L217) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-38] `number` #### Set Signature [#set-signature-13] \> **set** **percentageX**(`_value`): `void` Defined in: [src/canvas/components/Sprite.ts:220](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L220) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-15] ###### \_value [#_value] `number` ##### Returns [#returns-39] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-128] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`percentageX`](/pixi-vn/index/classes/ImageSprite#percentagex) *** ### percentageY [#percentagey] #### Get Signature [#get-signature-20] \> **get** **percentageY**(): `number` Defined in: [src/canvas/components/Sprite.ts:226](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L226) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-40] `number` #### Set Signature [#set-signature-14] \> **set** **percentageY**(`_value`): `void` Defined in: [src/canvas/components/Sprite.ts:229](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L229) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-16] ###### \_value [#_value-1] `number` ##### Returns [#returns-41] `void` is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-129] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`percentageY`](/pixi-vn/index/classes/ImageSprite#percentagey) *** ### pivot [#pivot] #### Get Signature [#get-signature-21] \> **get** **pivot**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1023 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-75] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-42] `ObservablePoint` #### Set Signature [#set-signature-15] \> **set** **pivot**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1024 ##### Parameters [#parameters-17] ###### value [#value-13] `number` | `PointData` ##### Returns [#returns-43] `void` #### Inherited from [#inherited-from-130] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`pivot`](/pixi-vn/index/classes/ImageSprite#pivot) *** ### position [#position] #### Get Signature [#get-signature-22] \> **get** **position**(): `ObservablePoint` Defined in: [src/canvas/components/Sprite.ts:301](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L301) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-76] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-3] 4.0.0 ##### Returns [#returns-44] `ObservablePoint` #### Set Signature [#set-signature-16] \> **set** **position**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:304](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L304) The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-77] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Parameters [#parameters-18] ###### value [#value-14] `ObservablePoint` ##### Returns [#returns-45] `void` #### Inherited from [#inherited-from-131] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`position`](/pixi-vn/index/classes/ImageSprite#position) *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-23] \> **get** **positionInfo**(): `object` Defined in: [src/canvas/components/Sprite.ts:243](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L243) ##### Returns [#returns-46] `object` ###### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-17] \> **set** **positionInfo**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:253](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L253) ##### Parameters [#parameters-19] ###### value [#value-15] ###### type? [#type-1] `"pixel"` | `"percentage"` | `"align"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-47] `void` #### Inherited from [#inherited-from-132] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`positionInfo`](/pixi-vn/index/classes/ImageSprite#positioninfo) *** ### positionType [#positiontype] #### Get Signature [#get-signature-24] \> **get** **positionType**(): `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/Sprite.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L235) ##### Returns [#returns-48] `"pixel"` | `"percentage"` | `"align"` #### Inherited from [#inherited-from-133] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`positionType`](/pixi-vn/index/classes/ImageSprite#positiontype) *** ### renderable [#renderable] #### Get Signature [#get-signature-25] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-78] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-55] ```ts true ``` ##### See [#see-19] * [Container#visible](#visible) For skipping transform updates * [Container#alpha](#alpha) For transparency ##### Returns [#returns-49] `boolean` #### Set Signature [#set-signature-18] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-20] ###### value [#value-16] `boolean` ##### Returns [#returns-50] `void` #### Inherited from [#inherited-from-134] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`renderable`](/pixi-vn/index/classes/ImageSprite#renderable) *** ### rotation [#rotation] #### Get Signature [#get-signature-26] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-79] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-51] `number` #### Set Signature [#set-signature-19] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-21] ###### value [#value-17] `number` ##### Returns [#returns-52] `void` #### Inherited from [#inherited-from-135] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`rotation`](/pixi-vn/index/classes/ImageSprite#rotation) *** ### roundPixels [#roundpixels] #### Get Signature [#get-signature-27] \> **get** **roundPixels**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:86 Whether or not to round the x/y position of the sprite. ##### Example [#example-80] ```ts // Enable pixel rounding for crisp rendering view.roundPixels = true; ``` ##### Default [#default-56] ```ts false ``` ##### Returns [#returns-53] `boolean` #### Set Signature [#set-signature-20] \> **set** **roundPixels**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:87 Whether or not to round the x/y position of the object. ##### Parameters [#parameters-22] ###### value [#value-18] `boolean` ##### Returns [#returns-54] `void` #### Inherited from [#inherited-from-136] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`roundPixels`](/pixi-vn/index/classes/ImageSprite#roundpixels) *** ### scale [#scale] #### Get Signature [#get-signature-28] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-81] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-5] 4.0.0 ##### Returns [#returns-55] `ObservablePoint` #### Set Signature [#set-signature-21] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-23] ###### value [#value-19] `string` | `number` | `PointData` ##### Returns [#returns-56] `void` #### Inherited from [#inherited-from-137] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`scale`](/pixi-vn/index/classes/ImageSprite#scale) *** ### skew [#skew] #### Get Signature [#get-signature-29] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-82] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-6] 4.0.0 ##### Default [#default-57] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-57] `ObservablePoint` #### Set Signature [#set-signature-22] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-24] ###### value [#value-20] `PointData` ##### Returns [#returns-58] `void` #### Inherited from [#inherited-from-138] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`skew`](/pixi-vn/index/classes/ImageSprite#skew) *** ### texture [#texture] #### Get Signature [#get-signature-30] \> **get** **texture**(): `Texture`\<`TextureSource`\<`any`>> Defined in: [src/canvas/components/VideoSprite.ts:172](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L172) The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-83] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-20] * [Texture](/pixi-vn/index/variables/Texture) For texture creation and management * [Assets](/pixi-vn/index/variables/Assets) For asset loading ##### Returns [#returns-59] `Texture`\<`TextureSource`\<`any`>> #### Set Signature [#set-signature-23] \> **set** **texture**(`value`): `void` Defined in: [src/canvas/components/VideoSprite.ts:168](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L168) The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-84] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-21] * [Texture](/pixi-vn/index/variables/Texture) For texture creation and management * [Assets](/pixi-vn/index/variables/Assets) For asset loading ##### Parameters [#parameters-25] ###### value [#value-21] `Texture`\<`TextureSource`\<`any`>> ##### Returns [#returns-60] `void` #### Overrides [#overrides-3] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`texture`](/pixi-vn/index/classes/ImageSprite#texture) *** ### textureAlias [#texturealias-1] #### Get Signature [#get-signature-31] \> **get** `protected` **textureAlias**(): `string` Defined in: [src/canvas/components/ImageSprite.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ImageSprite.ts#L45) ##### Returns [#returns-61] `string` #### Inherited from [#inherited-from-139] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`textureAlias`](/pixi-vn/index/classes/ImageSprite#texturealias) *** ### tint [#tint] #### Get Signature [#get-signature-32] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-85] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-58] ```ts 0xFFFFFF ``` ##### See [#see-22] * [Container#alpha](#alpha) For transparency * [Container#visible](#visible) For visibility control ##### Returns [#returns-62] `number` #### Set Signature [#set-signature-24] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-26] ###### value [#value-22] `ColorSource` ##### Returns [#returns-63] `void` #### Inherited from [#inherited-from-140] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`tint`](/pixi-vn/index/classes/ImageSprite#tint) *** ### visible [#visible] #### Get Signature [#get-signature-33] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-86] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-59] ```ts true ``` ##### See [#see-23] * [Container#renderable](#renderable) For render-only control * [Container#alpha](#alpha) For transparency ##### Returns [#returns-64] `boolean` #### Set Signature [#set-signature-25] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-27] ###### value [#value-23] `boolean` ##### Returns [#returns-65] `void` #### Inherited from [#inherited-from-141] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`visible`](/pixi-vn/index/classes/ImageSprite#visible) *** ### visualBounds [#visualbounds] #### Get Signature [#get-signature-34] \> **get** **visualBounds**(): `BoundsData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:205 The bounds of the sprite, taking into account the texture's trim area. ##### Example [#example-87] ````ts const texture = new Texture({ source: new TextureSource({ width: 300, height: 300 }), frame: new Rectangle(196, 66, 58, 56), trim: new Rectangle(4, 4, 58, 56), orig: new Rectangle(0, 0, 64, 64), rotate: 2, }); const sprite = new Sprite(texture); const visualBounds = sprite.visualBounds; // console.log(visualBounds); // { minX: -4, maxX: 62, minY: -4, maxY: 60 } ##### Returns `BoundsData` #### Inherited from [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`visualBounds`](/pixi-vn/index/classes/ImageSprite#visualbounds) *** ### width #### Get Signature > **get** **width**(): `number` Defined in: node\_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:278 The width of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example ```ts // Set width directly sprite.width = 200; console.log(sprite.scale.x); // Scale adjusted to match width // Set width while preserving aspect ratio const ratio = sprite.height / sprite.width; sprite.width = 300; sprite.height = 300 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.width = sprite.texture.orig.width; ```` ##### Returns [#returns-66] `number` #### Set Signature [#set-signature-26] > **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:279 The width of the Container, setting this will actually modify the scale to achieve the value set. > \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. > \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) > as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-88] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Parameters [#parameters-28] ###### value [#value-24] `number` ##### Returns [#returns-67] `void` #### Inherited from [#inherited-from-142] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`width`](/pixi-vn/index/classes/ImageSprite#width) *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-35] > **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-89] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-24] [Container#localTransform](#localtransform) For local space transform ##### Returns [#returns-68] `Matrix` #### Inherited from [#inherited-from-143] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`worldTransform`](/pixi-vn/index/classes/ImageSprite#worldtransform) *** ### x [#x-2] #### Get Signature [#get-signature-36] > **get** **x**(): `number` Defined in: [src/canvas/components/Sprite.ts:309](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L309) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-90] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-69] `number` #### Set Signature [#set-signature-27] > **set** **x**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:312](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L312) The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-91] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-29] ###### value [#value-25] `number` ##### Returns [#returns-70] `void` #### Inherited from [#inherited-from-144] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`x`](/pixi-vn/index/classes/ImageSprite#x) *** ### xAlign [#xalign] #### Get Signature [#get-signature-37] > **get** **xAlign**(): `number` Defined in: [src/canvas/components/Sprite.ts:168](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L168) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-71] `number` #### Set Signature [#set-signature-28] > **set** **xAlign**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:162](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L162) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-30] ###### value [#value-26] `number` ##### Returns [#returns-72] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-145] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`xAlign`](/pixi-vn/index/classes/ImageSprite#xalign) *** ### y [#y-2] #### Get Signature [#get-signature-38] > **get** **y**(): `number` Defined in: [src/canvas/components/Sprite.ts:317](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L317) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-92] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-73] `number` #### Set Signature [#set-signature-29] > **set** **y**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:320](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L320) The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-93] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-31] ###### value [#value-27] `number` ##### Returns [#returns-74] `void` #### Inherited from [#inherited-from-146] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`y`](/pixi-vn/index/classes/ImageSprite#y) *** ### yAlign [#yalign] #### Get Signature [#get-signature-39] > **get** **yAlign**(): `number` Defined in: [src/canvas/components/Sprite.ts:186](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L186) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-75] `number` #### Set Signature [#set-signature-30] > **set** **yAlign**(`value`): `void` Defined in: [src/canvas/components/Sprite.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L180) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-32] ###### value [#value-28] `number` ##### Returns [#returns-76] `void` is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-147] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`yAlign`](/pixi-vn/index/classes/ImageSprite#yalign) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] > **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-33] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds-1] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-77] `void` #### Inherited from [#inherited-from-148] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_getGlobalBoundsRecursive`](/pixi-vn/index/classes/ImageSprite#_getglobalboundsrecursive) *** ### \_onTouch()? [#_ontouch] > `optional` **\_onTouch**(`now`): `void` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:31 An optional callback for when an item is touched #### Parameters [#parameters-34] ##### now [#now] `number` #### Returns [#returns-78] `void` #### Inherited from [#inherited-from-149] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`_onTouch`](/pixi-vn/index/classes/ImageSprite#_ontouch) *** ### addChild() [#addchild] > **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters] ##### U [#u] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-35] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-79] `U`\[`0`] The first child that was added #### Example [#example-94] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-25] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For adding at specific index #### Inherited from [#inherited-from-150] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`addChild`](/pixi-vn/index/classes/ImageSprite#addchild) *** ### addChildAt() [#addchildat] > **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-1] ##### U [#u-1] `U` *extends* `ContainerChild` #### Parameters [#parameters-36] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-80] `U` The child that was added #### Example [#example-95] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-26] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to the end * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For moving existing children #### Inherited from [#inherited-from-151] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`addChildAt`](/pixi-vn/index/classes/ImageSprite#addchildat) *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] > **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-2] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-37] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options-1] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-81] `void` ##### Example [#example-96] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-152] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`addEventListener`](/pixi-vn/index/classes/ImageSprite#addeventlistener) #### Call Signature [#call-signature-1] > **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-38] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-2] `AddListenerOptions` ##### Returns [#returns-82] `void` ##### Inherited from [#inherited-from-153] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`addEventListener`](/pixi-vn/index/classes/ImageSprite#addeventlistener) *** ### addListener() [#addlistener] > **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-3] ##### T [#t] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-39] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-83] `this` #### Inherited from [#inherited-from-154] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`addListener`](/pixi-vn/index/classes/ImageSprite#addlistener) *** ### collectRenderables() [#collectrenderables] > **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-40] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-84] `void` #### Inherited from [#inherited-from-155] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`collectRenderables`](/pixi-vn/index/classes/ImageSprite#collectrenderables) *** ### collectRenderablesSimple() [#collectrenderablessimple] > **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:119 **`Internal`** Collects renderables for the view container. #### Parameters [#parameters-41] ##### instructionSet [#instructionset-1] `InstructionSet` The instruction set to collect renderables for. ##### renderer [#renderer-1] `Renderer` The renderer to collect renderables for. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer. #### Returns [#returns-85] `void` #### Inherited from [#inherited-from-156] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`collectRenderablesSimple`](/pixi-vn/index/classes/ImageSprite#collectrenderablessimple) *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] > **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-42] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-86] `void` #### Inherited from [#inherited-from-157] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`collectRenderablesWithEffects`](/pixi-vn/index/classes/ImageSprite#collectrenderableswitheffects) *** ### containsPoint() [#containspoint] > **containsPoint**(`point`): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:104 Checks if the object contains the given point in local coordinates. Uses the view's bounds for hit testing. #### Parameters [#parameters-43] ##### point [#point] `PointData` The point to check in local coordinates #### Returns [#returns-87] `boolean` True if the point is within the view's bounds #### Example [#example-97] ```ts // Basic point check const localPoint = { x: 50, y: 25 }; const contains = view.containsPoint(localPoint); console.log('Point is inside:', contains); ``` #### See [#see-27] * [ViewContainer#bounds](#bounds) For the bounds used in hit testing * [Container#toLocal](#tolocal) For converting global coordinates to local #### Inherited from [#inherited-from-158] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`containsPoint`](/pixi-vn/index/classes/ImageSprite#containspoint) *** ### destroy() [#destroy] > **destroy**(`options?`): `void` Defined in: [src/canvas/components/VideoSprite.ts:176](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L176) Destroys this sprite renderable and optionally its texture. #### Parameters [#parameters-44] ##### options? [#options-3] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-88] `void` #### Example [#example-98] ```ts sprite.destroy(); sprite.destroy(true); sprite.destroy({ texture: true, textureSource: true }); ``` #### Overrides [#overrides-4] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`destroy`](/pixi-vn/index/classes/ImageSprite#destroy) *** ### disableRenderGroup() [#disablerendergroup] > **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-89] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-159] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`disableRenderGroup`](/pixi-vn/index/classes/ImageSprite#disablerendergroup) *** ### dispatchEvent() [#dispatchevent] > **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this [Container](/pixi-vn/index/classes/Container) using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-45] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-90] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-99] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-160] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`dispatchEvent`](/pixi-vn/index/classes/ImageSprite#dispatchevent) *** ### emit() [#emit] > **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-4] ##### T [#t-1] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-46] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`ContainerChild`> & `AnyEvent`>\[`Extract`\<`T`, keyof ContainerEvents\ | keyof AnyEvent>] #### Returns [#returns-91] `boolean` #### Inherited from [#inherited-from-161] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`emit`](/pixi-vn/index/classes/ImageSprite#emit) *** ### enableRenderGroup() [#enablerendergroup] > **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-92] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-162] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`enableRenderGroup`](/pixi-vn/index/classes/ImageSprite#enablerendergroup) *** ### eventNames() [#eventnames] > **eventNames**(): (keyof ContainerEvents\ | keyof AnyEvent)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-93] (keyof ContainerEvents\ | keyof AnyEvent)\[] #### Inherited from [#inherited-from-163] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`eventNames`](/pixi-vn/index/classes/ImageSprite#eventnames) *** ### getBounds() [#getbounds] > **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-47] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-2] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-94] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-100] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-28] * [Container#getLocalBounds](#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-164] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getBounds`](/pixi-vn/index/classes/ImageSprite#getbounds) *** ### getChildAt() [#getchildat] > **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-5] ##### U [#u-2] `U` *extends* `ContainerChild` #### Parameters [#parameters-48] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-95] `U` The child at the given index #### Example [#example-101] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-29] * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-165] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getChildAt`](/pixi-vn/index/classes/ImageSprite#getchildat) *** ### getChildByLabel() [#getchildbylabel] > **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-49] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-96] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-102] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-30] * [Container#getChildrenByLabel](/pixi-vn/index/classes/Container#getchildrenbylabel) For finding all matches * [Container#label](#label) For setting labels #### Inherited from [#inherited-from-166] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getChildByLabel`](/pixi-vn/index/classes/ImageSprite#getchildbylabel) *** ### ~~getChildByName()~~ [#getchildbyname] > **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-50] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-97] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-31] Container#getChildByLabel #### Inherited from [#inherited-from-167] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getChildByName`](/pixi-vn/index/classes/ImageSprite#getchildbyname) *** ### getChildIndex() [#getchildindex] > **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-51] ##### child [#child-1] `ContainerChild` The Container instance to identify #### Returns [#returns-98] `number` The index position of the child container #### Example [#example-103] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-3] If child is not in this container #### See [#see-32] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For changing index * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access #### Inherited from [#inherited-from-168] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getChildIndex`](/pixi-vn/index/classes/ImageSprite#getchildindex) *** ### getChildrenByLabel() [#getchildrenbylabel] > **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-52] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-99] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-104] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-33] * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For finding first match * [Container#label](#label) For setting labels #### Inherited from [#inherited-from-169] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getChildrenByLabel`](/pixi-vn/index/classes/ImageSprite#getchildrenbylabel) *** ### getFastGlobalBounds() [#getfastglobalbounds] > **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-53] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-3] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-100] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-170] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getFastGlobalBounds`](/pixi-vn/index/classes/ImageSprite#getfastglobalbounds) *** ### getGlobalAlpha() [#getglobalalpha] > **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-54] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-101] `number` The resulting alpha value (between 0 and 1) #### Example [#example-105] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-171] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getGlobalAlpha`](/pixi-vn/index/classes/ImageSprite#getglobalalpha) *** ### getGlobalPosition() [#getglobalposition] > **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-55] ##### point? [#point-1] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-102] `Point` The updated point #### Example [#example-106] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-34] * [Container#toGlobal](#toglobal) For converting specific points * [Container#toLocal](#tolocal) For converting to local space #### Inherited from [#inherited-from-172] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getGlobalPosition`](/pixi-vn/index/classes/ImageSprite#getglobalposition) *** ### getGlobalTint() [#getglobaltint] > **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-56] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-103] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-107] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-173] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getGlobalTint`](/pixi-vn/index/classes/ImageSprite#getglobaltint) *** ### getGlobalTransform() [#getglobaltransform] > **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-57] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-104] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-108] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-174] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getGlobalTransform`](/pixi-vn/index/classes/ImageSprite#getglobaltransform) *** ### getLocalBounds() [#getlocalbounds] > **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-105] `Bounds` The bounding area #### Example [#example-109] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-35] * [Container#getBounds](#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-175] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getLocalBounds`](/pixi-vn/index/classes/ImageSprite#getlocalbounds) *** ### getSize() [#getsize] > **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:322 Retrieves the size of the Sprite as a \[Size]Size object based on the texture dimensions and scale. This is faster than getting width and height separately as it only calculates the bounds once. #### Parameters [#parameters-58] ##### out? [#out-1] `Size` Optional object to store the size in, to avoid allocating a new object #### Returns [#returns-106] `Size` The size of the Sprite #### Example [#example-110] ```ts // Basic size retrieval const sprite = new Sprite(Texture.from('sprite.png')); const size = sprite.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; sprite.getSize(reuseSize); ``` #### See [#see-36] * [Sprite#width](/pixi-vn/index/classes/Sprite#width) For getting just the width * [Sprite#height](/pixi-vn/index/classes/Sprite#height) For getting just the height * [Sprite#setSize](/pixi-vn/index/classes/Sprite#setsize) For setting both width and height #### Inherited from [#inherited-from-176] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`getSize`](/pixi-vn/index/classes/ImageSprite#getsize) *** ### listenerCount() [#listenercount] > **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-59] ##### event [#event-2] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-107] `number` #### Inherited from [#inherited-from-177] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`listenerCount`](/pixi-vn/index/classes/ImageSprite#listenercount) *** ### listeners() [#listeners] > **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-6] ##### T [#t-2] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-60] ##### event [#event-3] `T` #### Returns [#returns-108] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-178] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`listeners`](/pixi-vn/index/classes/ImageSprite#listeners) *** ### load() [#load] > **load**(): `Promise`\<`void`> Defined in: [src/canvas/components/VideoSprite.ts:132](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L132) Load the video and set the texture of the sprite. The video events are not emitted during the loading. #### Returns [#returns-109] `Promise`\<`void`> A promise that resolves when the video is loaded. #### Overrides [#overrides-5] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`load`](/pixi-vn/index/classes/ImageSprite#load) *** ### off() [#off] > **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-7] ##### T [#t-3] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-61] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-110] `this` #### Inherited from [#inherited-from-179] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`off`](/pixi-vn/index/classes/ImageSprite#off) *** ### on() [#on] Add a listener for a given event. #### Example [#example-111] ```ts export class Events { \@eventDecorator() static eventExample(event: FederatedEvent, component: Sprite) { // event code here } } sprite.on("pointerdown", Events.eventExample); ``` #### Call Signature [#call-signature-2] > **on**(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/VideoSprite.ts:184](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L184) Add a listener for the `"ended"` video event. Register the listener with `eventDecorator` to save it. ##### Parameters [#parameters-62] ###### event [#event-5] `"ended"` ###### fn [#fn-2] (`component`) => `void` ###### context? [#context-2] `any` ##### Returns [#returns-111] `this` ##### Overrides [#overrides-6] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`on`](/pixi-vn/index/classes/ImageSprite#on) #### Call Signature [#call-signature-3] > **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: [src/canvas/components/VideoSprite.ts:185](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L185) Add a listener for the `"ended"` video event. Register the listener with `eventDecorator` to save it. ##### Type Parameters [#type-parameters-8] ###### T [#t-4] `T` *extends* [`ListenerEventName`](/pixi-vn/index/type-aliases/ListenerEventName) ##### Parameters [#parameters-63] ###### event [#event-6] `T` ###### fn [#fn-3] (...`args`) => `void` ###### context? [#context-3] `any` ##### Returns [#returns-112] `this` ##### Overrides [#overrides-7] `ImageSprite.on` *** ### once() [#once-1] > **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-5] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-64] ##### event [#event-7] `T` ##### fn [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` #### Returns [#returns-113] `this` #### Inherited from [#inherited-from-180] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`once`](/pixi-vn/index/classes/ImageSprite#once) *** ### pause() [#pause] > **pause**(): `void` Defined in: [src/canvas/components/VideoSprite.ts:242](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L242) Pause the video. If the video is suspended by `canvas.pause()`, it stays paused after `canvas.resume()`. #### Returns [#returns-114] `void` *** ### play() [#play] > **play**(): `void` Defined in: [src/canvas/components/VideoSprite.ts:255](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L255) Play the video. If this sprite is suspended by `canvas.pause()`, the video starts playing on `canvas.resume()`. #### Returns [#returns-115] `void` *** ### reloadPosition() [#reloadposition] > `protected` **reloadPosition**(): `void` Defined in: [src/canvas/components/Sprite.ts:262](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Sprite.ts#L262) #### Returns [#returns-116] `void` #### Inherited from [#inherited-from-181] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`reloadPosition`](/pixi-vn/index/classes/ImageSprite#reloadposition) *** ### removeAllListeners() [#removealllisteners] > **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-65] ##### event? [#event-8] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-117] `this` #### Inherited from [#inherited-from-182] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeAllListeners`](/pixi-vn/index/classes/ImageSprite#removealllisteners) *** ### removeChild() [#removechild] > **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-10] ##### U [#u-3] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-66] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-118] `U`\[`0`] The first child that was removed #### Example [#example-112] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-37] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-183] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeChild`](/pixi-vn/index/classes/ImageSprite#removechild) *** ### removeChildAt() [#removechildat] > **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-11] ##### U [#u-4] `U` *extends* `ContainerChild` #### Parameters [#parameters-67] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-119] `U` The child that was removed #### Example [#example-113] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-4] If index is out of bounds #### See [#see-38] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-184] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeChildAt`](/pixi-vn/index/classes/ImageSprite#removechildat) *** ### removeChildren() [#removechildren] > **removeChildren**(`beginIndex?`, `endIndex?`): `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-68] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-120] `ContainerChild`\[] List of removed children #### Example [#example-114] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-5] If begin/end indexes are invalid #### See [#see-39] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children #### Inherited from [#inherited-from-185] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeChildren`](/pixi-vn/index/classes/ImageSprite#removechildren) *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-4] > **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-12] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-69] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-4] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-121] `void` ##### Inherited from [#inherited-from-186] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeEventListener`](/pixi-vn/index/classes/ImageSprite#removeeventlistener) #### Call Signature [#call-signature-5] > **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-70] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-5] `RemoveListenerOptions` ##### Returns [#returns-122] `void` ##### Inherited from [#inherited-from-187] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeEventListener`](/pixi-vn/index/classes/ImageSprite#removeeventlistener) *** ### removeFromParent() [#removefromparent] > **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-123] `void` #### Example [#example-115] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-40] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a new parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For parent removing children #### Inherited from [#inherited-from-188] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeFromParent`](/pixi-vn/index/classes/ImageSprite#removefromparent) *** ### removeListener() [#removelistener] > **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-13] ##### T [#t-6] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-71] ##### event [#event-9] `T` ##### fn? [#fn-5] (...`args`) => `void` ##### context? [#context-5] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-124] `this` #### Inherited from [#inherited-from-189] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`removeListener`](/pixi-vn/index/classes/ImageSprite#removelistener) *** ### reparentChild() [#reparentchild] > **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-14] ##### U [#u-5] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-72] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-125] `U`\[`0`] The first child that was reparented #### Example [#example-116] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-41] * [Container#reparentChildAt](/pixi-vn/index/classes/Container#reparentchildat) For index-specific reparenting * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For simple parenting #### Inherited from [#inherited-from-190] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`reparentChild`](/pixi-vn/index/classes/ImageSprite#reparentchild) *** ### reparentChildAt() [#reparentchildat] > **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-6] `U` *extends* `ContainerChild` #### Parameters [#parameters-73] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-126] `U` The reparented child #### Example [#example-117] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-6] If index is out of bounds #### See [#see-42] * [Container#reparentChild](/pixi-vn/index/classes/Container#reparentchild) For appending reparented children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-191] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`reparentChildAt`](/pixi-vn/index/classes/ImageSprite#reparentchildat) *** ### replaceChild() [#replacechild] > **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-16] ##### U [#u-7] `U` *extends* `ContainerChild` ##### T [#t-7] `T` *extends* `ContainerChild` #### Parameters [#parameters-74] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-127] `void` #### Inherited from [#inherited-from-192] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`replaceChild`](/pixi-vn/index/classes/ImageSprite#replacechild) *** ### restart() [#restart] > **restart**(): `void` Defined in: [src/canvas/components/VideoSprite.ts:293](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L293) Restart the video. #### Returns [#returns-128] `void` *** ### setChildIndex() [#setchildindex] > **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-75] ##### child [#child-4] `ContainerChild` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-129] `void` #### Example [#example-118] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-7] If index is out of bounds #### Throws [#throws-8] If child is not in container #### See [#see-43] * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current index * [Container#swapChildren](/pixi-vn/index/classes/Container#swapchildren) For swapping positions #### Inherited from [#inherited-from-193] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`setChildIndex`](/pixi-vn/index/classes/ImageSprite#setchildindex) *** ### setFromMatrix() [#setfrommatrix] > **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-76] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-130] `void` #### Example [#example-119] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-44] * [Container#updateTransform](/pixi-vn/index/classes/Container#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-194] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`setFromMatrix`](/pixi-vn/index/classes/ImageSprite#setfrommatrix) *** ### setMask() [#setmask] > **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-77] ##### options [#options-6] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-131] `void` #### Example [#example-120] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-45] * [Container#mask](#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-195] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`setMask`](/pixi-vn/index/classes/ImageSprite#setmask) *** ### setMemory() [#setmemory] > **setMemory**(`value`): `Promise`\<`void`> Defined in: [src/canvas/components/VideoSprite.ts:115](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L115) This method set the memory of the canvas element. #### Parameters [#parameters-78] ##### value [#value-29] [`VideoSpriteMemory`](/pixi-vn/index/interfaces/VideoSpriteMemory) #### Returns [#returns-132] `Promise`\<`void`> #### Throws [#throws-9] when the method is not overridden in the subclass. #### Overrides [#overrides-8] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`setMemory`](/pixi-vn/index/classes/ImageSprite#setmemory) *** ### setSize() [#setsize] > **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:353 Sets the size of the Sprite to the specified width and height. This is faster than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-79] ##### value [#value-30] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a Size object ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided #### Returns [#returns-133] `void` #### Example [#example-121] ```ts // Basic size setting const sprite = new Sprite(Texture.from('sprite.png')); sprite.setSize(100, 200); // Width: 100, Height: 200 // Set uniform size sprite.setSize(100); // Sets both width and height to 100 // Set size with object sprite.setSize({ width: 200, height: 300 }); // Reset to texture size sprite.setSize( sprite.texture.orig.width, sprite.texture.orig.height ); ``` #### See [#see-46] * [Sprite#width](/pixi-vn/index/classes/Sprite#width) For setting width only * [Sprite#height](/pixi-vn/index/classes/Sprite#height) For setting height only * [Sprite#texture](/pixi-vn/index/classes/Sprite#texture) For the source dimensions #### Inherited from [#inherited-from-196] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`setSize`](/pixi-vn/index/classes/ImageSprite#setsize) *** ### swapChildren() [#swapchildren] > **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-17] ##### U [#u-8] `U` *extends* `ContainerChild` #### Parameters [#parameters-80] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-134] `void` #### Example [#example-122] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-10] If either child is not in container #### See [#see-47] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For direct index placement * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current positions #### Inherited from [#inherited-from-197] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`swapChildren`](/pixi-vn/index/classes/ImageSprite#swapchildren) *** ### toGlobal() [#toglobal] > **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-18] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-81] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-2] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-135] `P` The global position #### Example [#example-123] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-48] * [Container#toLocal](#tolocal) For reverse conversion * [Container#getGlobalPosition](#getglobalposition) For container position #### Inherited from [#inherited-from-198] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`toGlobal`](/pixi-vn/index/classes/ImageSprite#toglobal) *** ### toLocal() [#tolocal] > **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-19] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-82] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-3] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-136] `P` A point object representing the position in local space #### Example [#example-124] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-49] * [Container#toGlobal](#toglobal) For reverse conversion * [Container#getGlobalPosition](#getglobalposition) For container position #### Inherited from [#inherited-from-199] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`toLocal`](/pixi-vn/index/classes/ImageSprite#tolocal) *** ### unload() [#unload] > **unload**(): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:110 Unloads the GPU data from the view. #### Returns [#returns-137] `void` #### Inherited from [#inherited-from-200] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`unload`](/pixi-vn/index/classes/ImageSprite#unload) *** ### updateLocalTransform() [#updatelocaltransform] > **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-138] `void` #### Inherited from [#inherited-from-201] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`updateLocalTransform`](/pixi-vn/index/classes/ImageSprite#updatelocaltransform) *** ### updateTransform() [#updatetransform] > **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-83] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-139] `this` This container, for chaining #### Example [#example-125] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-50] * [Container#setFromMatrix](/pixi-vn/index/classes/Container#setfrommatrix) For matrix-based transforms * [Container#position](/pixi-vn/index/interfaces/CanvasBaseInterface#position) For direct position access #### Inherited from [#inherited-from-202] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`updateTransform`](/pixi-vn/index/classes/ImageSprite#updatetransform) *** ### withSilentEvents() [#withsilentevents] > **withSilentEvents**\<`T`>(`fn`): `Promise`\<`T`> Defined in: [src/canvas/components/VideoSprite.ts:148](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L148) **`Internal`** Run `fn` without emitting the video events (see [VideoSpriteEventType](/pixi-vn/index/type-aliases/VideoSpriteEventType)). #### Type Parameters [#type-parameters-20] ##### T [#t-8] `T` #### Parameters [#parameters-84] ##### fn [#fn-6] () => `T` | `Promise`\<`T`> #### Returns [#returns-140] `Promise`\<`T`> *** ### from() [#from-1] > `static` **from**(`source`, `skipCache?`): `VideoSprite` Defined in: [src/canvas/components/VideoSprite.ts:121](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L121) Creates a new sprite based on a source texture, image, video, or canvas element. This is a convenience method that automatically creates and manages textures. #### Parameters [#parameters-85] ##### source [#source] `Texture`\<`TextureSource`\<`any`>> | [`TextureSourceLike`](/pixi-vn/index/type-aliases/TextureSourceLike) The source to create the sprite from. Can be a path to an image, a texture, or any valid texture source (canvas, video, etc.) ##### skipCache? [#skipcache] `boolean` Whether to skip adding to the texture cache when creating a new texture #### Returns [#returns-141] `VideoSprite` A new sprite based on the source #### Example [#example-126] ```ts // Create from path or URL const sprite = Sprite.from('assets/image.png'); // Create from existing texture const sprite = Sprite.from(texture); // Create from canvas const canvas = document.createElement('canvas'); const sprite = Sprite.from(canvas, true); // Skip caching new texture ``` #### See [#see-51] * Texture.from For texture creation details * [Assets](/pixi-vn/index/variables/Assets) For asset loading and management #### Overrides [#overrides-9] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`from`](/pixi-vn/index/classes/ImageSprite#from) *** ### ~~mixin()~~ [#mixin] \> `static` **mixin**(`source`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:605 Mixes all enumerable properties and methods from a source object to Container. #### Parameters [#parameters-86] ##### source [#source-1] `Dict`\<`any`> The source of properties and methods to mix in. #### Returns [#returns-142] `void` #### Deprecated [#deprecated-3] since 8.8.0 #### Inherited from [#inherited-from-203] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite).[`mixin`](/pixi-vn/index/classes/ImageSprite#mixin) # Function: addAnimatedSprite() (/pixi-vn/index/functions/addAnimatedSprite) ## Call Signature [#call-signature] \> **addAnimatedSprite**(`alias`, `options?`): [`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite) Defined in: [src/canvas/functions/animated-sprite-utility.ts:77](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/animated-sprite-utility.ts#L77) Add an animated sprite in the canvas, using `alias` as the spritesheet alias. The frames are not loaded: use [AnimatedSprite.load](/pixi-vn/index/classes/AnimatedSprite#load). ### Parameters [#parameters] #### alias [#alias] `string` The unique alias of the component, also used as the alias of the spritesheet (it must be registered in the asset cache or manifest). #### options? [#options] [`AnimatedSpriteOptions`](/pixi-vn/index/interfaces/AnimatedSpriteOptions) The options of the animated sprite. ### Returns [#returns] [`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite) This function returns an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite) that you can use to manipulate the component. ### Throws [#throws] when `alias` is not registered in the asset cache. ### Example [#example] ```ts Assets.add({ alias: "fighter", src: "https://pixijs.com/assets/spritesheet/fighter.json" }); const fighter = addAnimatedSprite("fighter", { align: 0.5, animationSpeed: 0.4 }); await fighter.load(); ``` ## Call Signature [#call-signature-1] \> **addAnimatedSprite**(`alias`, `source?`, `options?`): [`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite) Defined in: [src/canvas/functions/animated-sprite-utility.ts:98](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/animated-sprite-utility.ts#L98) Add an animated sprite in the canvas. Is the same that [showAnimatedSprite](/pixi-vn/index/functions/showAnimatedSprite), but the frames are not loaded. If you want to show the animated sprite, then you need to use the function [AnimatedSprite.load](/pixi-vn/index/classes/AnimatedSprite#load). ### Parameters [#parameters-1] #### alias [#alias-1] `string` The unique alias of the animated sprite. You can use this alias to refer to this component. #### source? [#source] `string` | [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) The frames of the animation: the alias/URL of a spritesheet, or an [AnimatedSpriteSource](/pixi-vn/index/interfaces/AnimatedSpriteSource). If you don't provide it, or it has no `spritesheet` and no `frames` (e.g. `{ animation: "walk" }`), the alias is used as the spritesheet alias. #### options? [#options-1] [`AnimatedSpriteOptions`](/pixi-vn/index/interfaces/AnimatedSpriteOptions) The options of the animated sprite. ### Returns [#returns-1] [`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite) This function returns an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite) that you can use to manipulate the component. ### Throws [#throws-1] when `source` is not provided and `alias` is not registered in the asset cache. ### Example [#example-1] ```ts Assets.add({ alias: "fighter", src: "https://pixijs.com/assets/spritesheet/fighter.json" }); // a different alias for the component: (alias, spritesheetAlias, options) const myFighter = addAnimatedSprite("myFighter", "fighter", { loop: true }); await myFighter.load(); myFighter.play(); ``` # Function: addImage() (/pixi-vn/index/functions/addImage) ## Call Signature [#call-signature] \> **addImage**(`alias`, `options?`): [`ImageSprite`](/pixi-vn/index/classes/ImageSprite) Defined in: [src/canvas/functions/image-utility.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/image-utility.ts#L21) Add a image in the canvas, using `alias` as the image alias. The image is not shown: use [ImageSprite.load](/pixi-vn/index/classes/ImageSprite#load). ### Parameters [#parameters] #### alias [#alias] `string` The unique alias of the component, also used as the alias of the asset (it must be registered in the asset cache or manifest). #### options? [#options] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions) The options of the image. ### Returns [#returns] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite) This function returns an [ImageSprite](/pixi-vn/index/classes/ImageSprite) that you can use to manipulate the component. ### Throws [#throws] when `alias` is not registered in the asset cache. ### Example [#example] ```ts Assets.add({ alias: "bunny", src: "https://pixijs.com/assets/bunny.png" }); const bunny = addImage("bunny", { xAlign: 0.5 }); await bunny.load(); ``` ## Call Signature [#call-signature-1] \> **addImage**(`alias`, `imageUrl?`, `options?`): [`ImageSprite`](/pixi-vn/index/classes/ImageSprite) Defined in: [src/canvas/functions/image-utility.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/image-utility.ts#L43) Add a image in the canvas. Is the same that [showImage](/pixi-vn/index/functions/showImage), but the image is not shown. If you want to show the image, then you need to use the function [ImageSprite.load](/pixi-vn/index/classes/ImageSprite#load). ### Parameters [#parameters-1] #### alias [#alias-1] `string` is the unique alias of the image. You can use this alias to refer to this image #### imageUrl? [#imageurl] `string` The url of the image. If you have initialized the "asset matrix", you can use the alias of the texture. If you don't provide the URL, then the alias is used as the URL. #### options? [#options-1] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions) The options of the image. ### Returns [#returns-1] [`ImageSprite`](/pixi-vn/index/classes/ImageSprite) This function returns an [ImageSprite](/pixi-vn/index/classes/ImageSprite) that you can use to manipulate the component. ### Throws [#throws-1] when `imageUrl` is not provided and `alias` is not registered in the asset cache. ### Example [#example-1] ```ts Assets.add({ alias: "bunny", src: "https://pixijs.com/assets/bunny.png" }); // "bunny" is the alias of the component and of the asset const bunny1 = addImage("bunny"); await bunny1.load(); // a different alias for the component: (alias, assetAlias, options) const bunny2 = addImage("bunny2", "bunny", { xAlign: 1 }); await bunny2.load(); ``` # Function: addImageCointainer() (/pixi-vn/index/functions/addImageCointainer) \> **addImageCointainer**(`alias`, `imageUrls`, `options?`): [`ImageContainer`](/pixi-vn/index/classes/ImageContainer) Defined in: [src/canvas/functions/image-container-utility.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/image-container-utility.ts#L22) Add a list of images in the container, after that, the images are added to the canvas. Is the same that [showImageContainer](/pixi-vn/index/functions/showImageContainer), but the image is not shown. If you want to show the container, then you need to use the function [()](/pixi-vn/index/classes/ImageSprite#load). ## Parameters [#parameters] ### alias [#alias] `string` is the unique alias of the container. You can use this alias to refer to this container ### imageUrls [#imageurls] `string`\[] is the url of the image. If you don't provide the url, then the alias is used as the url. ### options? [#options] [`ImageContainerOptions`](/pixi-vn/index/interfaces/ImageContainerOptions)\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> The options of the container. ## Returns [#returns] [`ImageContainer`](/pixi-vn/index/classes/ImageContainer) This function returns an [ImageContainer](/pixi-vn/index/classes/ImageContainer) that you can use to manipulate the component. ## Example [#example] ```ts Assets.add({ alias: "bunny-body", src: "https://pixijs.com/assets/bunny-body.png" }); Assets.add({ alias: "bunny-eyes", src: "https://pixijs.com/assets/bunny-eyes.png" }); const bunny = addImageCointainer("bunny", ["bunny-body", "bunny-eyes"]); await bunny.load(); ``` # Function: addListenerHandler() (/pixi-vn/index/functions/addListenerHandler) \> **addListenerHandler**\<`T`>(`event`, `element`, `fn`): `boolean` Defined in: [src/canvas/components/ListenerExtension.ts:76](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L76) ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* [`ListenerExtension`](/pixi-vn/index/interfaces/ListenerExtension) ## Parameters [#parameters] ### event [#event] `string` | `symbol` ### element [#element] `T` ### fn [#fn] (...`args`) => `unknown` ## Returns [#returns] `boolean` # Function: addVideo() (/pixi-vn/index/functions/addVideo) ## Call Signature [#call-signature] \> **addVideo**(`alias`, `options?`): [`VideoSprite`](/pixi-vn/index/classes/VideoSprite) Defined in: [src/canvas/functions/video-utility.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/video-utility.ts#L21) Add a video in the canvas, using `alias` as the video alias. The video is not shown: use [VideoSprite.load](/pixi-vn/index/classes/VideoSprite#load). ### Parameters [#parameters] #### alias [#alias] `string` The unique alias of the component, also used as the alias of the asset (it must be registered in the asset cache or manifest). #### options? [#options] [`VideoSpriteOptions`](/pixi-vn/index/interfaces/VideoSpriteOptions) The options of the video. ### Returns [#returns] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite) This function returns an [VideoSprite](/pixi-vn/index/classes/VideoSprite) that you can use to manipulate the component. ### Throws [#throws] when `alias` is not registered in the asset cache. ### Example [#example] ```ts Assets.add({ alias: "film", src: "https://pixijs.com/assets/video.mp4" }); const film = addVideo("film", { xAlign: 0.5 }); await film.load(); ``` ## Call Signature [#call-signature-1] \> **addVideo**(`alias`, `videoUrl?`, `options?`): [`VideoSprite`](/pixi-vn/index/classes/VideoSprite) Defined in: [src/canvas/functions/video-utility.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/video-utility.ts#L43) Add a video in the canvas. Is the same that [showVideo](/pixi-vn/index/functions/showVideo), but the video is not shown. If you want to show the video, then you need to use the function [()](/pixi-vn/index/classes/VideoSprite#load). ### Parameters [#parameters-1] #### alias [#alias-1] `string` is the unique alias of the video. You can use this alias to refer to this video #### videoUrl? [#videourl] `string` is the url of the video. If you don't provide the url, then the alias is used as the url. #### options? [#options-1] [`VideoSpriteOptions`](/pixi-vn/index/interfaces/VideoSpriteOptions) The options of the video. ### Returns [#returns-1] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite) This function returns an [VideoSprite](/pixi-vn/index/classes/VideoSprite) that you can use to manipulate the component. ### Throws [#throws-1] when `videoUrl` is not provided and `alias` is not registered in the asset cache. ### Example [#example-1] ```ts Assets.add({ alias: "film", src: "https://pixijs.com/assets/video.mp4" }); // "film" is the alias of the component and of the asset const film1 = addVideo("film"); await film1.load(); // a different alias for the component: (alias, assetAlias, options) const film2 = addVideo("film2", "film", { xAlign: 1 }); await film2.load(); ``` # Function: analizePositionsExtensionProps() (/pixi-vn/index/functions/analizePositionsExtensionProps) \> **analizePositionsExtensionProps**\<`T`>(`props?`): `T` | `undefined` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:131](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L131) ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) ## Parameters [#parameters] ### props? [#props] `T` ## Returns [#returns] `T` | `undefined` # Function: buildGlitchJitter() (/pixi-vn/index/functions/buildGlitchJitter) \> **buildGlitchJitter**(`peak`, `decay`, `bursts`): `number`\[] Defined in: [src/tickers/utility/filter-effect-utility.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/utility/filter-effect-utility.ts#L12) Builds a jittery `[0, a, -0.6a, 0.3a, 0, ...]` glitch envelope: each burst snaps to `a`, kicks back the other way, twitches and settles, with `a` shrinking by `decay` per burst. The sign flips reverse the slice displacement mid-burst, which reads as a glitch rather than a smooth slide. ## Parameters [#parameters] ### peak [#peak] `number` ### decay [#decay] `number` ### bursts [#bursts] `number` ## Returns [#returns] `number`\[] # Function: canvasComponentDecorator() (/pixi-vn/index/functions/canvasComponentDecorator) \> **canvasComponentDecorator**\<`M`, `T`>(`options?`): (`target`) => `void` Defined in: [src/canvas/decorators/canvas-element-decorator.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L51) Is a decorator that register a canvas component in the game. ## Type Parameters [#type-parameters] ### M [#m] `M` *extends* [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) ### T [#t] `T` *extends* *typeof* [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem) ## Parameters [#parameters] ### options? [#options] Options for the canvas component. #### copyProperty? [#copyproperty] (`component`, `memory`) => `void` | `Promise`\<`void`> Function to copy the properties of the canvas component. This function is used when to copy the properties of the canvas component into another instance of the same canvas component. This function is used into [canvas.copyCanvasElementProperty](/pixi-vn/index/interfaces/CanvasManagerInterface#copycanvaselementproperty) to copy the properties of the canvas component. #### getInstance? [#getinstance] (`canvasClass`, `memory`) => [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`M`> | `Promise`\<[`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`M`>> Function to get the instance of the canvas component. If not set, it will use the default constructor of the class. This function is used into [canvas.restore](/pixi-vn/index/interfaces/CanvasManagerInterface#restore) to restore the canvas. #### name? [#name] `string` The id used by Pixi’VN to refer to this class (must be unique). If you don't pass the id, the class name will be used as the id. **Default** ```ts target.name ``` ## Returns [#returns] (`target`) => `void` ## Example [#example] ```ts title="canvas/components/AlienTinting.ts" const ALIEN_TINTING_TEST_ID = "AlienTintingTest"; @canvasComponentDecorator({ name: ALIEN_TINTING_TEST_ID, }) class AlienTintingTest extends Sprite { readonly pixivnId: string = CANVAS_SPINE_ID; override get memory() { // ... } override async setMemory(memory: IAlienTintingMemory) { // ... } // ... } ``` # Function: circleOverhang() (/pixi-vn/index/functions/circleOverhang) \> **circleOverhang**(`center`, `radius`, `width`, `height`): `number` Defined in: [src/tickers/utility/filter-effect-utility.ts:71](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/utility/filter-effect-utility.ts#L71) How far (pixels) content can be pushed past the component's own bounds by a deformation confined to a circle of `radius` around `center` (twist, bulge): the circle's overhang beyond the bounds. ## Parameters [#parameters] ### center [#center] #### x [#x] `number` #### y [#y] `number` ### radius [#radius] `number` ### width [#width] `number` ### height [#height] `number` ## Returns [#returns] `number` # Function: cloneMaybeOffloaded() (/pixi-vn/index/functions/cloneMaybeOffloaded) \> **cloneMaybeOffloaded**\<`T`>(`value`): `Promise`\<`T`> Defined in: [src/worker/offload.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/offload.ts#L47) Deep-clones `value` (matching `createExportableElement`'s JSON-round-trip semantics), via the registered game worker if available, falling back to the main thread otherwise. ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` ## Parameters [#parameters] ### value [#value] `T` ## Returns [#returns] `Promise`\<`T`> # Function: createExportableElement() (/pixi-vn/index/functions/createExportableElement) \> **createExportableElement**\<`T`>(`element`): `T` Defined in: [src/utils/export-utility.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/utils/export-utility.ts#L10) This function is used to create a deep copy of the element ## Type Parameters [#type-parameters] ### T [#t] `T` ## Parameters [#parameters] ### element [#element] `T` The element to be copied ## Returns [#returns] `T` The copied element ## Throws [#throws] when the element is not JSON serializable (e.g. contains functions or class instances). # Function: createFilterTransitionApplier() (/pixi-vn/index/functions/createFilterTransitionApplier) \> **createFilterTransitionApplier**(`alias`, `config`): `object` Defined in: [src/canvas/functions/canvas-filter-transition-utility.ts:280](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-filter-transition-utility.ts#L280) Builds the `apply`/`cleanup` pair that drives a mask-based transition (wipe/iris/split) on the component registered under `alias`, from nothing but plain, serializable data. It's the single place both the live transition and a ticker reconstructed after a save/restore (or a step back) get their callbacks from - which is what lets the animation resume instead of being lost. The mask `Graphics` is lazily recreated on the first `apply()` call, so a restored ticker needs nothing else. ## Parameters [#parameters] ### alias [#alias] `string` ### config [#config] [`FilterTransitionConfig`](/pixi-vn/index/type-aliases/FilterTransitionConfig) ## Returns [#returns] `object` ### apply() [#apply] \> **apply**(`value`): `void` #### Parameters [#parameters-1] ##### value [#value] `number` #### Returns [#returns-1] `void` ### cleanup() [#cleanup] \> **cleanup**(): `void` #### Returns [#returns-2] `void` # Function: diffMaybeOffloaded() (/pixi-vn/index/functions/diffMaybeOffloaded) \> **diffMaybeOffloaded**(`before`, `after`): `Promise`\<`Difference`\[]> Defined in: [src/worker/offload.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/offload.ts#L32) Computes the difference between `before` and `after`, via the registered game worker if available, falling back to the main thread otherwise. Mirrors [restoreDiffMaybeOffloaded](/pixi-vn/index/functions/restoreDiffMaybeOffloaded) - same worker, opposite direction. ## Parameters [#parameters] ### before [#before] `object` ### after [#after] `object` ## Returns [#returns] `Promise`\<`Difference`\[]> # Function: drainCompleteOnStepEndQueue() (/pixi-vn/index/functions/drainCompleteOnStepEndQueue) \> **drainCompleteOnStepEndQueue**(): `object` Defined in: [src/tickers/index.ts:551](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/index.ts#L551) Drains the `completeOnStepEnd` queue, returning what was in it. Used by `canvas/index.ts`'s pre-continue handler, which used to reach into `CanvasManagerStatic._tickersToCompleteOnStepEnd` directly - draining through this function keeps that state fully encapsulated in this module. ## Returns [#returns] `object` ### stepAlias [#stepalias] \> **stepAlias**: `object`\[] ### tikersIds [#tikersids] \> **tikersIds**: `object`\[] # Function: drawCanvasErrorHandler() (/pixi-vn/index/functions/drawCanvasErrorHandler) \> **drawCanvasErrorHandler**(): [`OnErrorHandler`](/pixi-vn/index/type-aliases/OnErrorHandler) Defined in: [src/canvas/functions/error-handler.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/error-handler.ts#L12) Canvas error handler: when a `PixiError` contains `canvasElementInfo`, draw a simple `ErrorGraphics` placeholder on the canvas so the scene remains visible and debuggable. ## Returns [#returns] [`OnErrorHandler`](/pixi-vn/index/type-aliases/OnErrorHandler) # Function: eventDecorator() (/pixi-vn/index/functions/eventDecorator) \> **eventDecorator**(`name?`): (`_target`, `propertyKey`, `descriptor`) => `void` Defined in: [src/canvas/decorators/event-decorator.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/event-decorator.ts#L29) Is a decorator that register a event in the game. Is a required decorator for use the event in the game. Thanks to this decoration the game has the possibility of updating the events to the latest modification and saving the game. ## Parameters [#parameters] ### name? [#name] `string` The id used by Pixi’VN to refer to this function (must be unique). If you don't pass the id, the function name will be used as the id. ## Returns [#returns] (`_target`, `propertyKey`, `descriptor`) => `void` ## Example [#example] ```ts export class Events { \@eventDecorator() static eventExample(event: FederatedEvent, component: Sprite) { // event code here } } sprite.on("pointerdown", Events.eventExample); ``` # Function: filterAreaCenter() (/pixi-vn/index/functions/filterAreaCenter) \> **filterAreaCenter**(`bounds`, `origin`, `filters`, `viewport?`): `object` Defined in: [src/tickers/utility/filter-effect-utility.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/utility/filter-effect-utility.ts#L37) Where an `origin` normalized (0-1) to the component's bounds lands, in pixels, inside the area PixiJS renders the component's filters into - the coordinates `ShockwaveFilter`/`ZoomBlurFilter` (`center`) and `TwistFilter` (`offset`) expect. Mirrors `FilterSystem._calculateFilterBounds`: the component's global bounds, clipped to the viewport, then grown on every side by the **sum** of every enabled filter's `padding`. Call it once all of the effect's filters are attached; it's a snapshot, so adding/removing padded filters later shifts the area. ## Parameters [#parameters] ### bounds [#bounds] `Rect` ### origin [#origin] #### x [#x] `number` #### y [#y] `number` ### filters [#filters] readonly `object`\[] ### viewport? [#viewport] #### height [#height] `number` #### width [#width] `number` ## Returns [#returns] `object` ### area [#area] \> **area**: `Rect` ### x [#x-1] \> **x**: `number` ### y [#y-1] \> **y**: `number` # Function: getAnimatedSpriteFrames() (/pixi-vn/index/functions/getAnimatedSpriteFrames) \> **getAnimatedSpriteFrames**(`source`): `Promise`\<`Texture`\<`TextureSource`\<`any`>>\[] | `FrameObject`\[]> Defined in: [src/canvas/functions/spritesheet-utility.ts:112](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/spritesheet-utility.ts#L112) Resolve an [AnimatedSpriteSource](/pixi-vn/index/interfaces/AnimatedSpriteSource) into the frames of a PixiJS `AnimatedSprite`. ## Parameters [#parameters] ### source [#source] [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) The description of the frames. ## Returns [#returns] `Promise`\<`Texture`\<`TextureSource`\<`any`>>\[] | `FrameObject`\[]> A `Texture[]`, or a `FrameObject[]` if at least one frame has a duration (a frame with `time`, or `useFrameDurations: true`). ## Throws [#throws] when the spritesheet, the animation, or a frame can't be found, or the source has no frames. ## Example [#example] ```ts import { AnimatedSprite as PixiAnimatedSprite } from "pixi.js"; Assets.add({ alias: "hero", src: "https://example.com/assets/hero.json" }); const frames = await getAnimatedSpriteFrames({ spritesheet: "hero", animation: "walk" }); // e.g. inside a custom component, or with a plain PixiJS AnimatedSprite const sprite = new PixiAnimatedSprite(frames); ``` # Function: getSpritesheet() (/pixi-vn/index/functions/getSpritesheet) \> **getSpritesheet**(`spritesheetAlias?`): `Promise`\<`Spritesheet`\<`SpritesheetData`>> Defined in: [src/canvas/functions/spritesheet-utility.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/spritesheet-utility.ts#L29) Get a spritesheet from its alias or URL. If it is not in the cache, it is loaded with `Assets.load`. ## Parameters [#parameters] ### spritesheetAlias? [#spritesheetalias] `string` The alias or URL of the spritesheet JSON. ## Returns [#returns] `Promise`\<`Spritesheet`\<`SpritesheetData`>> The PixiJS `Spritesheet`. ## Throws [#throws] when the alias is missing, the asset can't be loaded, or the asset is not a `Spritesheet`. ## Example [#example] ```ts Assets.add({ alias: "fighter", src: "https://pixijs.com/assets/spritesheet/fighter.json" }); const sheet = await getSpritesheet("fighter"); const textures = Object.values(sheet.textures); ``` # Function: getTexture() (/pixi-vn/index/functions/getTexture) \> **getTexture**(`textureAlias?`): `Promise`\<`Texture`\<`TextureSource`\<`any`>> | `undefined`> Defined in: [src/canvas/functions/texture-utility.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/texture-utility.ts#L12) Get a texture from a url. ## Parameters [#parameters] ### textureAlias? [#texturealias] `string` is the url of the file. ## Returns [#returns] `Promise`\<`Texture`\<`TextureSource`\<`any`>> | `undefined`> the texture of the image or video, or `undefined` when `textureAlias` is the `"EMPTY"` sentinel value. ## Throws [#throws] when the alias is missing, the asset is not found in the cache/network, or the loaded resource is not a `Texture`. # Function: handleGameWorkerMessage() (/pixi-vn/index/functions/handleGameWorkerMessage) \> **handleGameWorkerMessage**(`request`): `Promise`\<[`GameWorkerResponse`](/pixi-vn/index/type-aliases/GameWorkerResponse)> Defined in: [src/worker/handleGameWorkerMessage.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/handleGameWorkerMessage.ts#L26) The worker-side half of the [GameWorkerManager](/pixi-vn/index/classes/GameWorkerManager) protocol. The game project creates its own Worker (so it controls the bundler-specific setup) and points its `message` handling here: ```ts // game-worker.ts, built as its own entry by the project's bundler import { handleGameWorkerMessage } from "@drincs/pixi-vn/worker"; self.onmessage = async (event) => { const response = await handleGameWorkerMessage(event.data); if (response) self.postMessage(response); }; ``` A third-party library sharing this same worker (see `registerGameWorkerHandler`) just needs its own worker-side registration module imported alongside this one, in that same file. Everything this processes is plain, structured-clone-safe data by construction - it never touches PixiJS/canvas/audio, which only exist on the main thread. ## Parameters [#parameters] ### request [#request] [`GameWorkerRequest`](/pixi-vn/index/type-aliases/GameWorkerRequest) ## Returns [#returns] `Promise`\<[`GameWorkerResponse`](/pixi-vn/index/type-aliases/GameWorkerResponse)> # Function: moveIn() (deprecated) (/pixi-vn/index/functions/moveIn) \> **moveIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:120](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L120) ## Parameters [#parameters] ### alias [#alias] `string` ### component? [#component] `TComponent` ### props? [#props] [`MoveInOutProps`](/pixi-vn/index/interfaces/MoveInOutProps) & `object` = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> ## Deprecated [#deprecated] Use `transitions.moveIn` instead. # Function: moveOut() (deprecated) (/pixi-vn/index/functions/moveOut) \> **moveOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:137](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L137) ## Parameters [#parameters] ### alias [#alias] `string` ### props? [#props] [`MoveInOutProps`](/pixi-vn/index/interfaces/MoveInOutProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `string`\[] | `undefined` ## Deprecated [#deprecated] Use `transitions.moveOut` instead. # Function: newChoiceOption() (/pixi-vn/index/functions/newChoiceOption) \> **newChoiceOption**\<`T`>(`text`, `label`, `props`, `options?`): [`ChoiceOptionInterface`](/pixi-vn/index/interfaces/ChoiceOptionInterface) Defined in: [src/narration/classes/ChoiceMenuOption.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/ChoiceMenuOption.ts#L29) Function to create a new choice menu option. ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* [`StorageObjectType`](/pixi-vn/index/type-aliases/StorageObjectType) ## Parameters [#parameters] ### text [#text] `string` | `string`\[] The text displayed in the choice menu. ### label [#label] `string` | [`Label`](/pixi-vn/index/classes/Label)\<`T`> | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> The `label` to call when the player selects the option. ### props [#props] `T` The properties passed to the `label`. If the `label` does not require parameters, pass an empty object `{}`. ### options? [#options] `ChoiceMenuOptionOptions` An object with the `choice`'s options ## Returns [#returns] [`ChoiceOptionInterface`](/pixi-vn/index/interfaces/ChoiceOptionInterface) ## Example [#example] ```ts newChoiceOption("Hello", HelloLabel, {}) ``` # Function: newCloseChoiceOption() (/pixi-vn/index/functions/newCloseChoiceOption) \> **newCloseChoiceOption**(`text`, `options?`): [`CloseChoiceOptionInterface`](/pixi-vn/index/interfaces/CloseChoiceOptionInterface) Defined in: [src/narration/classes/CloseChoiceOption.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/classes/CloseChoiceOption.ts#L24) In addition to `newChoiceOption`, you can use `newCloseChoiceOption` to create a closing option. This closes the choice menu and continues with the `steps`, without calling any `label`. ## Parameters [#parameters] ### text [#text] `string` | `string`\[] The text displayed in the choice menu. ### options? [#options] `ChoiceMenuOptionCloseOptions` An object with the `choice`'s options ## Returns [#returns] [`CloseChoiceOptionInterface`](/pixi-vn/index/interfaces/CloseChoiceOptionInterface) ## Example [#example] ```ts newCloseChoiceOption("Return") ``` # Function: newLabel() (/pixi-vn/index/functions/newLabel) \> **newLabel**\<`T`>(`id`, `steps`, `props?`): [`Label`](/pixi-vn/index/classes/Label)\<`T`> Defined in: [src/narration/decorators/newLabel.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/decorators/newLabel.ts#L14) Creates a new label and registers it in the system. **This function must be called at least once at system startup to register the label, otherwise the system cannot be used.** ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` = \{ } ## Parameters [#parameters] ### id [#id] `string` A unique identifier. Used to reference the `label` in the game (must be unique). ### steps [#steps] [`LabelSteps`](/pixi-vn/index/type-aliases/LabelSteps)\<`T`> | (() => [`LabelSteps`](/pixi-vn/index/type-aliases/LabelSteps)\<`T`>) An array of functions to be executed in order. To create a dynamic array. ### props? [#props] [`LabelProps`](/pixi-vn/index/interfaces/LabelProps)\<[`Label`](/pixi-vn/index/classes/Label)\<`T`>, `number`> An object with the `label`'s options ## Returns [#returns] [`Label`](/pixi-vn/index/classes/Label)\<`T`> The created label # Function: pushIn() (deprecated) (/pixi-vn/index/functions/pushIn) \> **pushIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:176](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L176) ## Parameters [#parameters] ### alias [#alias] `string` ### component? [#component] `TComponent` ### props? [#props] [`PushInOutProps`](/pixi-vn/index/interfaces/PushInOutProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> ## Deprecated [#deprecated] Use `transitions.pushIn` instead. # Function: pushOut() (deprecated) (/pixi-vn/index/functions/pushOut) \> **pushOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:188](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L188) ## Parameters [#parameters] ### alias [#alias] `string` ### props? [#props] [`PushInOutProps`](/pixi-vn/index/interfaces/PushInOutProps) = `...` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `string`\[] | `undefined` ## Deprecated [#deprecated] Use `transitions.pushOut` instead. # Function: registerGameWorkerHandler() (/pixi-vn/index/functions/registerGameWorkerHandler) \> **registerGameWorkerHandler**(`kind`, `handler`): `void` Defined in: [src/worker/GameWorkerHandlerRegistry.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerHandlerRegistry.ts#L29) Registers (or replaces) the worker-side handler for `kind`. See this file's doc comment. ## Parameters [#parameters] ### kind [#kind] `string` ### handler [#handler] [`GameWorkerHandler`](/pixi-vn/index/type-aliases/GameWorkerHandler) ## Returns [#returns] `void` # Function: removeTicker() (/pixi-vn/index/functions/removeTicker) \> **removeTicker**(`tickerId`, `options?`): `void` Defined in: [src/tickers/index.ts:334](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/index.ts#L334) Removes one or more tickers by id, with an extra `stopTicker` option beyond what [tickers](/pixi-vn/index/variables/tickers).remove exposes - kept as its own named export for `CanvasManager`'s deprecated `removeTicker(tickerId, options)` flat method, which historically supported it. ## Parameters [#parameters] ### tickerId [#tickerid] `string` | `string`\[] ### options? [#options] #### stopTicker? [#stopticker] `boolean` ## Returns [#returns] `void` # Function: removeWithDissolve() (deprecated) (/pixi-vn/index/functions/removeWithDissolve) \> **removeWithDissolve**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L86) ## Parameters [#parameters] ### alias [#alias] `string` ### props? [#props] [`ShowWithDissolveTransitionProps`](/pixi-vn/index/interfaces/ShowWithDissolveTransitionProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `string`\[] | `undefined` ## Deprecated [#deprecated] Use `transitions.removeWithDissolve` instead. # Function: removeWithFade() (deprecated) (/pixi-vn/index/functions/removeWithFade) \> **removeWithFade**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:109](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L109) ## Parameters [#parameters] ### alias [#alias] `string` ### props? [#props] [`ShowWithFadeTransitionProps`](/pixi-vn/index/interfaces/ShowWithFadeTransitionProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `string`\[] | `undefined` ## Deprecated [#deprecated] Use `transitions.removeWithFade` instead. # Function: restoreDiffMaybeOffloaded() (/pixi-vn/index/functions/restoreDiffMaybeOffloaded) \> **restoreDiffMaybeOffloaded**\<`T`>(`state`, `stateDiff`): `Promise`\<`T`> Defined in: [src/worker/offload.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/offload.ts#L13) Applies `stateDiff` to `state`, via the registered game worker if one is available (see `Game.worker`), falling back to computing it synchronously on the main thread otherwise - whether that's because no worker was registered, or because the worker call itself failed (the caller should never hard-fail just because the optional worker hiccuped). ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` ## Parameters [#parameters] ### state [#state] `T` ### stateDiff [#statediff] `Difference`\[] ## Returns [#returns] `Promise`\<`T`> # Function: runTickersSequence() (/pixi-vn/index/functions/runTickersSequence) \> **runTickersSequence**\<`TArgs`>(`alias`, `key`): `void` Defined in: [src/tickers/index.ts:120](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/index.ts#L120) Runs (or resumes) a single step of a ticker sequence. Exported (beyond the [tickers](/pixi-vn/index/variables/tickers) public surface) because `CanvasManager.restore()` reconstructs sequences from serialized save data at a lower level than addSequence operates at. ## Type Parameters [#type-parameters] ### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) ## Parameters [#parameters] ### alias [#alias] `string` ### key [#key] `string` ## Returns [#returns] `void` # Function: setMemoryContainer() (/pixi-vn/index/functions/setMemoryContainer) \> **setMemoryContainer**\<`T`>(`element`, `memory`, `options?`): `Promise`\<`void`> Defined in: [src/canvas/decorators/canvas-element-decorator.ts:84](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L84) ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `Container`\<`ContainerChild`> ## Parameters [#parameters] ### element [#element] `Container`\<`ContainerChild`> | `T` ### memory [#memory] \{ } | `Partial`\<[`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory)\<[`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild)>> ### options? [#options] #### end? [#end] () => `void` | `Promise`\<`void`> #### ignoreScale? [#ignorescale] `boolean` ## Returns [#returns] `Promise`\<`void`> # Function: shakeEffect() (deprecated) (/pixi-vn/index/functions/shakeEffect) \> **shakeEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L33) ## Parameters [#parameters] ### alias [#alias] `string` ### options? [#options] [`ShakeEffectProps`](/pixi-vn/index/interfaces/ShakeEffectProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> ## Deprecated [#deprecated] Use `effects.shakeEffect` instead. # Function: shockwaveTravel() (/pixi-vn/index/functions/shockwaveTravel) \> **shockwaveTravel**(`center`, `bounds`, `wavelength`, `radius`): `number` Defined in: [src/tickers/utility/filter-effect-utility.ts:108](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/utility/filter-effect-utility.ts#L108) How far (pixels) a `ShockwaveFilter` ring has to travel to fully leave the component: from `center` to the farthest corner of `bounds`, plus half a `wavelength` - or just `radius` when the ring is capped (`radius > 0`). ## Parameters [#parameters] ### center [#center] #### x [#x] `number` #### y [#y] `number` ### bounds [#bounds] #### height [#height] `number` #### width [#width] `number` ### wavelength [#wavelength] `number` ### radius [#radius] `number` ## Returns [#returns] `number` # Function: showAnimatedSprite() (/pixi-vn/index/functions/showAnimatedSprite) ## Call Signature [#call-signature] \> **showAnimatedSprite**(`alias`, `options?`): `Promise`\<[`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite)> Defined in: [src/canvas/functions/animated-sprite-utility.ts:131](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/animated-sprite-utility.ts#L131) Add and show an animated sprite in the canvas, using `alias` as the spritesheet alias. The animation starts playing, unless `autoPlay: false` is passed. ### Parameters [#parameters] #### alias [#alias] `string` The unique alias of the component, also used as the alias of the spritesheet (it must be registered in the asset cache or manifest). #### options? [#options] [`AnimatedSpriteOptions`](/pixi-vn/index/interfaces/AnimatedSpriteOptions) The options of the animated sprite. ### Returns [#returns] `Promise`\<[`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite)> This function returns an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite) that you can use to manipulate the component. ### Throws [#throws] when `alias` is not registered in the asset cache. ### Example [#example] ```ts Assets.add({ alias: "fighter", src: "https://pixijs.com/assets/spritesheet/fighter.json" }); await showAnimatedSprite("fighter", { align: 0.5, animationSpeed: 0.4 }); ``` ## Call Signature [#call-signature-1] \> **showAnimatedSprite**(`alias`, `source?`, `options?`): `Promise`\<[`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite)> Defined in: [src/canvas/functions/animated-sprite-utility.ts:154](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/animated-sprite-utility.ts#L154) Add and show an animated sprite in the canvas. This function is a combination of [addAnimatedSprite](/pixi-vn/index/functions/addAnimatedSprite) and [AnimatedSprite.load](/pixi-vn/index/classes/AnimatedSprite#load). The animation starts playing, unless `autoPlay: false` is passed in the options. ### Parameters [#parameters-1] #### alias [#alias-1] `string` The unique alias of the animated sprite. You can use this alias to refer to this component. #### source? [#source] `string` | [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) The frames of the animation: the alias/URL of a spritesheet, or an [AnimatedSpriteSource](/pixi-vn/index/interfaces/AnimatedSpriteSource). If you don't provide it, or it has no `spritesheet` and no `frames` (e.g. `{ animation: "walk" }`), the alias is used as the spritesheet alias. #### options? [#options-1] [`AnimatedSpriteOptions`](/pixi-vn/index/interfaces/AnimatedSpriteOptions) The options of the animated sprite. ### Returns [#returns-1] `Promise`\<[`AnimatedSprite`](/pixi-vn/index/classes/AnimatedSprite)> This function returns an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite) that you can use to manipulate the component. ### Throws [#throws-1] when `source` is not provided and `alias` is not registered in the asset cache. ### Example [#example-1] ```ts Assets.add({ alias: "fighter", src: "https://pixijs.com/assets/spritesheet/fighter.json" }); // a different alias for the component: (alias, spritesheetAlias, options) await showAnimatedSprite("myFighter", "fighter", { align: 0.5, anchor: 0.5 }); // only some frames of the spritesheet await showAnimatedSprite("rolling", { spritesheet: "fighter", frames: ["rollSequence0000.png", "rollSequence0001.png"] }); ``` # Function: showImage() (/pixi-vn/index/functions/showImage) ## Call Signature [#call-signature] \> **showImage**(`alias`, `options?`): `Promise`\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> Defined in: [src/canvas/functions/image-utility.ts:93](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/image-utility.ts#L93) Add and show a image in the canvas, using `alias` as the image alias. ### Parameters [#parameters] #### alias [#alias] `string` The unique alias of the component, also used as the alias of the asset (it must be registered in the asset cache or manifest). #### options? [#options] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions) The options of the image. ### Returns [#returns] `Promise`\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> This function returns an [ImageSprite](/pixi-vn/index/classes/ImageSprite) that you can use to manipulate the component. ### Throws [#throws] when `alias` is not registered in the asset cache. ### Example [#example] ```ts Assets.add({ alias: "bunny", src: "https://pixijs.com/assets/bunny.png" }); await showImage("bunny", { xAlign: 0.5 }); ``` ## Call Signature [#call-signature-1] \> **showImage**(`alias`, `imageUrl?`, `options?`): `Promise`\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> Defined in: [src/canvas/functions/image-utility.ts:111](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/image-utility.ts#L111) Add and show a image in the canvas. This function is a combination of [addImage](/pixi-vn/index/functions/addImage). ### Parameters [#parameters-1] #### alias [#alias-1] `string` The unique alias of the image. You can use this alias to refer to this image #### imageUrl? [#imageurl] `string` The url of the image. If you have initialized the "asset matrix", you can use the alias of the texture. If you don't provide the URL, then the alias is used as the URL. #### options? [#options-1] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions) The options of the image. ### Returns [#returns-1] `Promise`\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> This function returns an [ImageSprite](/pixi-vn/index/classes/ImageSprite) that you can use to manipulate the component. ### Throws [#throws-1] when `imageUrl` is not provided and `alias` is not registered in the asset cache. ### Example [#example-1] ```ts Assets.add({ alias: "bunny", src: "https://pixijs.com/assets/bunny.png" }); // "bunny" is the alias of the component and of the asset const bunny1 = await showImage("bunny"); // a different alias for the component: (alias, assetAlias, options) const bunny2 = await showImage("bunny2", "bunny", { xAlign: 1 }); ``` # Function: showImageContainer() (/pixi-vn/index/functions/showImageContainer) \> **showImageContainer**(`alias`, `imageUrls`, `options?`): `Promise`\<[`ImageContainer`](/pixi-vn/index/classes/ImageContainer)> Defined in: [src/canvas/functions/image-container-utility.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/image-container-utility.ts#L50) Add a list of images in the container, after that, the images are added and shown in the canvas. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the container. You can use this alias to refer to this container ### imageUrls [#imageurls] `string`\[] The url of the image. ### options? [#options] [`ImageContainerOptions`](/pixi-vn/index/interfaces/ImageContainerOptions)\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>> The options of the container. ## Returns [#returns] `Promise`\<[`ImageContainer`](/pixi-vn/index/classes/ImageContainer)> This function returns an [ImageContainer](/pixi-vn/index/classes/ImageContainer) that you can use to manipulate the component. ## Example [#example] ```ts Assets.add({ alias: "bunny-body", src: "https://pixijs.com/assets/bunny-body.png" }); Assets.add({ alias: "bunny-eyes", src: "https://pixijs.com/assets/bunny-eyes.png" }); const bunny = await showImageContainer("bunny", ["bunny-body", "bunny-eyes"]); ``` # Function: showText() (/pixi-vn/index/functions/showText) \> **showText**(`alias`, `text`, `options?`): [`Text`](/pixi-vn/index/classes/Text) Defined in: [src/canvas/functions/text-utility.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/text-utility.ts#L14) Add and show a text in the canvas. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the text. You can use this alias to refer to this text. ### text [#text] `string` ### options? [#options] `Omit`\<[`TextOptions`](/pixi-vn/index/interfaces/TextOptions), `"text"`> The options of the text. ## Returns [#returns] [`Text`](/pixi-vn/index/classes/Text) This function returns an [Text](/pixi-vn/index/classes/Text) that you can use to manipulate the component. ## Example [#example] ```ts let text = showText("text", "Hello World", { fontSize: 24, fill: "white" }) ``` # Function: showVideo() (/pixi-vn/index/functions/showVideo) ## Call Signature [#call-signature] \> **showVideo**(`alias`, `options?`): `Promise`\<[`VideoSprite`](/pixi-vn/index/classes/VideoSprite)> Defined in: [src/canvas/functions/video-utility.ts:93](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/video-utility.ts#L93) Add and show a video in the canvas, using `alias` as the video alias. ### Parameters [#parameters] #### alias [#alias] `string` The unique alias of the component, also used as the alias of the asset (it must be registered in the asset cache or manifest). #### options? [#options] [`VideoSpriteOptions`](/pixi-vn/index/interfaces/VideoSpriteOptions) The options of the video. ### Returns [#returns] `Promise`\<[`VideoSprite`](/pixi-vn/index/classes/VideoSprite)> This function returns an [VideoSprite](/pixi-vn/index/classes/VideoSprite) that you can use to manipulate the component. ### Throws [#throws] when `alias` is not registered in the asset cache. ### Example [#example] ```ts Assets.add({ alias: "film", src: "https://pixijs.com/assets/video.mp4" }); await showVideo("film", { xAlign: 0.5 }); ``` ## Call Signature [#call-signature-1] \> **showVideo**(`alias`, `videoUrl?`, `options?`): `Promise`\<[`VideoSprite`](/pixi-vn/index/classes/VideoSprite)> Defined in: [src/canvas/functions/video-utility.ts:111](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/video-utility.ts#L111) Add and show a video in the canvas. This function is a combination of [addVideo](/pixi-vn/index/functions/addVideo). ### Parameters [#parameters-1] #### alias [#alias-1] `string` The unique alias of the video. You can use this alias to refer to this video #### videoUrl? [#videourl] `string` The url of the video. #### options? [#options-1] [`VideoSpriteOptions`](/pixi-vn/index/interfaces/VideoSpriteOptions) The options of the video. ### Returns [#returns-1] `Promise`\<[`VideoSprite`](/pixi-vn/index/classes/VideoSprite)> This function returns an [VideoSprite](/pixi-vn/index/classes/VideoSprite) that you can use to manipulate the component. ### Throws [#throws-1] when `videoUrl` is not provided and `alias` is not registered in the asset cache. ### Example [#example-1] ```ts Assets.add({ alias: "film", src: "https://pixijs.com/assets/video.mp4" }); // "film" is the alias of the component and of the asset const film1 = await showVideo("film"); // a different alias for the component: (alias, assetAlias, options) const film2 = await showVideo("film2", "film", { xAlign: 1 }); ``` # Function: showWithDissolve() (deprecated) (/pixi-vn/index/functions/showWithDissolve) \> **showWithDissolve**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:74](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L74) ## Parameters [#parameters] ### alias [#alias] `string` ### component? [#component] `TComponent` ### props? [#props] [`ShowWithDissolveTransitionProps`](/pixi-vn/index/interfaces/ShowWithDissolveTransitionProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> ## Deprecated [#deprecated] Use `transitions.showWithDissolve` instead. # Function: showWithFade() (deprecated) (/pixi-vn/index/functions/showWithFade) \> **showWithFade**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:97](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L97) ## Parameters [#parameters] ### alias [#alias] `string` ### component? [#component] `TComponent` ### props? [#props] [`ShowWithFadeTransitionProps`](/pixi-vn/index/interfaces/ShowWithFadeTransitionProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> ## Deprecated [#deprecated] Use `transitions.showWithFade` instead. # Function: tickerDecorator() (/pixi-vn/index/functions/tickerDecorator) \> **tickerDecorator**(`name?`): (`target`) => `void` Defined in: [src/tickers/decorators/RegisteredTickers.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/decorators/RegisteredTickers.ts#L32) Is a decorator that register a ticker in the game. Is a required decorator for use the ticker in the game. Thanks to this decoration the game has the possibility of updating the tickers to the latest modification and saving the game. ## Parameters [#parameters] ### name? [#name] `string` is th identifier of the label, by default is the name of the class ## Returns [#returns] (`target`) => `void` # Function: unregisterGameWorkerHandler() (/pixi-vn/index/functions/unregisterGameWorkerHandler) \> **unregisterGameWorkerHandler**(`kind`): `void` Defined in: [src/worker/GameWorkerHandlerRegistry.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerHandlerRegistry.ts#L34) Removes the worker-side handler previously registered for `kind`, if any. ## Parameters [#parameters] ### kind [#kind] `string` ## Returns [#returns] `void` # Function: zoomBlurPadding() (/pixi-vn/index/functions/zoomBlurPadding) \> **zoomBlurPadding**(`center`, `strength`, `width`, `height`): `number` Defined in: [src/tickers/utility/filter-effect-utility.ts:89](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/utility/filter-effect-utility.ts#L89) Padding a `ZoomBlurFilter` needs for its streaks to extend past the component instead of being cut: a pixel at distance `d` from the center samples back to `d * (1 - strength)`, so content at distance `D` reaches `D / (1 - strength)`. `strength` is capped at 0.5 (padding at most `D`) - the outermost streaks are faint anyway. ## Parameters [#parameters] ### center [#center] #### x [#x] `number` #### y [#y] `number` ### strength [#strength] `number` ### width [#width] `number` ### height [#height] `number` ## Returns [#returns] `number` # Function: zoomIn() (deprecated) (/pixi-vn/index/functions/zoomIn) \> **zoomIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:148](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L148) ## Parameters [#parameters] ### alias [#alias] `string` ### component? [#component] `TComponent` ### props? [#props] [`ZoomInOutProps`](/pixi-vn/index/interfaces/ZoomInOutProps) & `object` = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> ## Deprecated [#deprecated] Use `transitions.zoomIn` instead. # Function: zoomOut() (deprecated) (/pixi-vn/index/functions/zoomOut) \> **zoomOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:165](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L165) ## Parameters [#parameters] ### alias [#alias] `string` ### props? [#props] [`ZoomInOutProps`](/pixi-vn/index/interfaces/ZoomInOutProps) = `{}` ### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] `string`\[] | `undefined` ## Deprecated [#deprecated] Use `transitions.zoomOut` instead. # index (/pixi-vn/index) ## app [#app] * [ApplicationOptions](/pixi-vn/index/interfaces/ApplicationOptions) ## assets [#assets] * [AssetsBundle](/pixi-vn/index/interfaces/AssetsBundle) * [AssetsManifest](/pixi-vn/index/interfaces/AssetsManifest) * [ResolvedAsset](/pixi-vn/index/interfaces/ResolvedAsset) * [ResolvedSrc](/pixi-vn/index/interfaces/ResolvedSrc) * [UnresolvedAsset](/pixi-vn/index/interfaces/UnresolvedAsset) * [AssetSrc](/pixi-vn/index/type-aliases/AssetSrc) * [~~LoadParserName~~](/pixi-vn/index/type-aliases/LoadParserName) ## events [#events] * [FederatedEvent](/pixi-vn/index/interfaces/FederatedEvent) * [AllFederatedEventMap](/pixi-vn/index/type-aliases/AllFederatedEventMap) ## Other [#other] ### TickersInterface [#tickersinterface] Renames and re-exports [CanvasTickersInterface](/pixi-vn/index/interfaces/CanvasTickersInterface) ## rendering [#rendering] * [TextureSourceLike](/pixi-vn/index/type-aliases/TextureSourceLike) ## ticker [#ticker] * [TickerValue](/pixi-vn/index/interfaces/TickerValue) # Interface: AdditionalPositionsExtension (/pixi-vn/index/interfaces/AdditionalPositionsExtension) Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:66](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L66) ## Properties [#properties] ### align [#align] \> **align**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:76](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L76) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. *** ### percentagePosition [#percentageposition] \> **percentagePosition**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:106](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L106) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. *** ### percentageX [#percentagex] \> **percentageX**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:116](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L116) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. *** ### percentageY [#percentagey] \> **percentageY**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:126](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L126) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. *** ### positionInfo [#positioninfo] \> `readonly` **positionInfo**: `object` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L128) #### type [#type] \> **type**: `"pixel"` | `"percentage"` | `"align"` #### x [#x] \> **x**: `number` #### y [#y] \> **y**: `number` *** ### positionType [#positiontype] \> `readonly` **positionType**: `"pixel"` | `"percentage"` | `"align"` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:127](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L127) *** ### xAlign [#xalign] \> **xAlign**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L86) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. *** ### yAlign [#yalign] \> **yAlign**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:96](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L96) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. # Interface: AdditionalPositionsExtensionProps (/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L3) ## Extended by [#extended-by] * [`AnimatedSpriteOptions`](/pixi-vn/index/interfaces/AnimatedSpriteOptions) * [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions) * [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions) * [`TextOptions`](/pixi-vn/index/interfaces/TextOptions) * [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory) * [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory) * [`TextMemory`](/pixi-vn/index/interfaces/TextMemory) ## Properties [#properties] ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. *** ### percentagePosition? [#percentageposition] \> `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. *** ### percentageX? [#percentagex] \> `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. *** ### percentageY? [#percentagey] \> `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. *** ### xAlign? [#xalign] \> `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. *** ### yAlign? [#yalign] \> `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. # Interface: AnchorExtension (/pixi-vn/index/interfaces/AnchorExtension) Defined in: [src/canvas/components/AnchorExtension.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnchorExtension.ts#L7) ## Properties [#properties] ### anchor [#anchor] \> **anchor**: `PointData` Defined in: [src/canvas/components/AnchorExtension.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnchorExtension.ts#L25) The anchor sets the origin point of the imageContainer. The default value is taken from the [Texture](/pixi-vn/index/variables/Texture) and passed to the constructor. The default is `(0,0)`, this means the imageContainer's origin is the top left. Setting the anchor to `(0.5,0.5)` means the imageContainer's origin is centered. Setting the anchor to `(1,1)` would mean the imageContainer's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. #### Example [#example] ```ts import { ImageContainer } from '@drincs/pixi-vn'; const imageContainer = new ImageContainer(); imageContainer.anchor = 0.5; ``` # Interface: AnchorExtensionProps (/pixi-vn/index/interfaces/AnchorExtensionProps) Defined in: [src/canvas/components/AnchorExtension.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnchorExtension.ts#L3) ## Extended by [#extended-by] * [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions) ## Properties [#properties] ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: [src/canvas/components/AnchorExtension.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnchorExtension.ts#L4) # Interface: AnimatedSpriteFrameSource (/pixi-vn/index/interfaces/AnimatedSpriteFrameSource) Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L4) A frame of an [AnimatedSpriteSource](/pixi-vn/index/interfaces/AnimatedSpriteSource) with its own duration. ## Properties [#properties] ### texture [#texture] \> **texture**: `string` Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L8) The frame name inside the spritesheet, or (when no spritesheet is set) the alias/URL of the texture. *** ### time [#time] \> **time**: `number` Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L12) The duration of the frame, in milliseconds. # Interface: AnimatedSpriteMemory (/pixi-vn/index/interfaces/AnimatedSpriteMemory) Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L8) The memory of an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite). It is used to save the state of the animation. The `onComplete`, `onFrameChange` and `onLoop` callbacks are not saved. ## Extends [#extends] * [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessible`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleHint`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleText`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleTitle`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleType`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`align`](/pixi-vn/index/interfaces/SpriteBaseMemory#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`alpha`](/pixi-vn/index/interfaces/SpriteBaseMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] `AnimatedSpriteMemory`.[`anchor`](#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`angle`](/pixi-vn/index/interfaces/SpriteBaseMemory#angle) *** ### animationSpeed? [#animationspeed] \> `optional` **animationSpeed?**: `number` Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L13) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/SpriteBaseMemory#autogarbagecollect) *** ### autoUpdate? [#autoupdate] \> `optional` **autoUpdate?**: `boolean` Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L16) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`blendMode`](/pixi-vn/index/interfaces/SpriteBaseMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`boundsArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/SpriteBaseMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`children`](/pixi-vn/index/interfaces/SpriteBaseMemory#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullable`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullableChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullarea) *** ### currentFrame? [#currentframe] \> `optional` **currentFrame?**: `number` Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L17) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cursor`](/pixi-vn/index/interfaces/SpriteBaseMemory#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`eventMode`](/pixi-vn/index/interfaces/SpriteBaseMemory#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`filters`](/pixi-vn/index/interfaces/SpriteBaseMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`height`](/pixi-vn/index/interfaces/SpriteBaseMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`hitArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#hitarea) *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-24] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`index`](/pixi-vn/index/interfaces/SpriteBaseMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`interactive`](/pixi-vn/index/interfaces/SpriteBaseMemory#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`interactiveChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/SpriteBaseMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-28] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`label`](/pixi-vn/index/interfaces/SpriteBaseMemory#label) *** ### loadIsStarted? [#loadisstarted] \> `optional` **loadIsStarted?**: `boolean` Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L19) *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L14) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`mask`](/pixi-vn/index/interfaces/SpriteBaseMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-29] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onclick`](/pixi-vn/index/interfaces/SpriteBaseMemory#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-30] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`oncontextmenu`](/pixi-vn/index/interfaces/SpriteBaseMemory#oncontextmenu) *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-31] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onEvents`](/pixi-vn/index/interfaces/SpriteBaseMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobalmousemove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-33] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobalpointermove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-34] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobaltouchmove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-35] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmousedown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-36] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseenter`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-37] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseleave`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-38] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmousemove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-39] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseout`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-40] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseover`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-41] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-42] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-43] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointercancel`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-44] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerdown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-45] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerenter`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-46] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerleave`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-47] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointermove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-48] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerout`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-49] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerover`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-50] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointertap`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-51] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-52] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-53] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onRender`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-54] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightclick`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-55] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightdown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-56] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-57] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-58] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontap`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-59] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchcancel`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-60] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchend`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-61] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchendoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-62] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchmove`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-63] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchstart`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-64] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onwheel`](/pixi-vn/index/interfaces/SpriteBaseMemory#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-65] `AnimatedSpriteMemory`.[`origin`](#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-66] `AnimatedSpriteMemory`.[`parent`](#parent) *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-67] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`parentLabel`](/pixi-vn/index/interfaces/SpriteBaseMemory#parentlabel) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentagePosition`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-69] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentageX`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-70] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentageY`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-71] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pivot`](/pixi-vn/index/interfaces/SpriteBaseMemory#pivot) *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-72] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/SpriteBaseMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-73] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pixivnId`](/pixi-vn/index/interfaces/SpriteBaseMemory#pixivnid) *** ### playing? [#playing] > `optional` **playing?**: `boolean` Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L18) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-74] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`position`](/pixi-vn/index/interfaces/SpriteBaseMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-75] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`renderable`](/pixi-vn/index/interfaces/SpriteBaseMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-76] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`rotation`](/pixi-vn/index/interfaces/SpriteBaseMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-77] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`roundPixels`](/pixi-vn/index/interfaces/SpriteBaseMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-78] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`scale`](/pixi-vn/index/interfaces/SpriteBaseMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-79] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`setMask`](/pixi-vn/index/interfaces/SpriteBaseMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-80] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`skew`](/pixi-vn/index/interfaces/SpriteBaseMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-81] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`sortableChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-82] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`sortDirty`](/pixi-vn/index/interfaces/SpriteBaseMemory#sortdirty) *** ### source? [#source] > `optional` **source?**: [`AnimatedSpriteSource`](/pixi-vn/index/interfaces/AnimatedSpriteSource) Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L12) The description of the frames, used to rebuild the textures on restore. *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-83] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`tabIndex`](/pixi-vn/index/interfaces/SpriteBaseMemory#tabindex) *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-84] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`texture`](/pixi-vn/index/interfaces/SpriteBaseMemory#texture) *** ### textureData? [#texturedata] > `optional` **textureData?**: [`AssetMemory`](/pixi-vn/index/interfaces/AssetMemory) Defined in: [src/canvas/interfaces/memory/SpriteMemory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/SpriteMemory.ts#L12) #### Inherited from [#inherited-from-85] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`textureData`](/pixi-vn/index/interfaces/SpriteBaseMemory#texturedata) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-86] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`tint`](/pixi-vn/index/interfaces/SpriteBaseMemory#tint) *** ### updateAnchor? [#updateanchor] > `optional` **updateAnchor?**: `boolean` Defined in: [src/canvas/interfaces/memory/AnimatedSpriteMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/AnimatedSpriteMemory.ts#L15) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-87] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`visible`](/pixi-vn/index/interfaces/SpriteBaseMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-88] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`width`](/pixi-vn/index/interfaces/SpriteBaseMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-89] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`x`](/pixi-vn/index/interfaces/SpriteBaseMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-90] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`xAlign`](/pixi-vn/index/interfaces/SpriteBaseMemory#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-91] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`y`](/pixi-vn/index/interfaces/SpriteBaseMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-92] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`yAlign`](/pixi-vn/index/interfaces/SpriteBaseMemory#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-93] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`zIndex`](/pixi-vn/index/interfaces/SpriteBaseMemory#zindex) # Interface: AnimatedSpriteOptions (/pixi-vn/index/interfaces/AnimatedSpriteOptions) Defined in: [src/canvas/interfaces/canvas-options.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L35) The options of an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite). The frames are not options: they are described by an `AnimatedSpriteSource` and loaded with `load()`, so that the component can be saved and restored. The `onComplete`, `onFrameChange` and `onLoop` callbacks are not options either, because they can't be saved: listen to the `"complete"`, `"frameChange"` and `"loop"` events with `.on(...)` instead. ## Extends [#extends] * `Omit`\<`PixiAnimatedSpriteOptions`, `"on"` | `"textures"` | `"onComplete"` | `"onFrameChange"` | `"onLoop"`> * [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `Omit.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `Omit.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `Omit.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `Omit.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `Omit.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `Omit.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `Omit.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`anchor`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`angle`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#angle) *** ### animationSpeed? [#animationspeed] \> `optional` **animationSpeed?**: `number` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:72 The speed that the AnimatedSprite will play at. Higher is faster, lower is slower. #### Example [#example-10] ```ts // Create an AnimatedSprite with a slower animation speed const animation = new AnimatedSprite({ textures: [Texture.from('frame1.png'), Texture.from('frame2.png')], animationSpeed: 0.5 // Slower animation }); // Update the animation speed to make it faster animation.animationSpeed = 2; // Faster animation ``` #### Default [#default-9] ```ts 1 ``` #### Inherited from [#inherited-from-11] `Omit.animationSpeed` *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-12] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#autogarbagecollect) *** ### autoPlay? [#autoplay] \> `optional` **autoPlay?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:95 Whether to start the animation immediately on creation. If set to `true`, the animation will start playing as soon as the `AnimatedSprite` is created. If set to `false`, you will need to call the `play` method to start the animation. #### Example [#example-11] ```ts // Create an AnimatedSprite that starts playing immediately const animation = new AnimatedSprite({ textures: [Texture.from('frame1.png'), Texture.from('frame2.png')], autoPlay: true }); // Create an AnimatedSprite that does not start playing immediately const animation = new AnimatedSprite({ textures: [Texture.from('frame1.png'), Texture.from('frame2.png')], autoPlay: false }); animation.play(); // Start the animation manually ``` #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-13] `Omit.autoPlay` *** ### autoUpdate? [#autoupdate] \> `optional` **autoUpdate?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:116 Whether to use Ticker.shared to auto update animation time. This is useful for animations that need to be updated every frame. If set to `false`, you will need to manually call the `update` method to update the animation. #### Example [#example-12] ```ts // Create an AnimatedSprite that does not auto update const animation = new AnimatedSprite({ textures: [Texture.from('frame1.png'), Texture.from('frame2.png')], autoUpdate: false }); // Manually update the animation in your game loop ticker.add((ticker) => { animation.update(ticker); } ``` #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-14] `Omit.autoUpdate` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-13] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-12] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-15] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-14] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-16] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-17] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-15] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-18] `Omit.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-13] ```ts false ``` #### Inherited from [#inherited-from-19] `Omit.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-17] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-14] ```ts true ``` #### Inherited from [#inherited-from-20] `Omit.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-18] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-21] `Omit.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-19] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-16] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-22] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`cursor`](/pixi-vn/index/classes/VideoSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-20] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-23] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`eventMode`](/pixi-vn/index/classes/VideoSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-21] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-24] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`filters`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-22] ```ts new Container({ height: 100}); ``` #### Default [#default-17] ```ts 0 ``` #### Inherited from [#inherited-from-25] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`height`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-23] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-26] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`hitArea`](/pixi-vn/index/classes/VideoSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-24] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-27] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactive`](/pixi-vn/index/classes/VideoSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-18] ```ts true ``` #### Example [#example-25] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-28] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactiveChildren`](/pixi-vn/index/classes/VideoSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-29] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-19] ```ts null ``` #### Inherited from [#inherited-from-30] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:121 Whether or not the animation repeats after playing. #### Default [#default-20] ```ts true ``` #### Inherited from [#inherited-from-31] `Omit.loop` *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-26] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`mask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-32] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onclick`](/pixi-vn/index/classes/VideoSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`oncontextmenu`](/pixi-vn/index/classes/VideoSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-23] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-34] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalmousemove`](/pixi-vn/index/classes/VideoSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-24] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-35] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalpointermove`](/pixi-vn/index/classes/VideoSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-25] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-36] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/VideoSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousedown`](/pixi-vn/index/classes/VideoSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseenter`](/pixi-vn/index/classes/VideoSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseleave`](/pixi-vn/index/classes/VideoSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousemove`](/pixi-vn/index/classes/VideoSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseout`](/pixi-vn/index/classes/VideoSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseover`](/pixi-vn/index/classes/VideoSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseup`](/pixi-vn/index/classes/VideoSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseupoutside`](/pixi-vn/index/classes/VideoSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointercancel`](/pixi-vn/index/classes/VideoSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerdown`](/pixi-vn/index/classes/VideoSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerenter`](/pixi-vn/index/classes/VideoSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerleave`](/pixi-vn/index/classes/VideoSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointermove`](/pixi-vn/index/classes/VideoSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerout`](/pixi-vn/index/classes/VideoSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-51] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerover`](/pixi-vn/index/classes/VideoSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-52] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointertap`](/pixi-vn/index/classes/VideoSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-53] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerup`](/pixi-vn/index/classes/VideoSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-54] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerupoutside`](/pixi-vn/index/classes/VideoSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-49] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-55] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightclick`](/pixi-vn/index/classes/VideoSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightdown`](/pixi-vn/index/classes/VideoSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightup`](/pixi-vn/index/classes/VideoSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightupoutside`](/pixi-vn/index/classes/VideoSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontap`](/pixi-vn/index/classes/VideoSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchcancel`](/pixi-vn/index/classes/VideoSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchend`](/pixi-vn/index/classes/VideoSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-51] ```ts null ``` #### Inherited from [#inherited-from-63] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchendoutside`](/pixi-vn/index/classes/VideoSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-52] ```ts null ``` #### Inherited from [#inherited-from-64] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchmove`](/pixi-vn/index/classes/VideoSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-59] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-53] ```ts null ``` #### Inherited from [#inherited-from-65] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchstart`](/pixi-vn/index/classes/VideoSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-60] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-54] ```ts null ``` #### Inherited from [#inherited-from-66] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onwheel`](/pixi-vn/index/classes/VideoSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-61] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-67] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-68] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-69] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-70] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-71] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-62] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-72] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-63] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-73] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`position`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-64] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-55] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-74] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-65] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-75] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-56] ```ts false ``` #### Example [#example-66] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-76] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`roundPixels`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-67] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-77] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`scale`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-78] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-68] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-57] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-79] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`skew`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-69] ```ts container.sortableChildren = true; ``` #### Default [#default-58] ```ts false ``` #### Inherited from [#inherited-from-80] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-59] ```ts false @internal ``` #### Inherited from [#inherited-from-81] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-60] ```ts 0 ``` #### Example [#example-70] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-82] `Omit.tabIndex` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-71] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-61] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-83] `Omit.tint` *** ### updateAnchor? [#updateanchor] > `optional` **updateAnchor?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite-animated/AnimatedSprite.d.ts:208 Update anchor to \[Texture's defaultAnchor]Texture#defaultAnchor when frame changes. Useful with \[sprite sheet animations]Spritesheet#animations created with tools. Changing anchor for each frame allows to pin sprite origin to certain moving feature of the frame (e.g. left foot). > \[!NOTE] Enabling this will override any previously set `anchor` on each frame change. #### Example [#example-72] ```ts // Create an AnimatedSprite with updateAnchor enabled const animation = new AnimatedSprite({ textures: [Texture.from('frame1.png'), Texture.from('frame2.png')], updateAnchor: true }); ``` #### See [#see-11] Texture#defaultAnchor For the default anchor of the texture #### Default [#default-62] ```ts false ``` #### Inherited from [#inherited-from-84] `Omit.updateAnchor` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-73] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-63] ```ts true ``` #### See [#see-12] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-85] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`visible`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-74] ```ts new Container({ width: 100}); ``` #### Default [#default-64] ```ts 0 ``` #### Inherited from [#inherited-from-86] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`width`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-75] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-87] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`x`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-88] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-76] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-89] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`y`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-90] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-77] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-65] ```ts 0 ``` #### Inherited from [#inherited-from-91] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) # Interface: AnimatedSpriteSource (/pixi-vn/index/interfaces/AnimatedSpriteSource) Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L41) A serializable description of the frames of an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite). It only contains asset aliases/URLs and frame names, so it can be saved in the game state and used to rebuild the animation when a save is loaded or the player goes back in the history. The frames are resolved in this order: * `spritesheet` + `animation`: the frames of `spritesheet.animations[animation]`; * `spritesheet` + `frames`: the listed frames of the spritesheet; * `spritesheet` only: all the frames of the spritesheet, sorted in natural order (`frame2` before `frame10`); * `frames` only: each frame is a texture alias or URL. ## Example [#example] ```ts Assets.add({ alias: "explosion", src: "https://pixijs.com/assets/spritesheet/mc.json" }); // all the frames of a spritesheet const explosion: AnimatedSpriteSource = { spritesheet: "explosion" }; // a named animation of a spritesheet const walk: AnimatedSpriteSource = { spritesheet: "hero", animation: "walk" }; // some frames of a spritesheet, with custom durations const blink: AnimatedSpriteSource = { spritesheet: "hero", frames: [{ texture: "eyes_open.png", time: 2000 }, { texture: "eyes_closed.png", time: 100 }], }; // separate images const flag: AnimatedSpriteSource = { frames: ["flag1", "flag2", "flag3"] }; ``` ## Properties [#properties] ### animation? [#animation] \> `optional` **animation?**: `string` Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L50) The name of an animation defined in the `animations` field of the spritesheet. Requires [spritesheet](#spritesheet). *** ### frames? [#frames] \> `optional` **frames?**: (`string` | [`AnimatedSpriteFrameSource`](/pixi-vn/index/interfaces/AnimatedSpriteFrameSource))\[] Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L56) The frames to use, in order. If [spritesheet](#spritesheet) is set, they are frame names of the spritesheet, otherwise they are texture aliases or URLs. Use an [AnimatedSpriteFrameSource](/pixi-vn/index/interfaces/AnimatedSpriteFrameSource) to set the duration of a single frame. *** ### spritesheet? [#spritesheet] \> `optional` **spritesheet?**: `string` Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L45) The alias or URL of a spritesheet JSON (a PixiJS `Spritesheet`). *** ### useFrameDurations? [#useframedurations] \> `optional` **useFrameDurations?**: `boolean` Defined in: [src/canvas/interfaces/AnimatedSpriteSource.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AnimatedSpriteSource.ts#L63) If `true`, each frame uses the `duration` (in milliseconds) stored in the spritesheet JSON, as exported by Aseprite or TexturePacker. A frame without a `duration` lasts [DEFAULT_ANIMATED_SPRITE_FRAME_TIME](/pixi-vn/index/variables/DEFAULT_ANIMATED_SPRITE_FRAME_TIME) ms. The `animationSpeed` of the component is still applied as a multiplier. #### Default [#default] ```ts false ``` # Interface: ApplicationOptions (/pixi-vn/index/interfaces/ApplicationOptions) Defined in: node_modules/pixi.js/lib/app/Application.d.ts:107 Application options supplied to the Application#init method. These options configure how your PixiJS application behaves. ## Standard [#standard] ## Example [#example] ```js import { Application } from 'pixi.js'; const app = new Application(); // Initialize with common options await app.init({ // Rendering options width: 800, // Canvas width height: 600, // Canvas height backgroundColor: 0x1099bb, // Background color antialias: true, // Enable antialiasing resolution: window.devicePixelRatio, // Screen resolution // Performance options autoStart: true, // Auto-starts the render loop sharedTicker: true, // Use shared ticker for better performance // Automatic resize options resizeTo: window, // Auto-resize to window autoDensity: true, // Adjust for device pixel ratio // Advanced options preference: 'webgl', // Renderer preference ('webgl', 'webgpu', 'canvas', or an array) powerPreference: 'high-performance' // GPU power preference }); ``` ## See [#see] * WebGLOptions For resize-related options * WebGPUOptions For resize-related options * TickerPlugin For ticker-related options * ResizePlugin For resize-related options ## Extends [#extends] * `AutoDetectOptions` * `ApplicationOptions` ## Properties [#properties] ### accessibilityOptions? [#accessibilityoptions] \> `optional` **accessibilityOptions?**: `AccessibilityOptions` Defined in: node_modules/pixi.js/lib/accessibility/AccessibilityMixins.d.ts:32 Options for the accessibility system. The accessibility system is registered as an extension rather than as a shared system, so its options are declared here to make them part of the public renderer and application options. #### Example [#example-1] ```ts const app = new Application(); await app.init({ accessibilityOptions: { // Enable immediately instead of waiting for tab enabledByDefault: true, // Prevent accessibility from being deactivated when mouse moves deactivateOnMouseMove: false, }, }); ``` #### Inherited from [#inherited-from] `AutoDetectOptions.accessibilityOptions` *** ### antialias? [#antialias] \> `optional` **antialias?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:43 Whether to enable anti-aliasing. This may affect performance. #### Inherited from [#inherited-from-1] `AutoDetectOptions.antialias` *** ### autoDensity? [#autodensity] \> `optional` **autoDensity?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:39 Resizes renderer view in CSS pixels to allow for resolutions other than 1. This is only supported for HTMLCanvasElement and will be ignored if the canvas is an OffscreenCanvas. #### Inherited from [#inherited-from-2] `AutoDetectOptions.autoDensity` *** ### autoStart? [#autostart] \> `optional` **autoStart?**: `boolean` Defined in: node_modules/pixi.js/lib/app/TickerPlugin.d.ts:55 Controls whether the animation loop starts automatically after initialization. \> \[!IMPORTANT] \> Setting this to `false` does NOT stop the shared ticker even if `sharedTicker` is `true`. \> You must stop the shared ticker manually if needed. #### Example [#example-2] ```ts // Auto-start (default behavior) await app.init({ autoStart: true }); // Manual start await app.init({ autoStart: false }); app.start(); // Start when ready ``` #### Default [#default] ```ts true ``` #### Inherited from [#inherited-from-3] `PixiMixins.ApplicationOptions.autoStart` *** ### background? [#background] \> `optional` **background?**: `ColorSource` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/background/BackgroundSystem.d.ts:17 Alias for `backgroundColor` #### Inherited from [#inherited-from-4] `AutoDetectOptions.background` *** ### backgroundAlpha? [#backgroundalpha] \> `optional` **backgroundAlpha?**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/background/BackgroundSystem.d.ts:25 Transparency of the background color, value from `0` (fully transparent) to `1` (fully opaque). This value determines whether the canvas is initialized with alpha transparency support. Note: This cannot be changed after initialization. If set to `1`, the canvas will remain opaque, even if a transparent background color is set later. #### Default [#default-1] ```ts 1 ``` #### Inherited from [#inherited-from-5] `AutoDetectOptions.backgroundAlpha` *** ### backgroundColor [#backgroundcolor] \> **backgroundColor**: `ColorSource` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/background/BackgroundSystem.d.ts:15 The background color used to clear the canvas. See ColorSource for accepted color values. #### Default [#default-2] ```ts 'black' ``` #### Inherited from [#inherited-from-6] `AutoDetectOptions.backgroundColor` *** ### bezierSmoothness [#beziersmoothness] \> **bezierSmoothness**: `number` Defined in: node_modules/pixi.js/lib/scene/graphics/GraphicsMixins.d.ts:35 A value from 0 to 1 that controls the smoothness of bezier curves (the higher the smoother) #### Default [#default-3] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] `AutoDetectOptions.bezierSmoothness` *** ### canvas? [#canvas] \> `optional` **canvas?**: `ICanvas` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:27 The canvas to use as a view, optional. #### Inherited from [#inherited-from-8] `AutoDetectOptions.canvas` *** ### canvasOptions? [#canvasoptions] \> `optional` **canvasOptions?**: `Partial`\<`CanvasOptions`> Defined in: node_modules/pixi.js/lib/rendering/renderers/autoDetectRenderer.d.ts:32 Optional CanvasOptions to pass only to the Canvas renderer #### Inherited from [#inherited-from-9] `AutoDetectOptions.canvasOptions` *** ### clearBeforeRender? [#clearbeforerender] \> `optional` **clearBeforeRender?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/background/BackgroundSystem.d.ts:30 Whether to clear the canvas before new render passes. #### Default [#default-4] ```ts true ``` #### Inherited from [#inherited-from-10] `AutoDetectOptions.clearBeforeRender` *** ### context [#context] \> **context**: `WebGL2RenderingContext` | `null` Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/context/GlContextSystem.d.ts:29 User-provided WebGL rendering context object. #### Default [#default-5] ```ts null ``` #### Inherited from [#inherited-from-11] `AutoDetectOptions.context` *** ### culler? [#culler] \> `optional` **culler?**: `object` Defined in: node_modules/pixi.js/lib/culling/CullerPlugin.d.ts:34 Options for the culler behavior. #### updateTransform? [#updatetransform] \> `optional` **updateTransform?**: `boolean` Update the transform of culled objects. \> \[!IMPORTANT] Keeping this as `false` can improve performance by avoiding unnecessary calculations, \> however, the transform used for culling may not be up-to-date if the object has moved since the last render. ##### Default [#default-6] ```ts true ``` ##### Example [#example-3] ```ts const app = new Application(); await app.init({ culler: { updateTransform: false // Skip updating transforms for culled objects } }); ``` #### Example [#example-4] ```ts // Basic culling options const app = new Application(); await app.init({ culler: {...} }); ``` #### Inherited from [#inherited-from-12] `PixiMixins.ApplicationOptions.culler` *** ### depth? [#depth] \> `optional` **depth?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:45 Whether to ensure the main view has can make use of the depth buffer. Always true for WebGL renderer. #### Inherited from [#inherited-from-13] `AutoDetectOptions.depth` *** ### eventFeatures? [#eventfeatures] \> `optional` **eventFeatures?**: `Partial`\<`EventSystemFeatures`> Defined in: node_modules/pixi.js/lib/events/EventsMixins.d.ts:73 Configuration for enabling/disabling specific event features. Use this to optimize performance by turning off unused functionality. #### Example [#example-5] ```ts const app = new Application(); await app.init({ eventFeatures: { // Core interaction events move: true, // Pointer/mouse/touch movement click: true, // Click/tap events wheel: true, // Mouse wheel/scroll events // Global tracking globalMove: false // Global pointer movement } }); ``` #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-14] `AutoDetectOptions.eventFeatures` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/EventsMixins.d.ts:53 The type of interaction behavior for a Container. This is set via the [Container#eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) property. #### Example [#example-6] ```ts // Basic event mode setup const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Enable standard interaction sprite.on('pointerdown', () => { console.log('clicked!'); }); // Different event modes sprite.eventMode = 'none'; // Disable all interaction sprite.eventMode = 'passive'; // Only allow interaction on children sprite.eventMode = 'auto'; // Like DOM pointer-events: auto sprite.eventMode = 'dynamic'; // For moving/animated objects ``` Available modes: * `'none'`: Ignores all interaction events, even on its children * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7 * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7 * `'dynamic'`: Emits events and is hit tested but will also receive mock interaction events fired from a ticker to allow for interaction when the mouse isn't moving Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard buttons/controls * Use `'dynamic'` only for moving/animated interactive elements #### Since [#since-1] 7.2.0 #### Inherited from [#inherited-from-15] `AutoDetectOptions.eventMode` *** ### failIfMajorPerformanceCaveat? [#failifmajorperformancecaveat] \> `optional` **failIfMajorPerformanceCaveat?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/RenderingMixins.d.ts:15 #### Inherited from [#inherited-from-16] `AutoDetectOptions.failIfMajorPerformanceCaveat` *** ### forceFallbackAdapter [#forcefallbackadapter] \> **forceFallbackAdapter**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/GpuDeviceSystem.d.ts:41 Force the use of the fallback adapter #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-17] `AutoDetectOptions.forceFallbackAdapter` *** ### gcActive [#gcactive] \> **gcActive**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:50 If set to true, this will enable the garbage collector. #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-18] `AutoDetectOptions.gcActive` *** ### gcFrequency [#gcfrequency] \> **gcFrequency**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:60 How frequently to run garbage collection in milliseconds. #### Default [#default-9] ```ts 30000 ``` #### Inherited from [#inherited-from-19] `AutoDetectOptions.gcFrequency` *** ### gcMaxUnusedTime [#gcmaxunusedtime] \> **gcMaxUnusedTime**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:55 The maximum time in milliseconds a resource can be unused before being garbage collected. #### Default [#default-10] ```ts 60000 ``` #### Inherited from [#inherited-from-20] `AutoDetectOptions.gcMaxUnusedTime` *** ### gpu? [#gpu] \> `optional` **gpu?**: `GPU` Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/GpuDeviceSystem.d.ts:43 Using shared device and adaptor from other engine #### Inherited from [#inherited-from-21] `AutoDetectOptions.gpu` *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:25 The height of the screen. #### Default [#default-11] ```ts 600 ``` #### Inherited from [#inherited-from-22] `AutoDetectOptions.height` *** ### hello [#hello] \> **hello**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/startup/HelloSystem.d.ts:15 Whether to log the version and type information of renderer to console. #### Default [#default-12] ```ts false ``` #### Inherited from [#inherited-from-23] `AutoDetectOptions.hello` *** ### ~~manageImports?~~ [#manageimports] \> `optional` **manageImports?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/system/SharedSystems.d.ts:74 #### Default [#default-13] ```ts true ``` #### Deprecated [#deprecated] since 8.1.6 #### See [#see-1] `skipExtensionImports` #### Inherited from [#inherited-from-24] `AutoDetectOptions.manageImports` *** ### multiView [#multiview] \> **multiView**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/context/GlContextSystem.d.ts:60 Whether to enable multi-view rendering. Set to true when rendering to multiple canvases on the dom. #### Default [#default-14] ```ts false ``` #### Inherited from [#inherited-from-25] `AutoDetectOptions.multiView` *** ### powerPreference? [#powerpreference] \> `optional` **powerPreference?**: `GpuPowerPreference` Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/context/GlContextSystem.d.ts:37 An optional hint indicating what configuration of GPU is suitable for the WebGL context, can be `'high-performance'` or `'low-power'`. Setting to `'high-performance'` will prioritize rendering performance over power consumption, while setting to `'low-power'` will prioritize power saving over rendering performance. #### Default [#default-15] ```ts undefined ``` #### Inherited from [#inherited-from-26] `AutoDetectOptions.powerPreference` *** ### preference? [#preference] \> `optional` **preference?**: `RendererPreference` | `RendererPreference`\[] Defined in: node_modules/pixi.js/lib/rendering/renderers/autoDetectRenderer.d.ts:26 The preferred renderer type(s). * When a **string** is provided (e.g. `'webgpu'`), that renderer is tried first and the remaining renderers are used as fallbacks in the default priority order. * When an **array** is provided (e.g. `['webgpu', 'webgl']`), only the listed renderers are tried, in the given order. Any renderer type **not** in the array is excluded entirely — this can be used as a blocklist. #### Inherited from [#inherited-from-27] `AutoDetectOptions.preference` *** ### preferWebGLVersion? [#preferwebglversion] \> `optional` **preferWebGLVersion?**: `1` | `2` Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/context/GlContextSystem.d.ts:54 The preferred WebGL version to use. #### Default [#default-16] ```ts 2 ``` #### Inherited from [#inherited-from-28] `AutoDetectOptions.preferWebGLVersion` *** ### premultipliedAlpha [#premultipliedalpha] \> **premultipliedAlpha**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/context/GlContextSystem.d.ts:42 Whether the compositor will assume the drawing buffer contains colors with premultiplied alpha. #### Default [#default-17] ```ts true ``` #### Inherited from [#inherited-from-29] `AutoDetectOptions.premultipliedAlpha` *** ### preserveDrawingBuffer [#preservedrawingbuffer] \> **preserveDrawingBuffer**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/context/GlContextSystem.d.ts:48 Whether to enable drawing buffer preservation. If enabled, the drawing buffer will preserve its value until cleared or overwritten. Enable this if you need to call `toDataUrl` on the WebGL context. #### Default [#default-18] ```ts false ``` #### Inherited from [#inherited-from-30] `AutoDetectOptions.preserveDrawingBuffer` *** ### renderableGCActive [#renderablegcactive] \> **renderableGCActive**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.d.ts:20 If set to true, this will enable the garbage collector on the GPU. #### Default [#default-19] ```ts true ``` #### Inherited from [#inherited-from-31] `AutoDetectOptions.renderableGCActive` *** ### renderableGCFrequency [#renderablegcfrequency] \> **renderableGCFrequency**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.d.ts:30 Frames between two garbage collections. #### Default [#default-20] ```ts 600 ``` #### Inherited from [#inherited-from-32] `AutoDetectOptions.renderableGCFrequency` *** ### renderableGCMaxUnusedTime [#renderablegcmaxunusedtime] \> **renderableGCMaxUnusedTime**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.d.ts:25 The maximum idle frames before a texture is destroyed by garbage collection. #### Default [#default-21] ```ts 60 * 60 ``` #### Inherited from [#inherited-from-33] `AutoDetectOptions.renderableGCMaxUnusedTime` *** ### resizeTo? [#resizeto] \> `optional` **resizeTo?**: `HTMLElement` | `Window` Defined in: node_modules/pixi.js/lib/app/ResizePlugin.d.ts:34 Element to automatically resize the renderer to. #### Example [#example-7] ```ts const app = new Application(); await app.init({ resizeTo: window, // Resize to the entire window // or resizeTo: document.querySelector('#game-container'), // Resize to a specific element // or resizeTo: null, // Disable auto-resize }); ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-34] `PixiMixins.ApplicationOptions.resizeTo` *** ### resolution? [#resolution] \> `optional` **resolution?**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:41 The resolution / device pixel ratio of the renderer. #### Inherited from [#inherited-from-35] `AutoDetectOptions.resolution` *** ### roundPixels? [#roundpixels] \> `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/RenderingMixins.d.ts:16 #### Inherited from [#inherited-from-36] `AutoDetectOptions.roundPixels` *** ### sharedTicker? [#sharedticker] \> `optional` **sharedTicker?**: `boolean` Defined in: node_modules/pixi.js/lib/app/TickerPlugin.d.ts:80 Controls whether to use the shared global ticker or create a new instance. The shared ticker is useful when you have multiple instances that should sync their updates. However, it has some limitations regarding update order control. Update Order: 1. System ticker (always runs first) 2. Shared ticker (if enabled) 3. App ticker (if using own ticker) #### Example [#example-8] ```ts // Use shared ticker (global instance) await app.init({ sharedTicker: true }); // Use dedicated ticker (default) await app.init({ sharedTicker: false }); // Access ticker properties console.log(app.ticker.FPS); // Current FPS console.log(app.ticker.deltaMS); // MS since last update ``` #### Default [#default-23] ```ts false ``` #### Inherited from [#inherited-from-37] `PixiMixins.ApplicationOptions.sharedTicker` *** ### skipExtensionImports? [#skipextensionimports] \> `optional` **skipExtensionImports?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/system/SharedSystems.d.ts:68 Whether to stop PixiJS from dynamically importing default extensions for the renderer. It is false by default, and means PixiJS will load all the default extensions, based on the environment e.g browser/webworker. If you set this to true, then you will need to manually import the systems and extensions you need. Renderer loader extensions (`WebGLLoader`, `WebGPULoader`, `CanvasLoader`) are skipped too. e.g. ```js import 'accessibility'; import 'app'; import 'events'; import 'spritesheet'; import 'graphics'; import 'mesh'; import 'text'; import 'text-bitmap'; import 'text-html'; import { autoDetectRenderer } from 'pixi.js'; const renderer = await autoDetectRenderer({ width: 800, height: 600, skipExtensionImports: true, }); ``` #### Default [#default-24] ```ts false ``` #### Inherited from [#inherited-from-38] `AutoDetectOptions.skipExtensionImports` *** ### ~~textureGCActive~~ [#texturegcactive] \> **textureGCActive**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureGCSystem.d.ts:17 If set to true, this will enable the garbage collector on the GPU. #### Default [#default-25] ```ts true ``` #### Deprecated [#deprecated-1] since 8.15.0 #### Inherited from [#inherited-from-39] `AutoDetectOptions.textureGCActive` *** ### ~~textureGCAMaxIdle~~ [#texturegcamaxidle] \> **textureGCAMaxIdle**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureGCSystem.d.ts:22 #### Deprecated [#deprecated-2] since 8.3.0 #### See [#see-2] [TextureGCSystemOptions.textureGCMaxIdle](#texturegcmaxidle) #### Inherited from [#inherited-from-40] `AutoDetectOptions.textureGCAMaxIdle` *** ### ~~textureGCCheckCountMax~~ [#texturegccheckcountmax] \> **textureGCCheckCountMax**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureGCSystem.d.ts:34 Frames between two garbage collections. #### Default [#default-26] ```ts 600 ``` #### Deprecated [#deprecated-3] since 8.15.0 #### Inherited from [#inherited-from-41] `AutoDetectOptions.textureGCCheckCountMax` *** ### ~~textureGCMaxIdle~~ [#texturegcmaxidle] \> **textureGCMaxIdle**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureGCSystem.d.ts:28 The maximum idle frames before a texture is destroyed by garbage collection. #### Default [#default-27] ```ts 60 * 60 ``` #### Deprecated [#deprecated-4] since 8.15.0 #### Inherited from [#inherited-from-42] `AutoDetectOptions.textureGCMaxIdle` *** ### transient? [#transient] \> `optional` **transient?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:54 WebGPU only, with `antialias`. WebGL ignores it. Discards the canvas's multisample buffers at the end of each pass instead of writing them to memory: depth/stencil, and colour on GPUs that aren't tile-based (tile-based GPUs already discard colour). Only for apps that never reopen the canvas pass while still needing its depth or stencil: no filters or masks popping back onto it, no second `render` with `clear: false`. See TextureSourceOptions.transient. #### Default [#default-28] ```ts false ``` #### Inherited from [#inherited-from-43] `AutoDetectOptions.transient` *** ### useBackBuffer? [#usebackbuffer] \> `optional` **useBackBuffer?**: `boolean` Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/GlBackBufferSystem.d.ts:17 if true will use the back buffer where required #### Default [#default-29] ```ts false ``` #### Inherited from [#inherited-from-44] `AutoDetectOptions.useBackBuffer` *** ### ~~view?~~ [#view] \> `optional` **view?**: `ICanvas` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:32 Alias for `canvas`. #### Deprecated [#deprecated-5] since 8.0.0 #### Inherited from [#inherited-from-45] `AutoDetectOptions.view` *** ### webgl? [#webgl] \> `optional` **webgl?**: `Partial`\<`WebGLOptions`> Defined in: node_modules/pixi.js/lib/rendering/renderers/autoDetectRenderer.d.ts:30 Optional WebGLOptions to pass only to the WebGL renderer #### Inherited from [#inherited-from-46] `AutoDetectOptions.webgl` *** ### webgpu? [#webgpu] \> `optional` **webgpu?**: `Partial`\<`WebGPUOptions`> Defined in: node_modules/pixi.js/lib/rendering/renderers/autoDetectRenderer.d.ts:28 Optional WebGPUOptions to pass only to WebGPU renderer. #### Inherited from [#inherited-from-47] `AutoDetectOptions.webgpu` *** ### width? [#width] \> `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.d.ts:20 The width of the screen. #### Default [#default-30] ```ts 800 ``` #### Inherited from [#inherited-from-48] `AutoDetectOptions.width` # Interface: AssetMemory (/pixi-vn/index/interfaces/AssetMemory) Defined in: [src/canvas/interfaces/AssetMemory.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AssetMemory.ts#L4) Interface for Asset memory ## Properties [#properties] ### alias? [#alias] \> `optional` **alias?**: `string` Defined in: [src/canvas/interfaces/AssetMemory.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AssetMemory.ts#L5) *** ### url [#url] \> **url**: `string` Defined in: [src/canvas/interfaces/AssetMemory.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/AssetMemory.ts#L6) # Interface: AssetsBundle (/pixi-vn/index/interfaces/AssetsBundle) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:258 Structure of a bundle found in a [AssetsManifest](/pixi-vn/index/interfaces/AssetsManifest) file. Bundles allow you to group related assets together for easier management and loading. ## Example [#example] ```ts // Basic bundle structure const bundle: AssetsBundle = { name: 'level-1', assets: [ { alias: 'background', src: 'level1/bg.{webp,png}' }, { alias: 'sprites', src: 'level1/sprites.json' } ] }; // Using object format for assets const bundle: AssetsBundle = { name: 'ui', assets: { button: 'ui/button.png', panel: 'ui/panel.png', icons: ['ui/icons.webp', 'ui/icons.png'] } }; ``` ## See [#see] * Assets.addBundle For adding bundles programmatically * Assets.loadBundle For loading bundles ## Standard [#standard] ## Properties [#properties] ### assets [#assets] \> **assets**: [`UnresolvedAsset`](/pixi-vn/index/interfaces/UnresolvedAsset)\<`any`>\[] | `Record`\<`string`, `ArrayOr`\<`string`> | [`UnresolvedAsset`](/pixi-vn/index/interfaces/UnresolvedAsset)\<`any`>> Defined in: node_modules/pixi.js/lib/assets/types.d.ts:262 Assets contained in the bundle. Can be an array of assets or a record mapping aliases to sources. *** ### name [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:260 Unique identifier for the bundle # Interface: AssetsManifest (/pixi-vn/index/interfaces/AssetsManifest) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:308 The manifest format for defining all assets in your application. Manifests provide a structured way to organize and manage your assets through bundles. ## Example [#example] ```ts const manifest: AssetsManifest = { bundles: [ { name: 'loading', assets: [ { alias: 'logo', src: 'logo.{webp,png}', data: { scaleMode: 'nearest' } }, { alias: 'progress-bar', src: 'progress.png' } ] }, { name: 'game', assets: { background: ['bg.webp', 'bg.png'], character: 'hero.json', music: 'theme.mp3' } } ] }; // Initialize with manifest await Assets.init({ manifest }); // Load bundles as needed await Assets.loadBundle('loading'); await Assets.loadBundle('game'); ``` ## See [#see] * Assets.init For initializing with a manifest * [AssetsBundle](/pixi-vn/index/interfaces/AssetsBundle) For bundle structure details ## Standard [#standard] ## Properties [#properties] ### bundles [#bundles] \> **bundles**: [`AssetsBundle`](/pixi-vn/index/interfaces/AssetsBundle)\[] Defined in: node_modules/pixi.js/lib/assets/types.d.ts:310 Array of asset bundles that make up the manifest # Interface: AudioChannelInterface (/pixi-vn/index/interfaces/AudioChannelInterface) Defined in: [src/sound/interfaces/AudioChannelInterface.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L5) ## Properties [#properties] ### alias [#alias] \> `readonly` **alias**: `string` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L9) The alias of the audio channel. This is used to reference the channel when playing sounds. The alias must be unique among all channels. *** ### background [#background] \> `readonly` **background**: `boolean` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:54](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L54) Whether this channel is a background channel. Background channels are special channels. Unlike normal channels, media connected to a background channel does not stop when a scene changes, but continues to play in the background. *** ### mediaInstances [#mediainstances] \> `readonly` **mediaInstances**: [`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)\[] Defined in: [src/sound/interfaces/AudioChannelInterface.ts:49](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L49) The MediaInstances currently playing through this channel. This is read-only and cannot be modified directly. Use the play method to add new MediaInstances to this channel. *** ### muted [#muted] \> **muted**: `boolean` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L45) Whether the audio channel is muted. This is combined with the muted state of each sound played through this channel. *** ### pan [#pan] \> **pan**: `number` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L37) The stereo pan position for this channel in the range \[-1, 1]. -1 is full left, 0 is centre, 1 is full right. *** ### panParam [#panparam] \> `readonly` **panParam**: `Param`\<`"audioRange"`> Defined in: [src/sound/interfaces/AudioChannelInterface.ts:141](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L141) **Advanced** — the raw `Tone.Param<"audioRange">` for this channel's stereo pan position. Unlike the [pan](#pan) property (which sets the value instantly), this Param exposes all Tone.js automation methods such as `rampTo`, `linearRampTo`, and `exponentialRampTo`. Use this when you need to smoothly automate panning over time instead of setting it instantly. Values range from -1 (full left) to 1 (full right). #### Example [#example] ```ts const channel = sound.channels.find("music"); // Gradually pan to the left over 3 seconds. channel.panParam.rampTo(-1, 3); // Return to centre over 2 seconds. channel.panParam.rampTo(0, 2); ``` *** ### volume [#volume] \> **volume**: `number` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L41) The volume of the audio channel, between 0 and 1. This is multiplied with the volume of each sound played through this channel. *** ### volumeParam [#volumeparam] \> `readonly` **volumeParam**: `Param`\<`"decibels"`> Defined in: [src/sound/interfaces/AudioChannelInterface.ts:118](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L118) **Advanced** — the raw `Tone.Param<"decibels">` for this channel's volume. Unlike the [volume](#volume) property (which uses a linear 0–1 scale), this Param works directly in **decibels** and exposes all Tone.js automation methods such as `rampTo`, `linearRampTo`, and `exponentialRampTo`. Use this when you need to smoothly automate volume over time instead of setting it instantly. #### Example [#example-1] ```ts const channel = sound.channels.find("music"); // Fade the volume from its current level to -12 dB over 3 seconds. channel.volumeParam.rampTo(-12, 3); // Fade to silence over 2 seconds. channel.volumeParam.rampTo(-Infinity, 2); ``` ## Methods [#methods] ### chain() [#chain] \> **chain**(...`nodes`): `this` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:96](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L96) Useful for inserting channel-wide audio effects such as reverb, delay or EQ. Install "tone" to use this method. #### Parameters [#parameters] ##### nodes [#nodes] ...`ToneAudioNode`\<`ToneWithContextOptions`>\[] One or more Tone.js ToneAudioNode instances to chain in series. #### Returns [#returns] `this` Instance for chaining. #### Example [#example-2] ```ts import * as Tone from "tone"; const channel = sound.channels.find("music"); // Create a reverb effect and wait for its impulse response to be ready. const reverb = new Tone.Reverb({ decay: 2.5 }); // Route the channel through the reverb to the master output. channel.chain(reverb); ``` *** ### pauseAll() [#pauseall] \> **pauseAll**(): `this` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:64](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L64) Pauses any playing sounds. #### Returns [#returns-1] `this` Instance for chaining. *** ### play() [#play] #### Call Signature [#call-signature] \> **play**(`alias`, `options?`): `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> Defined in: [src/sound/interfaces/AudioChannelInterface.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L18) Plays a sound. ##### Parameters [#parameters-1] ###### alias [#alias-1] `string` The media and sound (asset) alias reference. ###### options? [#options] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions) The options ##### Returns [#returns-2] `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> The sound instance, this cannot be reused after it is done playing. Returns a Promise if the sound has not yet loaded. #### Call Signature [#call-signature-1] \> **play**(`mediaAlias`, `soundAlias`, `options?`): `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> Defined in: [src/sound/interfaces/AudioChannelInterface.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L28) Plays a sound. ##### Parameters [#parameters-2] ###### mediaAlias [#mediaalias] `string` The media alias reference. ###### soundAlias [#soundalias] `string` The sound (asset) alias reference. ###### options? [#options-1] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions) The options ##### Returns [#returns-3] `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> The sound instance, this cannot be reused after it is done playing. Returns a Promise if the sound has not yet loaded. *** ### resumeAll() [#resumeall] \> **resumeAll**(): `this` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:69](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L69) Resumes any sounds. #### Returns [#returns-4] `this` Instance for chaining. *** ### stopAll() [#stopall] \> **stopAll**(): `this` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:59](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L59) Stops all media currently playing through this channel. #### Returns [#returns-5] `this` Instance for chaining. *** ### toggleMuteAll() [#togglemuteall] \> **toggleMuteAll**(): `boolean` Defined in: [src/sound/interfaces/AudioChannelInterface.ts:74](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/AudioChannelInterface.ts#L74) Toggle muted property for all sounds. #### Returns [#returns-6] `boolean` `true` if all sounds are muted. # Interface: BlurInOutProps (/pixi-vn/index/interfaces/BlurInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:172](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L172) Shared by every `xIn` transition that can replace an existing component (same alias): whether the replaced component leaves with its own out animation, started together with the new component's in. ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:192](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L192) Whether the component itself also briefly fades in (`blurIn`) or out (`blurOut`) alongside the blur, softening what would otherwise be an instant pop-in/pop-out - the fade runs at a quarter of the effect's own duration, mirrored to the start of `blurIn` or the end of `blurOut`. #### Default [#default-3] ```ts true ``` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### quality? [#quality] \> `optional` **quality?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:185](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L185) The quality (number of blur passes) of the blur filter. Higher is smoother but slower. #### Default [#default-5] ```ts 4 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:180](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L180) The blur strength the effect starts from (`blurIn`) or ends at (`blurOut`). #### Default [#default-7] ```ts 32 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Interface: BlurPulseEffectProps (/pixi-vn/index/interfaces/BlurPulseEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:280](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L280) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-3] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### pulses? [#pulses] \> `optional` **pulses?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:290](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L290) The number of pulses. #### Default [#default-5] ```ts 3 ``` *** ### quality? [#quality] \> `optional` **quality?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:296](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L296) The blur filter's own render quality (number of blur passes). Higher looks smoother but costs more to render. #### Default [#default-6] ```ts 4 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:285](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L285) The peak blur strength of the first, largest pulse. #### Default [#default-8] ```ts 8 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: BounceEffectProps (/pixi-vn/index/interfaces/BounceEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L38) Shared options for the generic, repeated articulated-animation effects (BounceEffectProps, [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounces? [#bounces] \> `optional` **bounces?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L53) The number of bounces. #### Default [#default-1] ```ts 4 ``` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-4] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: [src/canvas/interfaces/effect-props.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L43) The direction the component displaces towards on each bounce, before returning to rest. #### Default [#default-5] ```ts "up" ``` *** ### distance? [#distance] \> `optional` **distance?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:48](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L48) The distance (in pixels) of the first, largest bounce. #### Default [#default-6] ```ts 30 ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-7] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: CanvasBaseInterface (/pixi-vn/index/interfaces/CanvasBaseInterface) Defined in: [src/canvas/interfaces/CanvasBaseInterface.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasBaseInterface.ts#L5) This class is used to create a canvas element to add into a Pixi Application. You can use [()](/pixi-vn/index/interfaces/CanvasManagerInterface#add) to add this element into the application. This class should be implemented and the memory method should be overridden. You must use the [canvasComponentDecorator](/pixi-vn/index/namespaces/RegisteredCanvasComponents) to register the canvas in the game. In Ren'Py is a displayable. ## Example [#example] ```ts const CANVAS_EXAMPLE_ID = "CanvasExample"; \@canvasComponentDecorator({ name: CANVAS_EXAMPLE_ID, }) export class CanvasExample extends Container implements CanvasBaseItem { get memory(): Memory { return { pixivnId: CANVAS_EXAMPLE_ID, // ... other properties } } async setMemory(value: Memory) { // ... set other properties } } ``` ## Extends [#extends] * [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`T2`> * `Container` ## Type Parameters [#type-parameters] ### T2 [#t2] `T2` *extends* [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] `PixiContainer.__devtoolIgnore` *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] `PixiContainer.__devtoolIgnoreChildren` *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] `PixiContainer.__devtoolLocked` *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-3] `PixiContainer._cx` *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-4] `PixiContainer._cy` *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-5] `PixiContainer._pivot` *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-6] `PixiContainer._position` *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-7] `PixiContainer._scale` *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-8] `PixiContainer._skew` *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-9] `PixiContainer._sx` *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-10] `PixiContainer._sy` *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-11] `PixiContainer._zIndex` *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-12] `PixiContainer.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-13] `PixiContainer.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-14] `PixiContainer.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-15] `PixiContainer.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-16] `PixiContainer.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-17] `PixiContainer.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-7] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-18] `PixiContainer.accessibleType` *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:10 **`Internal`** #### Inherited from [#inherited-from-19] `PixiContainer.allowChildren` *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-8] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-20] `PixiContainer.boundsArea` *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-21] `PixiContainer.cacheAsBitmap` *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns] `void` #### Example [#example-9] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cached content * [Container#isCachedAsTexture](/pixi-vn/index/classes/VideoSprite#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-22] `PixiContainer.cacheAsTexture` *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-10] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-23] `PixiContainer.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-11] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-24] `PixiContainer.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-12] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-25] `PixiContainer.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-13] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-9] ```ts null ``` #### Inherited from [#inherited-from-26] `PixiContainer.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-14] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-10] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-27] `PixiContainer.cursor` *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-28] `PixiContainer.depthOfChildModified` *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-15] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-11] ```ts false ``` #### See [#see-3] [Container#destroy](/pixi-vn/index/classes/Container#destroy) For destroying objects #### Inherited from [#inherited-from-29] `PixiContainer.destroyed` *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-30] `PixiContainer.effects` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-31] `PixiContainer.eventMode` *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-17] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * [Container#filters](/pixi-vn/index/classes/VideoSprite#filters) For applying filters * [Rectangle](/pixi-vn/index/variables/Rectangle) For area definition #### Inherited from [#inherited-from-32] `PixiContainer.filterArea` *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-33] `PixiContainer.globalDisplayStatus` *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-34] `PixiContainer.groupAlpha` *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-35] `PixiContainer.groupBlendMode` *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-36] `PixiContainer.groupColor` *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-37] `PixiContainer.groupColorAlpha` *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-38] `PixiContainer.groupTransform` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-18] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-39] `PixiContainer.hitArea` *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-19] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-40] `PixiContainer.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-12] ```ts true ``` #### Example [#example-20] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-41] `PixiContainer.interactiveChildren` *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-21] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * [Container#cacheAsTexture](/pixi-vn/index/classes/Container#cacheastexture) For enabling caching * [Container#updateCacheTexture](/pixi-vn/index/classes/Container#updatecachetexture) For updating cache #### Inherited from [#inherited-from-42] `PixiContainer.isCachedAsTexture` *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-2] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-22] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-43] `PixiContainer.isInteractive` *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-44] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-45] `PixiContainer.layerParentId` *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-46] `PixiContainer.localAlpha` *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-47] `PixiContainer.localBlendMode` *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-48] `PixiContainer.localColor` *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-49] `PixiContainer.localDisplayStatus` *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-23] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](/pixi-vn/index/classes/VideoSprite#worldtransform) For global transform * [Container#groupTransform](/pixi-vn/index/classes/VideoSprite#grouptransform) For render group transform #### Inherited from [#inherited-from-50] `PixiContainer.localTransform` *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a [Sprite](/pixi-vn/index/classes/Sprite) object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-24] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * [Sprite](/pixi-vn/index/classes/Sprite) For texture-based masks * [Container#setMask](/pixi-vn/index/classes/VideoSprite#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-51] `PixiContainer.mask` *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-52] `PixiContainer.name` *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-53] `PixiContainer.onclick` *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-54] `PixiContainer.oncontextmenu` *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-17] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-55] `PixiContainer.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-56] `PixiContainer.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-57] `PixiContainer.onglobaltouchmove` *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-20] ```ts null ``` #### Inherited from [#inherited-from-58] `PixiContainer.onmousedown` *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-59] `PixiContainer.onmouseenter` *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-60] `PixiContainer.onmouseleave` *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-61] `PixiContainer.onmousemove` *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-62] `PixiContainer.onmouseout` *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-63] `PixiContainer.onmouseover` *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-64] `PixiContainer.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-65] `PixiContainer.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-66] `PixiContainer.onpointercancel` *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-67] `PixiContainer.onpointerdown` *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-68] `PixiContainer.onpointerenter` *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-69] `PixiContainer.onpointerleave` *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-70] `PixiContainer.onpointermove` *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-71] `PixiContainer.onpointerout` *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-72] `PixiContainer.onpointerover` *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-73] `PixiContainer.onpointertap` *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-74] `PixiContainer.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-75] `PixiContainer.onpointerupoutside` *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-48] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-76] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-77] `PixiContainer.onrightclick` *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-78] `PixiContainer.onrightdown` *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-79] `PixiContainer.onrightup` *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-80] `PixiContainer.onrightupoutside` *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-81] `PixiContainer.ontap` *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-82] `PixiContainer.ontouchcancel` *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-83] `PixiContainer.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-84] `PixiContainer.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-85] `PixiContainer.ontouchmove` *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-86] `PixiContainer.ontouchstart` *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-59] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-87] `PixiContainer.onwheel` *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-60] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-88] `PixiContainer.parent` *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-89] `PixiContainer.parentRenderLayer` *** ### pixivnId [#pixivnid] \> **pixivnId**: `string` = `"canvas_element_id_not_set"` Defined in: [src/canvas/classes/CanvasBaseItem.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L56) Get the id of the canvas element. This variable is used in the system to get the canvas element by id #### Inherited from [#inherited-from-90] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`pixivnId`](/pixi-vn/index/classes/CanvasBaseItem#pixivnid) *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-91] `PixiContainer.relativeGroupTransform` *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:800 **`Internal`** #### Inherited from [#inherited-from-92] `PixiContainer.renderPipeId` *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-61] ```ts container.sortableChildren = true; ``` #### Default [#default-49] ```ts false ``` #### Inherited from [#inherited-from-93] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-3] `void` #### Example [#example-62] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling automatic sorting * [Container#zIndex](/pixi-vn/index/classes/VideoSprite#zindex) For setting child order #### Inherited from [#inherited-from-94] `PixiContainer.sortChildren` *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-50] ```ts false @internal ``` #### Inherited from [#inherited-from-95] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-51] ```ts 0 ``` #### Example [#example-63] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-96] `PixiContainer.tabIndex` *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-97] `PixiContainer.uid` *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-4] `void` #### Example [#example-64] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-98] `PixiContainer.updateCacheTexture` *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-99] `PixiContainer.updateTick` *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-65] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-52] ```ts 0 ``` #### Inherited from [#inherited-from-100] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) ## Accessors [#accessors] ### alpha [#alpha] #### Get Signature [#get-signature] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-66] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-53] ```ts 1 ``` ##### See [#see-14] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control ##### Returns [#returns-5] `number` #### Set Signature [#set-signature] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-1] ###### value [#value] `number` ##### Returns [#returns-6] `void` #### Inherited from [#inherited-from-101] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`alpha`](/pixi-vn/index/classes/VideoSprite#alpha) *** ### angle [#angle] #### Get Signature [#get-signature-1] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-67] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-7] `number` #### Set Signature [#set-signature-1] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-2] ###### value [#value-1] `number` ##### Returns [#returns-8] `void` #### Inherited from [#inherited-from-102] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`angle`](/pixi-vn/index/classes/VideoSprite#angle) *** ### blendMode [#blendmode] #### Get Signature [#get-signature-2] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-68] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-54] ```ts 'normal' ``` ##### See [#see-15] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments ##### Returns [#returns-9] `BLEND_MODES` #### Set Signature [#set-signature-2] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-3] ###### value [#value-2] `BLEND_MODES` ##### Returns [#returns-10] `void` #### Inherited from [#inherited-from-103] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`blendMode`](/pixi-vn/index/classes/VideoSprite#blendmode) *** ### filters [#filters] #### Get Signature [#get-signature-3] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-69] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-16] Filter For filter base class ##### Returns [#returns-11] readonly `Filter`\[] #### Set Signature [#set-signature-3] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-70] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-17] Filter For filter base class ##### Parameters [#parameters-4] ###### value [#value-3] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-12] `void` #### Inherited from [#inherited-from-104] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`filters`](/pixi-vn/index/classes/VideoSprite#filters) *** ### height [#height] #### Get Signature [#get-signature-4] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1117 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-71] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Returns [#returns-13] `number` #### Set Signature [#set-signature-4] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1118 ##### Parameters [#parameters-5] ###### value [#value-4] `number` ##### Returns [#returns-14] `void` #### Inherited from [#inherited-from-105] [`ImageContainer`](/pixi-vn/index/classes/ImageContainer).[`height`](/pixi-vn/index/classes/ImageContainer#height) *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-5] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-15] `boolean` #### Inherited from [#inherited-from-106] `PixiContainer.isRenderable` *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-6] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-16] `boolean` #### Set Signature [#set-signature-5] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-6] ###### value [#value-5] `boolean` ##### Returns [#returns-17] `void` #### Inherited from [#inherited-from-107] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`isRenderGroup`](/pixi-vn/index/classes/VideoSprite#isrendergroup) *** ### memory [#memory] #### Get Signature [#get-signature-7] \> **get** **memory**(): `T2` Defined in: [src/canvas/classes/CanvasBaseItem.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L37) This method return the memory of the canvas element. ##### Throws [#throws] when the method is not overridden in the subclass. ##### Returns [#returns-18] `T2` #### Inherited from [#inherited-from-108] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`memory`](/pixi-vn/index/classes/CanvasBaseItem#memory) *** ### origin [#origin] #### Get Signature [#get-signature-8] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-72] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-19] `ObservablePoint` #### Set Signature [#set-signature-6] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-7] ###### value [#value-6] `number` | `PointData` ##### Returns [#returns-20] `void` #### Inherited from [#inherited-from-109] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`origin`](/pixi-vn/index/classes/VideoSprite#origin) *** ### pivot [#pivot] #### Get Signature [#get-signature-9] \> **get** **pivot**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1023 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-73] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-21] `ObservablePoint` #### Set Signature [#set-signature-7] \> **set** **pivot**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1024 ##### Parameters [#parameters-8] ###### value [#value-7] `number` | `PointData` ##### Returns [#returns-22] `void` #### Inherited from [#inherited-from-110] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`pivot`](/pixi-vn/index/classes/VideoSprite#pivot) *** ### position [#position] #### Get Signature [#get-signature-10] \> **get** **position**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:959 The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-74] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-3] 4.0.0 ##### Returns [#returns-23] `ObservablePoint` #### Set Signature [#set-signature-8] \> **set** **position**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:960 ##### Parameters [#parameters-9] ###### value [#value-8] `PointData` ##### Returns [#returns-24] `void` #### Inherited from [#inherited-from-111] `CanvasBaseInterface`.[`position`](#position) *** ### renderable [#renderable] #### Get Signature [#get-signature-11] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-75] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-55] ```ts true ``` ##### See [#see-18] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-25] `boolean` #### Set Signature [#set-signature-9] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-10] ###### value [#value-9] `boolean` ##### Returns [#returns-26] `void` #### Inherited from [#inherited-from-112] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`renderable`](/pixi-vn/index/classes/VideoSprite#renderable) *** ### rotation [#rotation] #### Get Signature [#get-signature-12] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-76] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-27] `number` #### Set Signature [#set-signature-10] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-11] ###### value [#value-10] `number` ##### Returns [#returns-28] `void` #### Inherited from [#inherited-from-113] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`rotation`](/pixi-vn/index/classes/VideoSprite#rotation) *** ### scale [#scale] #### Get Signature [#get-signature-13] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-77] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-4] 4.0.0 ##### Returns [#returns-29] `ObservablePoint` #### Set Signature [#set-signature-11] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-12] ###### value [#value-11] `string` | `number` | `PointData` ##### Returns [#returns-30] `void` #### Inherited from [#inherited-from-114] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`scale`](/pixi-vn/index/classes/VideoSprite#scale) *** ### skew [#skew] #### Get Signature [#get-signature-14] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-78] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-5] 4.0.0 ##### Default [#default-56] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-31] `ObservablePoint` #### Set Signature [#set-signature-12] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-13] ###### value [#value-12] `PointData` ##### Returns [#returns-32] `void` #### Inherited from [#inherited-from-115] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`skew`](/pixi-vn/index/classes/VideoSprite#skew) *** ### tint [#tint] #### Get Signature [#get-signature-15] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-79] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-57] ```ts 0xFFFFFF ``` ##### See [#see-19] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control ##### Returns [#returns-33] `number` #### Set Signature [#set-signature-13] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-14] ###### value [#value-13] `ColorSource` ##### Returns [#returns-34] `void` #### Inherited from [#inherited-from-116] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`tint`](/pixi-vn/index/classes/VideoSprite#tint) *** ### visible [#visible] #### Get Signature [#get-signature-16] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-80] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-58] ```ts true ``` ##### See [#see-20] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency ##### Returns [#returns-35] `boolean` #### Set Signature [#set-signature-14] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-15] ###### value [#value-14] `boolean` ##### Returns [#returns-36] `void` #### Inherited from [#inherited-from-117] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`visible`](/pixi-vn/index/classes/VideoSprite#visible) *** ### width [#width] #### Get Signature [#get-signature-17] \> **get** **width**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1102 The width of the Container, setting this will actually modify the scale to achieve the value set. \> \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use [Container#setSize](/pixi-vn/index/classes/Container#setsize) as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-81] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Returns [#returns-37] `number` #### Set Signature [#set-signature-15] \> **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1103 ##### Parameters [#parameters-16] ###### value [#value-15] `number` ##### Returns [#returns-38] `void` #### Inherited from [#inherited-from-118] [`ImageContainer`](/pixi-vn/index/classes/ImageContainer).[`width`](/pixi-vn/index/classes/ImageContainer#width) *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-18] \> **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-82] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-21] [Container#localTransform](/pixi-vn/index/classes/VideoSprite#localtransform) For local space transform ##### Returns [#returns-39] `Matrix` #### Inherited from [#inherited-from-119] `PixiContainer.worldTransform` *** ### x [#x] #### Get Signature [#get-signature-19] \> **get** **x**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:933 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-83] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-40] `number` #### Set Signature [#set-signature-16] \> **set** **x**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:934 ##### Parameters [#parameters-17] ###### value [#value-16] `number` ##### Returns [#returns-41] `void` #### Inherited from [#inherited-from-120] `CanvasBaseInterface`.[`x`](#x) *** ### y [#y] #### Get Signature [#get-signature-20] \> **get** **y**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:945 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-84] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-42] `number` #### Set Signature [#set-signature-17] \> **set** **y**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:946 ##### Parameters [#parameters-18] ###### value [#value-17] `number` ##### Returns [#returns-43] `void` #### Inherited from [#inherited-from-121] `CanvasBaseInterface`.[`y`](#y) ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] \> **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-19] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-44] `void` #### Inherited from [#inherited-from-122] `PixiContainer._getGlobalBoundsRecursive` *** ### addChild() [#addchild] \> **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters-1] ##### U [#u] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-20] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-45] `U`\[`0`] The first child that was added #### Example [#example-85] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-22] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For adding at specific index #### Inherited from [#inherited-from-123] `PixiContainer.addChild` *** ### addChildAt() [#addchildat] \> **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-2] ##### U [#u-1] `U` *extends* `ContainerChild` #### Parameters [#parameters-21] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-46] `U` The child that was added #### Example [#example-86] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-23] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to the end * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For moving existing children #### Inherited from [#inherited-from-124] `PixiContainer.addChildAt` *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] \> **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-3] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-22] ###### type [#type] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-47] `void` ##### Example [#example-87] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-125] `PixiContainer.addEventListener` #### Call Signature [#call-signature-1] \> **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-23] ###### type [#type-1] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-1] `AddListenerOptions` ##### Returns [#returns-48] `void` ##### Inherited from [#inherited-from-126] `PixiContainer.addEventListener` *** ### addListener() [#addlistener] \> **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-4] ##### T [#t] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters-24] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-49] `this` #### Inherited from [#inherited-from-127] `PixiContainer.addListener` *** ### collectRenderables() [#collectrenderables] \> **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-25] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-50] `void` #### Inherited from [#inherited-from-128] `PixiContainer.collectRenderables` *** ### collectRenderablesSimple() [#collectrenderablessimple] \> **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:30 **`Internal`** Collects renderables using a simple method, suitable for containers marked as simple. This method iterates over the container's children and adds their renderables to the instruction set. #### Parameters [#parameters-26] ##### instructionSet [#instructionset-1] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-1] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer being processed. #### Returns [#returns-51] `void` #### Inherited from [#inherited-from-129] `PixiContainer.collectRenderablesSimple` *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] \> **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-27] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-52] `void` #### Inherited from [#inherited-from-130] `PixiContainer.collectRenderablesWithEffects` *** ### destroy() [#destroy] \> **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1343 Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling `destroy`. #### Parameters [#parameters-28] ##### options? [#options-2] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-53] `void` #### Example [#example-88] ```ts container.destroy(); container.destroy(true); container.destroy({ children: true }); container.destroy({ children: true, texture: true, textureSource: true }); ``` #### Inherited from [#inherited-from-131] `PixiContainer.destroy` *** ### disableRenderGroup() [#disablerendergroup] \> **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-54] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-132] `PixiContainer.disableRenderGroup` *** ### dispatchEvent() [#dispatchevent] \> **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this [Container](/pixi-vn/index/classes/Container) using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-29] ##### e [#e] [`FederatedEvent`](/pixi-vn/index/interfaces/FederatedEvent) The event to dispatch. #### Returns [#returns-55] `boolean` Whether the [preventDefault](/pixi-vn/index/interfaces/FederatedEvent#preventdefault)() method was not invoked. #### Example [#example-89] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-133] `PixiContainer.dispatchEvent` *** ### emit() [#emit] \> **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-5] ##### T [#t-1] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters-30] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`ContainerChild`> & `AnyEvent`>\[`Extract`\<`T`, keyof ContainerEvents | keyof AnyEvent>] #### Returns [#returns-56] `boolean` #### Inherited from [#inherited-from-134] `PixiContainer.emit` *** ### enableRenderGroup() [#enablerendergroup] \> **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-57] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-135] `PixiContainer.enableRenderGroup` *** ### eventNames() [#eventnames] \> **eventNames**(): (keyof ContainerEvents | keyof AnyEvent)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-58] (keyof ContainerEvents | keyof AnyEvent)\[] #### Inherited from [#inherited-from-136] `PixiContainer.eventNames` *** ### getBounds() [#getbounds] \> **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-31] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-1] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-59] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-90] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-24] * [Container#getLocalBounds](/pixi-vn/index/classes/VideoSprite#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-137] `PixiContainer.getBounds` *** ### getChildAt() [#getchildat] \> **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-6] ##### U [#u-2] `U` *extends* `ContainerChild` #### Parameters [#parameters-32] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-60] `U` The child at the given index #### Example [#example-91] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-2] If index is out of bounds #### See [#see-25] * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For name-based lookup #### Inherited from [#inherited-from-138] `PixiContainer.getChildAt` *** ### getChildByLabel() [#getchildbylabel] \> **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-33] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-61] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-92] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-26] * [Container#getChildrenByLabel](/pixi-vn/index/classes/Container#getchildrenbylabel) For finding all matches * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-139] `PixiContainer.getChildByLabel` *** ### ~~getChildByName()~~ [#getchildbyname] \> **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-34] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-62] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-27] Container#getChildByLabel #### Inherited from [#inherited-from-140] `PixiContainer.getChildByName` *** ### getChildIndex() [#getchildindex] \> **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-35] ##### child [#child-1] `ContainerChild` The Container instance to identify #### Returns [#returns-63] `number` The index position of the child container #### Example [#example-93] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-3] If child is not in this container #### See [#see-28] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For changing index * [Container#children](/pixi-vn/index/classes/Container#children) For direct array access #### Inherited from [#inherited-from-141] `PixiContainer.getChildIndex` *** ### getChildrenByLabel() [#getchildrenbylabel] \> **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-36] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-64] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-94] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-29] * [Container#getChildByLabel](/pixi-vn/index/classes/Container#getchildbylabel) For finding first match * [Container#label](/pixi-vn/index/classes/VideoSprite#label) For setting labels #### Inherited from [#inherited-from-142] `PixiContainer.getChildrenByLabel` *** ### getFastGlobalBounds() [#getfastglobalbounds] \> **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-37] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-2] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-65] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-143] `PixiContainer.getFastGlobalBounds` *** ### getGlobalAlpha() [#getglobalalpha] \> **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-38] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-66] `number` The resulting alpha value (between 0 and 1) #### Example [#example-95] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-144] `PixiContainer.getGlobalAlpha` *** ### getGlobalPosition() [#getglobalposition] \> **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-39] ##### point? [#point] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-67] `Point` The updated point #### Example [#example-96] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-30] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For converting specific points * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For converting to local space #### Inherited from [#inherited-from-145] `PixiContainer.getGlobalPosition` *** ### getGlobalTint() [#getglobaltint] \> **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-40] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-68] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-97] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-146] `PixiContainer.getGlobalTint` *** ### getGlobalTransform() [#getglobaltransform] \> **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-41] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-69] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-98] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-147] `PixiContainer.getGlobalTransform` *** ### getLocalBounds() [#getlocalbounds] \> **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-70] `Bounds` The bounding area #### Example [#example-99] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-31] * [Container#getBounds](/pixi-vn/index/classes/VideoSprite#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-148] `PixiContainer.getLocalBounds` *** ### getSize() [#getsize] \> **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1136 Retrieves the size of the container as a \[Size]Size object. This is faster than get the width and height separately. #### Parameters [#parameters-42] ##### out? [#out-1] `Size` Optional object to store the size in. #### Returns [#returns-71] `Size` The size of the container. #### Example [#example-100] ```ts // Basic size retrieval const size = container.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; container.getSize(reuseSize); ``` #### Inherited from [#inherited-from-149] `PixiContainer.getSize` *** ### listenerCount() [#listenercount] \> **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-43] ##### event [#event-2] keyof ContainerEvents | keyof AnyEvent #### Returns [#returns-72] `number` #### Inherited from [#inherited-from-150] `PixiContainer.listenerCount` *** ### listeners() [#listeners] \> **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-7] ##### T [#t-2] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters-44] ##### event [#event-3] `T` #### Returns [#returns-73] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-151] `PixiContainer.listeners` *** ### off() [#off] \> **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-8] ##### T [#t-3] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters-45] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-74] `this` #### Inherited from [#inherited-from-152] `PixiContainer.off` *** ### on() [#on] \> **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:40 Add a listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-4] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters-46] ##### event [#event-5] `T` ##### fn [#fn-2] (...`args`) => `void` ##### context? [#context-2] `any` #### Returns [#returns-75] `this` #### Inherited from [#inherited-from-153] `PixiContainer.on` *** ### once() [#once-1] \> **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-10] ##### T [#t-5] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters-47] ##### event [#event-6] `T` ##### fn [#fn-3] (...`args`) => `void` ##### context? [#context-3] `any` #### Returns [#returns-76] `this` #### Inherited from [#inherited-from-154] `PixiContainer.once` *** ### removeAllListeners() [#removealllisteners] \> **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-48] ##### event? [#event-7] keyof ContainerEvents | keyof AnyEvent #### Returns [#returns-77] `this` #### Inherited from [#inherited-from-155] `PixiContainer.removeAllListeners` *** ### removeChild() [#removechild] \> **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-11] ##### U [#u-3] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-49] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-78] `U`\[`0`] The first child that was removed #### Example [#example-101] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-32] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-156] `PixiContainer.removeChild` *** ### removeChildAt() [#removechildat] \> **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-12] ##### U [#u-4] `U` *extends* `ContainerChild` #### Parameters [#parameters-50] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-79] `U` The child that was removed #### Example [#example-102] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-4] If index is out of bounds #### See [#see-33] * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children * [Container#removeChildren](/pixi-vn/index/classes/Container#removechildren) For removing multiple children #### Inherited from [#inherited-from-157] `PixiContainer.removeChildAt` *** ### removeChildren() [#removechildren] \> **removeChildren**(`beginIndex?`, `endIndex?`): `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-51] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-80] `ContainerChild`\[] List of removed children #### Example [#example-103] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-5] If begin/end indexes are invalid #### See [#see-34] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing specific children #### Inherited from [#inherited-from-158] `PixiContainer.removeChildren` *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-2] \> **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-13] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-52] ###### type [#type-2] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-3] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-81] `void` ##### Inherited from [#inherited-from-159] `PixiContainer.removeEventListener` #### Call Signature [#call-signature-3] \> **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-53] ###### type [#type-3] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-4] `RemoveListenerOptions` ##### Returns [#returns-82] `void` ##### Inherited from [#inherited-from-160] `PixiContainer.removeEventListener` *** ### removeFromParent() [#removefromparent] \> **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-83] `void` #### Example [#example-104] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-35] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a new parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For parent removing children #### Inherited from [#inherited-from-161] `PixiContainer.removeFromParent` *** ### removeListener() [#removelistener] \> **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-14] ##### T [#t-6] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters-54] ##### event [#event-8] `T` ##### fn? [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-84] `this` #### Inherited from [#inherited-from-162] `PixiContainer.removeListener` *** ### reparentChild() [#reparentchild] \> **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-5] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-55] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-85] `U`\[`0`] The first child that was reparented #### Example [#example-105] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-36] * [Container#reparentChildAt](/pixi-vn/index/classes/Container#reparentchildat) For index-specific reparenting * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For simple parenting #### Inherited from [#inherited-from-163] `PixiContainer.reparentChild` *** ### reparentChildAt() [#reparentchildat] \> **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-16] ##### U [#u-6] `U` *extends* `ContainerChild` #### Parameters [#parameters-56] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-86] `U` The reparented child #### Example [#example-106] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-6] If index is out of bounds #### See [#see-37] * [Container#reparentChild](/pixi-vn/index/classes/Container#reparentchild) For appending reparented children * [Container#addChildAt](/pixi-vn/index/classes/Container#addchildat) For simple indexed parenting #### Inherited from [#inherited-from-164] `PixiContainer.reparentChildAt` *** ### replaceChild() [#replacechild] \> **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-17] ##### U [#u-7] `U` *extends* `ContainerChild` ##### T [#t-7] `T` *extends* `ContainerChild` #### Parameters [#parameters-57] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-87] `void` #### Inherited from [#inherited-from-165] `PixiContainer.replaceChild` *** ### setChildIndex() [#setchildindex] \> **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-58] ##### child [#child-4] `ContainerChild` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-88] `void` #### Example [#example-107] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-7] If index is out of bounds #### Throws [#throws-8] If child is not in container #### See [#see-38] * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current index * [Container#swapChildren](/pixi-vn/index/classes/Container#swapchildren) For swapping positions #### Inherited from [#inherited-from-166] `PixiContainer.setChildIndex` *** ### setFromMatrix() [#setfrommatrix] \> **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-59] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-89] `void` #### Example [#example-108] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-39] * [Container#updateTransform](/pixi-vn/index/classes/Container#updatetransform) For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-167] `PixiContainer.setFromMatrix` *** ### setMask() [#setmask] \> **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-60] ##### options [#options-5] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-90] `void` #### Example [#example-109] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-40] * [Container#mask](/pixi-vn/index/classes/VideoSprite#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-168] `PixiContainer.setMask` *** ### setMemory() [#setmemory] \> **setMemory**(`_value`): `void` | `Promise`\<`void`> Defined in: [src/canvas/classes/CanvasBaseItem.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/classes/CanvasBaseItem.ts#L47) This method set the memory of the canvas element. #### Parameters [#parameters-61] ##### \_value [#_value] `T2` #### Returns [#returns-91] `void` | `Promise`\<`void`> #### Throws [#throws-9] when the method is not overridden in the subclass. #### Inherited from [#inherited-from-169] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem).[`setMemory`](/pixi-vn/index/classes/CanvasBaseItem#setmemory) *** ### setSize() [#setsize] \> **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1151 Sets the size of the container to the specified width and height. This is more efficient than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-62] ##### value [#value-18] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a \[Size]Size object. ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided. #### Returns [#returns-92] `void` #### Example [#example-110] ```ts // Basic size setting container.setSize(100, 200); // Set uniform size container.setSize(100); // Sets both width and height to 100 ``` #### Inherited from [#inherited-from-170] `PixiContainer.setSize` *** ### swapChildren() [#swapchildren] \> **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-18] ##### U [#u-8] `U` *extends* `ContainerChild` #### Parameters [#parameters-63] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-93] `void` #### Example [#example-111] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-10] If either child is not in container #### See [#see-41] * [Container#setChildIndex](/pixi-vn/index/classes/Container#setchildindex) For direct index placement * [Container#getChildIndex](/pixi-vn/index/classes/Container#getchildindex) For getting current positions #### Inherited from [#inherited-from-171] `PixiContainer.swapChildren` *** ### toGlobal() [#toglobal] \> **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-19] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-64] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-1] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-94] `P` The global position #### Example [#example-112] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-42] * [Container#toLocal](/pixi-vn/index/classes/VideoSprite#tolocal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-172] `PixiContainer.toGlobal` *** ### toLocal() [#tolocal] \> **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-20] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-65] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-2] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-95] `P` A point object representing the position in local space #### Example [#example-113] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-43] * [Container#toGlobal](/pixi-vn/index/classes/VideoSprite#toglobal) For reverse conversion * [Container#getGlobalPosition](/pixi-vn/index/classes/VideoSprite#getglobalposition) For container position #### Inherited from [#inherited-from-173] `PixiContainer.toLocal` *** ### updateLocalTransform() [#updatelocaltransform] \> **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-96] `void` #### Inherited from [#inherited-from-174] `PixiContainer.updateLocalTransform` *** ### updateTransform() [#updatetransform] \> **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-66] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-97] `this` This container, for chaining #### Example [#example-114] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-44] * [Container#setFromMatrix](/pixi-vn/index/classes/Container#setfrommatrix) For matrix-based transforms * [Container#position](#position) For direct position access #### Inherited from [#inherited-from-175] `PixiContainer.updateTransform` # Interface: CanvasBaseItemMemory (/pixi-vn/index/interfaces/CanvasBaseItemMemory) Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L6) Interface for the canvas base memory ## Extended by [#extended-by] * [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory) * [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory) * [`TextMemory`](/pixi-vn/index/interfaces/TextMemory) ## Properties [#properties] ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one *** ### label? [#label] \> `optional` **label?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L16) *** ### parentLabel? [#parentlabel] \> `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one *** ### pixivnFilters? [#pixivnfilters] \> `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. *** ### pixivnId [#pixivnid] \> **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) *** ### zIndex? [#zindex] \> `optional` **zIndex?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L17) # Interface: CanvasGameState (/pixi-vn/index/interfaces/CanvasGameState) Defined in: [src/canvas/interfaces/CanvasGameState.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasGameState.ts#L6) Interface exported canvas ## Properties [#properties] ### ~~elementAliasesOrder~~ [#elementaliasesorder] \> **elementAliasesOrder**: `string`\[] Defined in: [src/canvas/interfaces/CanvasGameState.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasGameState.ts#L14) #### Deprecated [#deprecated] *** ### elements [#elements] \> **elements**: `object` Defined in: [src/canvas/interfaces/CanvasGameState.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasGameState.ts#L9) #### Index Signature [#index-signature] \[`alias`: `string`]: [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) *** ### stage [#stage] \> **stage**: `Partial`\<[`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory)> Defined in: [src/canvas/interfaces/CanvasGameState.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasGameState.ts#L10) *** ### tickers [#tickers] \> **tickers**: `object` Defined in: [src/canvas/interfaces/CanvasGameState.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasGameState.ts#L7) #### Index Signature [#index-signature-1] \[`id`: `string`]: [`TickerHistory`](/pixi-vn/index/interfaces/TickerHistory)\<`any`> *** ### tickersSteps [#tickerssteps] \> **tickersSteps**: `object` Defined in: [src/canvas/interfaces/CanvasGameState.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasGameState.ts#L8) #### Index Signature [#index-signature-2] \[`alias`: `string`]: `object` *** ### tickersToCompleteOnStepEnd [#tickerstocompleteonstepend] \> **tickersToCompleteOnStepEnd**: `object` Defined in: [src/canvas/interfaces/CanvasGameState.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasGameState.ts#L15) #### stepAlias [#stepalias] \> **stepAlias**: `object`\[] #### tikersIds [#tikersids] \> **tikersIds**: `object`\[] # Interface: CanvasHtmlLayersInterface (/pixi-vn/index/interfaces/CanvasHtmlLayersInterface) Defined in: [src/canvas/interfaces/CanvasHtmlLayersInterface.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasHtmlLayersInterface.ts#L1) ## Methods [#methods] ### add() [#add] \> **add**(`id`, `element`, `style?`): `HTMLDivElement` Defined in: [src/canvas/interfaces/CanvasHtmlLayersInterface.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasHtmlLayersInterface.ts#L23) Add a HTML layer to the canvas. #### Parameters [#parameters] ##### id [#id] `string` The id of the layer. ##### element [#element] `HTMLElement` The html element to be added. ##### style? [#style] `Partial`\<`Pick`\<`CSSStyleDeclaration`, `"position"` | `"pointerEvents"` | `"userSelect"`>> The style of the layer. #### Returns [#returns] `HTMLDivElement` #### Default [#default] ```ts { position: "absolute", pointerEvents: "none", userSelect: "none" }. ``` #### Example [#example] ```tsx const root = document.getElementById('root') if (!root) { throw new Error('root element not found') } const htmlLayer = canvas.htmlLayers.add("ui", root, { position: "absolute", pointerEvents: "none" }) const reactRoot = createRoot(htmlLayer) reactRoot.render( ) ``` *** ### get() [#get] \> **get**(`id`): `HTMLElement` | `undefined` Defined in: [src/canvas/interfaces/CanvasHtmlLayersInterface.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasHtmlLayersInterface.ts#L32) Get a HTML layer from the canvas. #### Parameters [#parameters-1] ##### id [#id-1] `string` The id of the layer. #### Returns [#returns-1] `HTMLElement` | `undefined` *** ### remove() [#remove] \> **remove**(`id`): `void` Defined in: [src/canvas/interfaces/CanvasHtmlLayersInterface.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasHtmlLayersInterface.ts#L37) Remove a HTML layer from the canvas. #### Parameters [#parameters-2] ##### id [#id-2] `string` The id of the layer to be removed. #### Returns [#returns-2] `void` # Interface: CanvasLayersInterface (/pixi-vn/index/interfaces/CanvasLayersInterface) Defined in: [src/canvas/interfaces/CanvasLayersInterface.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasLayersInterface.ts#L4) ## Properties [#properties] ### gameLayer [#gamelayer] \> `readonly` **gameLayer**: `Container` Defined in: [src/canvas/interfaces/CanvasLayersInterface.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasLayersInterface.ts#L8) The PIXI Container that contains all the canvas elements. ## Methods [#methods] ### add() [#add] \> **add**(`label`, `layer`): [`Layer`](/pixi-vn/index/type-aliases/Layer) | `undefined` Defined in: [src/canvas/interfaces/CanvasLayersInterface.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasLayersInterface.ts#L20) Add a layer to the canvas. #### Parameters [#parameters] ##### label [#label] `string` The label of the layer. ##### layer [#layer] `Container` The layer to be added. #### Returns [#returns] [`Layer`](/pixi-vn/index/type-aliases/Layer) | `undefined` The layer. #### Example [#example] ```ts const uiLayer = new Container(); canvas.layers.add("ui", uiLayer); ``` *** ### get() [#get] \> **get**(`label`): [`Layer`](/pixi-vn/index/type-aliases/Layer) | `null` Defined in: [src/canvas/interfaces/CanvasLayersInterface.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasLayersInterface.ts#L30) Get a layer from the canvas. #### Parameters [#parameters-1] ##### label [#label-1] `string` The label of the layer. #### Returns [#returns-1] [`Layer`](/pixi-vn/index/type-aliases/Layer) | `null` The layer. #### Example [#example-1] ```ts const uiLayer = canvas.layers.get("ui"); ``` *** ### remove() [#remove] \> **remove**(`label`): `void` Defined in: [src/canvas/interfaces/CanvasLayersInterface.ts:39](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasLayersInterface.ts#L39) Remove a layer from the canvas. #### Parameters [#parameters-2] ##### label [#label-2] `string` The label of the layer to be removed. #### Returns [#returns-2] `void` #### Example [#example-2] ```ts canvas.layers.remove("ui"); ``` # Interface: CanvasManagerInterface (/pixi-vn/index/interfaces/CanvasManagerInterface) Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L31) ## Properties [#properties] ### app [#app] \> `readonly` **app**: `Application` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:36](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L36) The PIXI Application instance. It not recommended to use this property directly. *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:99](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L99) The children of the canvas. *** ### ~~currentTickers~~ [#currenttickers] \> `readonly` **currentTickers**: `Map`\<`string`, [`TickerInfo`](/pixi-vn/index/interfaces/TickerInfo)\<`any`>> Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:223](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L223) Currently tickers that are running. #### Deprecated [#deprecated] Use `tickers.currentTickers` from `@drincs/pixi-vn` instead. *** ### ~~currentTickersSteps~~ [#currenttickerssteps] \> `readonly` **currentTickersSteps**: `Map`\<`string`, `Map`\<`string`, [`TickersSequence`](/pixi-vn/index/interfaces/TickersSequence)>> Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:228](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L228) The steps of the tickers #### Deprecated [#deprecated-1] Use `tickers.currentTickersSteps` from `@drincs/pixi-vn` instead. *** ### ~~gameLayer~~ [#gamelayer] \> `readonly` **gameLayer**: `Container` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L41) The PIXI Container that contains all the canvas elements. #### Deprecated [#deprecated-2] Use [layers](#layers).gameLayer instead. *** ### height [#height] \> `readonly` **height**: `number` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:54](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L54) The height of the canvas. *** ### htmlLayers [#htmllayers] \> `readonly` **htmlLayers**: [`CanvasHtmlLayersInterface`](/pixi-vn/index/interfaces/CanvasHtmlLayersInterface) Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:528](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L528) Namespace for operations on canvas HTML layers. *** ### isInitialized [#isinitialized] \> `readonly` **isInitialized**: `boolean` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L45) If the manager is initialized. *** ### layers [#layers] \> `readonly` **layers**: [`CanvasLayersInterface`](/pixi-vn/index/interfaces/CanvasLayersInterface) Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:524](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L524) Namespace for operations on canvas layers. *** ### screen [#screen] \> `readonly` **screen**: `Rectangle` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:58](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L58) The screen of the canvas (Application.screen). *** ### ~~tickers~~ [#tickers] \> `readonly` **tickers**: [`CanvasTickersInterface`](/pixi-vn/index/interfaces/CanvasTickersInterface) Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:359](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L359) Namespace for operations on canvas tickers. #### Deprecated [#deprecated-3] Use the top-level `tickers` module (`@drincs/pixi-vn`) instead. *** ### width [#width] \> `readonly` **width**: `number` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L50) The width of the canvas. ## Methods [#methods] ### add() [#add] \> **add**(`alias`, `canvasComponent`, `options?`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:142](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L142) Add a canvas element to the canvas. If there is a canvas element with the same alias, all "style", zIndex, and [TickerBase](/pixi-vn/index/classes/TickerBase) will be transferred to the new canvas element, and the old canvas element will be removed. #### Parameters [#parameters] ##### alias [#alias] `string` The alias to identify the component. ##### canvasComponent [#canvascomponent] [`CanvasBaseInterface`](/pixi-vn/index/interfaces/CanvasBaseInterface)\<`any`> The component to add. ##### options? [#options] The options of the canvas element. ###### ignoreOldStyle? [#ignoreoldstyle] `boolean` If there is a canvas element with the same alias, the "style" of the old canvas element will be imported to the new canvas element. **Default** ```ts false ``` ###### zIndex? [#zindex] `number` The zIndex of the canvas element. **Default** ```ts undefined ``` #### Returns [#returns] `void` #### Example [#example] ```ts const texture = await Assets.load('https://pixijs.com/assets/bunny.png'); const sprite = Sprite.from(texture); canvas.add("bunny", sprite); ``` *** ### ~~addHtmlLayer()~~ [#addhtmllayer] \> **addHtmlLayer**(`id`, `element`, `style?`): `HTMLDivElement` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:504](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L504) Add a HTML layer to the canvas. #### Parameters [#parameters-1] ##### id [#id] `string` The id of the layer. ##### element [#element] `HTMLElement` The html element to be added. ##### style? [#style] `Partial`\<`Pick`\<`CSSStyleDeclaration`, `"position"` | `"pointerEvents"` | `"userSelect"`>> The style of the layer. #### Returns [#returns-1] `HTMLDivElement` #### Default [#default] ```ts { position: "absolute", pointerEvents: "none", userSelect: "none" }. ``` #### Example [#example-1] ```tsx const root = document.getElementById('root') if (!root) { throw new Error('root element not found') } const htmlLayer = canvas.addHtmlLayer("ui", root, { position: "absolute", pointerEvents: "none" }) const reactRoot = createRoot(htmlLayer) reactRoot.render( ) ``` #### Deprecated [#deprecated-4] Use [htmlLayers](#htmllayers).add instead. *** ### ~~addLayer()~~ [#addlayer] \> **addLayer**(`label`, `layer`): [`Layer`](/pixi-vn/index/type-aliases/Layer) | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:460](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L460) Add a layer to the canvas. #### Parameters [#parameters-2] ##### label [#label] `string` The label of the layer. ##### layer [#layer] `Container` The layer to be added. #### Returns [#returns-2] [`Layer`](/pixi-vn/index/type-aliases/Layer) | `undefined` The layer. #### Example [#example-2] ```ts const uiLayer = new Container(); canvas.addLayer("ui", uiLayer); ``` #### Deprecated [#deprecated-5] Use [layers](#layers).add instead. *** ### ~~addTicker()~~ [#addticker] \> **addTicker**\<`TArgs`>(`canvasElementAlias`, `ticker`): `string` | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:250](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L250) Run a ticker. You can run multiple addTicker with the same alias and different tickerClasses. If you run a ticker with the same alias and tickerClass, the old ticker will be removed. If already exists a sequence of tickers with the same alias, it will be removed. #### Type Parameters [#type-parameters] ##### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) #### Parameters [#parameters-3] ##### canvasElementAlias [#canvaselementalias] `string` | `string`\[] The alias of the canvas element that will use the ticker. ##### ticker [#ticker] [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> The ticker class to be run. #### Returns [#returns-3] `string` | `undefined` The id of the ticker that was added. #### Example [#example-3] ```ts canvas.addTicker("alien", new RotateTicker({ speed: 0.2 })) ``` #### Deprecated [#deprecated-6] Use `tickers.add` from `@drincs/pixi-vn` instead. *** ### ~~addTickersSequence()~~ [#addtickerssequence] \> **addTickersSequence**(`alias`, `steps`, `currentStepNumber?`): `string` | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:269](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L269) Run a sequence of tickers. #### Parameters [#parameters-4] ##### alias [#alias-1] `string` The alias of canvas element that will use the tickers. ##### steps [#steps] [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`>\[] The steps of the tickers. ##### currentStepNumber? [#currentstepnumber] `number` The current step number. It is used to continue the sequence of tickers. #### Returns [#returns-4] `string` | `undefined` The id of tickers. #### Example [#example-4] ```ts canvas.addTickersSequence("alien", [ new RotateTicker({ speed: 0.1, clockwise: true }, 2), // 2 seconds new RotateTicker({ speed: 0.2, clockwise: false }, 2), ]) ``` #### Deprecated [#deprecated-7] Use `tickers.addSequence` from `@drincs/pixi-vn` instead. *** ### animate() [#animate] #### Call Signature [#call-signature] \> **animate**\<`T`>(`components`, `keyframes`, `options?`, `priority?`): `string` | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:421](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L421) Animate a Pixi’VN component or components using [motion's animate](https://motion.dev/docs/animate) function. This function integrates with the PixiJS ticker to ensure smooth animations. Pixi’VN will keep track of the animation state of this function. So Pixi’VN will save the animation state in saves. ##### Type Parameters [#type-parameters-1] ###### T [#t] `T` *extends* [`CanvasBaseInterface`](/pixi-vn/index/interfaces/CanvasBaseInterface)\<`any`> The type of Pixi’VN component(s) being animated. ##### Parameters [#parameters-5] ###### components [#components] `string` | `T` | (`string` | `T`)\[] The PixiJS component(s) to animate. This can be a single component, an array of components, or a string representing the component's alias. ###### keyframes [#keyframes] `KeyframesType`\<`T`> This is an object containing the properties to animate and the values to reach. ###### options? [#options-1] `AnimationOptions` [`motion` options](https://motion.dev/docs/animate#options) for the animation, including duration, `easing`, and ticker. ###### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. This parameter sets the ticker's priority. ##### Returns [#returns-5] `string` | `undefined` The function returns the ID of the ticker created to animate the component(s). ##### Default [#default-1] ```ts UPDATE_PRIORITY.NORMAL ``` #### Call Signature [#call-signature-1] \> **animate**\<`T`>(`components`, `sequence`, `options?`, `priority?`): `string` | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:440](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L440) Animate a Pixi’VN component or components using [motion's animate](https://motion.dev/docs/animate) function. This function integrates with the PixiJS ticker to ensure smooth animations. Pixi’VN will keep track of the animation state of this function. So Pixi’VN will save the animation state in saves. ##### Type Parameters [#type-parameters-2] ###### T [#t-1] `T` *extends* [`CanvasBaseInterface`](/pixi-vn/index/interfaces/CanvasBaseInterface)\<`any`> The type of Pixi’VN component(s) being animated. ##### Parameters [#parameters-6] ###### components [#components-1] `string` | `T` The PixiJS component(s) to animate. This can be a single component, an array of components, or a string representing the component's alias. ###### sequence [#sequence] (`ObjectSegment`\<`T`> | `ObjectSegmentWithTransition`\<`T`>)\[] The sequence of keyframes to animate the component(s) with. ###### options? [#options-2] `SequenceOptions` [`motion` options](https://motion.dev/docs/animate#options) for the animation, including duration, `easing`, and ticker. ###### priority? [#priority-1] `UPDATE_PRIORITY` The priority of the PixiJS ticker. This parameter sets the ticker's priority. ##### Returns [#returns-6] `string` | `undefined` The function returns the ID of the ticker created to animate the component(s). ##### Default [#default-2] ```ts UPDATE_PRIORITY.NORMAL ``` *** ### canvasElementIsOnCanvas() [#canvaselementisoncanvas] \> **canvasElementIsOnCanvas**\<`T`>(`pixiElement`): `boolean` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:194](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L194) Check if a DisplayObject is on the canvas. #### Type Parameters [#type-parameters-3] ##### T [#t-2] `T` *extends* `Container`\<`ContainerChild`> #### Parameters [#parameters-7] ##### pixiElement [#pixielement] `T` The DisplayObject to be checked. #### Returns [#returns-7] `boolean` If the DisplayObject is on the canvas. *** ### clear() [#clear] \> **clear**(): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:541](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L541) Clear the canvas and the tickers. #### Returns [#returns-8] `void` *** ### ~~completeTickerOnStepEnd()~~ [#completetickeronstepend] \> **completeTickerOnStepEnd**(`step`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:390](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L390) Add a ticker that must be completed before the next step. This method is used for example into a transition between scenes. #### Parameters [#parameters-8] ##### step [#step] The step that the ticker must be completed before the next step. ###### alias? [#alias-2] `string` If is a sequence of tickers, the alias of the sequence of tickers. ###### id [#id-1] `string` The id of the step. #### Returns [#returns-9] `void` #### Deprecated [#deprecated-8] Use `tickers.completeOnStepEnd` from `@drincs/pixi-vn` instead. *** ### copyCanvasElementProperty() [#copycanvaselementproperty] \> **copyCanvasElementProperty**\<`T`>(`oldAlias`, `newAlias`, `options?`): `Promise`\<`void`> Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:107](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L107) Copy the properties of an old canvas element to a new canvas element. #### Type Parameters [#type-parameters-4] ##### T [#t-3] `T` *extends* [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) #### Parameters [#parameters-9] ##### oldAlias [#oldalias] `string` | `T` | [`CanvasBaseInterface`](/pixi-vn/index/interfaces/CanvasBaseInterface)\<`T`> Old alias ##### newAlias [#newalias] `string` | [`CanvasBaseInterface`](/pixi-vn/index/interfaces/CanvasBaseInterface)\<`T`> New alias ##### options? [#options-3] The options of the copy. ###### ignoreProperties? [#ignoreproperties] (`defaultProperties`) => `string`\[] If provided, the properties returned by this function will not be copied from the old canvas element to the new canvas element. #### Returns [#returns-10] `Promise`\<`void`> *** ### editAlias() [#editalias] \> **editAlias**(`oldAlias`, `newAlias`, `options?`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:205](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L205) Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred. #### Parameters [#parameters-10] ##### oldAlias [#oldalias-1] `string` The old alias of the component to edit. ##### newAlias [#newalias-1] `string` The new alias of the component. ##### options? [#options-4] The options of the canvas element. ###### ignoreTickers? [#ignoretickers] `boolean` If true, the tickers that are connected to the canvas element will not be transferred. **Default** ```ts false ``` #### Returns [#returns-11] `void` *** ### export() [#export] \> **export**(): [`CanvasGameState`](/pixi-vn/index/interfaces/CanvasGameState) Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:549](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L549) Export the canvas and the tickers to an object. #### Returns [#returns-12] [`CanvasGameState`](/pixi-vn/index/interfaces/CanvasGameState) The object. *** ### extractImage() [#extractimage] \> **extractImage**(): `Promise`\<`string`> Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:536](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L536) Extract the canvas as an image. #### Returns [#returns-13] `Promise`\<`string`> The image as a base64 string. *** ### find() [#find] \> **find**\<`T`>(`alias`): `T` | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:188](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L188) Get a canvas element by the alias. #### Type Parameters [#type-parameters-5] ##### T [#t-4] `T` *extends* [`CanvasBaseInterface`](/pixi-vn/index/interfaces/CanvasBaseInterface)\<`any`> #### Parameters [#parameters-11] ##### alias [#alias-3] `string` The alias to identify the component. #### Returns [#returns-14] `T` | `undefined` The canvas element. If the component does not exist, it will return `undefined`. #### Example [#example-5] ```ts const sprite = canvas.find("bunny"); ``` *** ### ~~findTicker()~~ [#findticker] \> **findTicker**\<`TArgs`>(`tickerId`, `args?`): [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:236](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L236) Find a ticker by its id. #### Type Parameters [#type-parameters-6] ##### TArgs [#targs-1] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) #### Parameters [#parameters-12] ##### tickerId [#tickerid] `string` The id of the ticker to be found. ##### args? [#args] `TArgs` The args of the ticker. #### Returns [#returns-15] [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> | `undefined` The ticker if found, undefined otherwise. #### Deprecated [#deprecated-9] Use `tickers.find` from `@drincs/pixi-vn` instead. *** ### ~~forceCompletionOfTicker()~~ [#forcecompletionofticker] \> **forceCompletionOfTicker**(`id`, `alias?`): `Promise`\<`void`> Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:407](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L407) This method force the completion of the tickers that are running. This funcions is called in the next step. #### Parameters [#parameters-13] ##### id [#id-2] `string` The id of the ticker. If the alias provided, the id is the id of the sequence of tickers. ##### alias? [#alias-4] `string` The alias of the sequence of tickers. #### Returns [#returns-16] `Promise`\<`void`> #### Deprecated [#deprecated-10] Use `tickers.forceCompletion` from `@drincs/pixi-vn` instead. *** ### ~~getHtmlLayer()~~ [#gethtmllayer] \> **getHtmlLayer**(`id`): `HTMLElement` | `undefined` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:520](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L520) Get a HTML layer from the canvas. #### Parameters [#parameters-14] ##### id [#id-3] `string` The id of the layer. #### Returns [#returns-17] `HTMLElement` | `undefined` #### Deprecated [#deprecated-11] Use [htmlLayers](#htmllayers).get instead. *** ### ~~getLayer()~~ [#getlayer] \> **getLayer**(`label`): [`Layer`](/pixi-vn/index/type-aliases/Layer) | `null` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:471](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L471) Get a layer from the canvas. #### Parameters [#parameters-15] ##### label [#label-1] `string` The label of the layer. #### Returns [#returns-18] [`Layer`](/pixi-vn/index/type-aliases/Layer) | `null` The layer. #### Example [#example-6] ```ts const uiLayer = canvas.getLayer("ui"); ``` #### Deprecated [#deprecated-12] Use [layers](#layers).get instead. *** ### init() [#init] \> **init**(`element`, `options`, `devtoolsOptions?`): `Promise`\<`void`> Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:80](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L80) Initialize the PixiJS Application and the interface div. This method should be called before any other method. #### Parameters [#parameters-16] ##### element [#element-1] `HTMLElement` The html element where I will put the canvas. Example: document.body ##### options [#options-5] `Partial`\<[`ApplicationOptions`](/pixi-vn/index/interfaces/ApplicationOptions)> & `object` The options of PixiJS Application ##### devtoolsOptions? [#devtoolsoptions] `Devtools` The options of the devtools. You can read more about it in the [PixiJS Devtools documentation](https://pixijs.io/devtools/docs/plugin/) #### Returns [#returns-19] `Promise`\<`void`> #### Example [#example-7] ```ts const body = document.body if (!body) { throw new Error('body element not found') } await canvas.init(body, { width: 1920, height: 1080, backgroundColor: "#303030" }) ``` *** ### ~~isTickerPaused()~~ [#istickerpaused] \> **isTickerPaused**(`alias`, `tickerId?`): `boolean` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:354](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L354) #### Parameters [#parameters-17] ##### alias [#alias-5] `string` The alias of the canvas element that will use the ticker. ##### tickerId? [#tickerid-1] `string` The ticker that will be checked. #### Returns [#returns-20] `boolean` If the ticker is paused. #### Deprecated [#deprecated-13] Use `tickers.isPaused` from `@drincs/pixi-vn` instead. Check if a ticker is paused. *** ### ~~onTickerComplete()~~ [#ontickercomplete] \> **onTickerComplete**(`tickerId`, `options`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:558](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L558) #### Parameters [#parameters-18] ##### tickerId [#tickerid-2] `string` ##### options [#options-6] ###### aliasToRemoveAfter [#aliastoremoveafter] `string`\[] ###### ignoreTickerSteps? [#ignoretickersteps] `boolean` ###### stopTicker? [#stopticker] `boolean` ###### tickerAliasToResume [#tickeraliastoresume] `string`\[] ###### tickerIdToResume [#tickeridtoresume] `string`\[] #### Returns [#returns-21] `void` #### Deprecated [#deprecated-14] Use `tickers.onComplete` from `@drincs/pixi-vn` instead. *** ### pause() [#pause] \> **pause**(): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:375](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L375) Pause the rendering of gameLayer, pause currently running tickers and suspend the `AnimatedSprite`s and videos inside gameLayer (including nested containers). Other layers and the shared PixiJS ticker are not affected. The suspension is temporary and kept apart from the playback requested by the game (like `sound.unsaved.pauseAll()`): for the pixi-vn `AnimatedSprite` and `VideoSprite`, `playing`/`paused` and the saved state keep the requested playback, and `play()`, `stop()`, `gotoAndStop()`, `pause()`, `paused = ...` called while paused take effect on [resume](#resume) (an explicit stop stays stopped). Elements added to gameLayer while paused are not suspended. Sprites sharing the same video element share its playback and its saved `paused` state, including in other layers. Plain PixiJS `AnimatedSprite`s and video sprites can't keep a requested state apart: they are stopped/paused, and [resume](#resume) restarts the ones that were playing. #### Returns [#returns-22] `void` *** ### ~~pauseTicker()~~ [#pauseticker] \> **pauseTicker**(`filters`): `string`\[] Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:306](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L306) Pause a ticker. If a paused ticker have a time to be removed, it will be removed after the time. #### Parameters [#parameters-19] ##### filters [#filters] \{ `canvasAlias`: `string`; `tickerIdsExcluded?`: `string`\[]; } | \{ `id`: `string` | `string`\[]; } The filters to pause the ticker. ###### Type Literal [#type-literal] \{ `canvasAlias`: `string`; `tickerIdsExcluded?`: `string`\[]; } The filters to pause the ticker. ###### canvasAlias [#canvasalias] `string` The alias of the canvas element that will use the ticker. Will pause all tickers that are connected to this canvas element. ###### tickerIdsExcluded? [#tickeridsexcluded] `string`\[] Ticker ids excluded from the pause. If not provided, all tickers will be paused. *** ###### Type Literal [#type-literal-1] \{ `id`: `string` | `string`\[]; } The filters to pause the ticker. ###### id [#id-4] `string` | `string`\[] The id of the ticker to be paused. If provided, only this ticker will be paused. #### Returns [#returns-23] `string`\[] The ids of the paused tickers. #### Deprecated [#deprecated-15] Use `tickers.pause` from `@drincs/pixi-vn` instead. *** ### remove() [#remove] \> **remove**(`alias`, `options?`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:169](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L169) Remove a canvas element from the canvas. And remove all tickers that are not connected to any canvas element. #### Parameters [#parameters-20] ##### alias [#alias-6] `string` | `string`\[] The alias of the canvas element to be removed. ##### options? [#options-7] The options of the canvas element. ###### ignoreTickers? [#ignoretickers-1] `boolean` If true, the tickers that are connected to the canvas element will not be removed. **Default** ```ts false ``` #### Returns [#returns-24] `void` #### Example [#example-8] ```ts canvas.remove("bunny"); ``` *** ### removeAll() [#removeall] \> **removeAll**(): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:198](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L198) Remove all canvas elements from the canvas. #### Returns [#returns-25] `void` *** ### ~~removeAllTickers()~~ [#removealltickers] \> **removeAllTickers**(): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:293](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L293) Remove all tickers from the canvas. #### Returns [#returns-26] `void` #### Deprecated [#deprecated-16] Use `tickers.removeAll` from `@drincs/pixi-vn` instead. *** ### ~~removeHtmlLayer()~~ [#removehtmllayer] \> **removeHtmlLayer**(`id`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:514](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L514) Get a HTML layer from the canvas. #### Parameters [#parameters-21] ##### id [#id-5] `string` The id of the layer to be removed. #### Returns [#returns-27] `void` #### Deprecated [#deprecated-17] Use [htmlLayers](#htmllayers).remove instead. *** ### ~~removeLayer()~~ [#removelayer] \> **removeLayer**(`label`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:481](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L481) Remove a layer from the canvas. #### Parameters [#parameters-22] ##### label [#label-2] `string` The label of the layer to be removed. #### Returns [#returns-28] `void` #### Example [#example-9] ```ts canvas.removeLayer("ui"); ``` #### Deprecated [#deprecated-18] Use [layers](#layers).remove instead. *** ### ~~removeTicker()~~ [#removeticker] \> **removeTicker**(`tickerId`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:299](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L299) Remove a ticker by the id. #### Parameters [#parameters-23] ##### tickerId [#tickerid-3] `string` | `string`\[] The id or an array of ids of the ticker to be removed. #### Returns [#returns-29] `void` #### Deprecated [#deprecated-19] Use `tickers.remove` from `@drincs/pixi-vn` instead. *** ### restore() [#restore] \> **restore**(`data`): `Promise`\<`void`> Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:554](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L554) Restore the canvas and the tickers from an object. #### Parameters [#parameters-24] ##### data [#data] `object` The object. #### Returns [#returns-30] `Promise`\<`void`> *** ### resume() [#resume] \> **resume**(): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:383](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L383) Resume the rendering of gameLayer, resume tickers that were paused by [pause](#pause) and end the suspension of animations and videos, applying their requested playback state: animations and videos stopped before or during the pause stay stopped. Elements removed from gameLayer (or destroyed) while paused are not restarted: such an `AnimatedSprite` is stopped. A video is played again only if a sprite that showed it is still in gameLayer, not destroyed and still showing it. #### Returns [#returns-31] `void` *** ### ~~resumeTicker()~~ [#resumeticker] \> **resumeTicker**(`filters`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:331](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L331) Resume a ticker. #### Parameters [#parameters-25] ##### filters [#filters-1] \{ `canvasAlias`: `string`; } | \{ `id`: `string` | `string`\[]; } The filters to resume the ticker. ###### Type Literal [#type-literal-2] \{ `canvasAlias`: `string`; } The filters to resume the ticker. ###### canvasAlias [#canvasalias-1] `string` The alias of the canvas element that will use the ticker. Will resume all tickers that are connected to this canvas element. *** ###### Type Literal [#type-literal-3] \{ `id`: `string` | `string`\[]; } The filters to resume the ticker. ###### id [#id-6] `string` | `string`\[] The id of the ticker to be resumed. If provided, only this ticker will be resumed. #### Returns [#returns-32] `void` #### Deprecated [#deprecated-20] Use `tickers.resume` from `@drincs/pixi-vn` instead. *** ### ~~transferTickers()~~ [#transfertickers] \> **transferTickers**(`oldAlias`, `newAlias`, `mode?`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:127](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L127) Transfer the tickers from an old alias to a new alias. #### Parameters [#parameters-26] ##### oldAlias [#oldalias-2] `string` Old alias ##### newAlias [#newalias-2] `string` New alias ##### mode? [#mode] `"move"` | `"duplicate"` If "move", the old alias will be removed from the ticker. If "duplicate", the old alias will be kept in the ticker. #### Returns [#returns-33] `void` #### Deprecated [#deprecated-21] Use `tickers.transfer` from `@drincs/pixi-vn` instead. *** ### ~~unlinkComponentFromTicker()~~ [#unlinkcomponentfromticker] \> **unlinkComponentFromTicker**(`alias`, `ticker?`): `void` Defined in: [src/canvas/interfaces/CanvasManagerInterface.ts:285](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/CanvasManagerInterface.ts#L285) Remove a connection between a canvas element and a ticker. And remove the ticker if there is no canvas element connected to it. #### Parameters [#parameters-27] ##### alias [#alias-7] `string` | `string`\[] The alias of the canvas element that will use the ticker. ##### ticker? [#ticker-1] `string` | (new () => [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`>) The ticker class to be removed. #### Returns [#returns-34] `void` #### Example [#example-10] ```ts canvas.unlinkComponentFromTicker("alien", RotateTicker) ``` #### Deprecated [#deprecated-22] Use `tickers.unlinkComponent` from `@drincs/pixi-vn` instead. # Interface: CanvasTickersInterface (deprecated) (/pixi-vn/index/interfaces/CanvasTickersInterface) Defined in: [src/tickers/interfaces/TickersInterface.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L6) ## Deprecated [#deprecated] Use `TickersInterface` from `@drincs/pixi-vn` instead. ## Properties [#properties] ### ~~currentTickers~~ [#currenttickers] \> `readonly` **currentTickers**: `Map`\<`string`, [`TickerInfo`](/pixi-vn/index/interfaces/TickerInfo)\<`any`>> Defined in: [src/tickers/interfaces/TickersInterface.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L17) Currently tickers that are running. *** ### ~~currentTickersSteps~~ [#currenttickerssteps] \> `readonly` **currentTickersSteps**: `Map`\<`string`, `Map`\<`string`, [`TickersSequence`](/pixi-vn/index/interfaces/TickersSequence)>> Defined in: [src/tickers/interfaces/TickersInterface.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L21) The steps of the tickers ## Methods [#methods] ### ~~add()~~ [#add] \> **add**\<`TArgs`>(`canvasElementAlias`, `ticker`): `string` | `undefined` Defined in: [src/tickers/interfaces/TickersInterface.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L41) Run a ticker. You can run multiple add with the same alias and different tickerClasses. If you run a ticker with the same alias and tickerClass, the old ticker will be removed. If already exists a sequence of tickers with the same alias, it will be removed. #### Type Parameters [#type-parameters] ##### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) #### Parameters [#parameters] ##### canvasElementAlias [#canvaselementalias] `string` | `string`\[] The alias of the canvas element that will use the ticker. ##### ticker [#ticker] [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> The ticker class to be run. #### Returns [#returns] `string` | `undefined` The id of the ticker that was added. #### Example [#example] ```ts tickers.add("alien", new RotateTicker({ speed: 0.2 })) ``` *** ### ~~addSequence()~~ [#addsequence] \> **addSequence**(`alias`, `steps`, `currentStepNumber?`): `string` | `undefined` Defined in: [src/tickers/interfaces/TickersInterface.ts:60](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L60) Run a sequence of tickers. #### Parameters [#parameters-1] ##### alias [#alias] `string` The alias of canvas element that will use the tickers. ##### steps [#steps] [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`>\[] The steps of the tickers. ##### currentStepNumber? [#currentstepnumber] `number` The current step number. It is used to continue the sequence of tickers. #### Returns [#returns-1] `string` | `undefined` The id of tickers. #### Example [#example-1] ```ts tickers.addSequence("alien", [ new RotateTicker({ speed: 0.1, clockwise: true }, 2), // runs for 2 seconds new RotateTicker({ speed: 0.2, clockwise: false }, 2), ]) ``` #### Deprecated [#deprecated-1] *** ### ~~completeOnStepEnd()~~ [#completeonstepend] \> **completeOnStepEnd**(`step`): `void` Defined in: [src/tickers/interfaces/TickersInterface.ts:142](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L142) Add a ticker that must be completed before the next step. This method is used for example into a transition between scenes. #### Parameters [#parameters-2] ##### step [#step] The step that the ticker must be completed before the next step. ###### alias? [#alias-1] `string` If is a sequence of tickers, the alias of the sequence of tickers. ###### id [#id] `string` The id of the step. #### Returns [#returns-2] `void` *** ### ~~find()~~ [#find] \> **find**\<`TArgs`>(`tickerId`, `args?`): [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> | `undefined` Defined in: [src/tickers/interfaces/TickersInterface.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L28) Find a ticker by its id. #### Type Parameters [#type-parameters-1] ##### TArgs [#targs-1] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) #### Parameters [#parameters-3] ##### tickerId [#tickerid] `string` The id of the ticker to be found. ##### args? [#args] `TArgs` The args of the ticker. #### Returns [#returns-3] [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> | `undefined` The ticker if found, undefined otherwise. *** ### ~~forceCompletion()~~ [#forcecompletion] \> **forceCompletion**(`id`, `alias?`): `Promise`\<`void`> Defined in: [src/tickers/interfaces/TickersInterface.ts:158](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L158) This method force the completion of the tickers that are running. This funcions is called in the next step. #### Parameters [#parameters-4] ##### id [#id-1] `string` The id of the ticker. If the alias provided, the id is the id of the sequence of tickers. ##### alias? [#alias-2] `string` The alias of the sequence of tickers. #### Returns [#returns-4] `Promise`\<`void`> *** ### ~~isPaused()~~ [#ispaused] \> **isPaused**(`alias`, `tickerId?`): `boolean` Defined in: [src/tickers/interfaces/TickersInterface.ts:136](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L136) Check if a ticker is paused. #### Parameters [#parameters-5] ##### alias [#alias-3] `string` The alias of the canvas element that will use the ticker. ##### tickerId? [#tickerid-1] `string` The ticker that will be checked. #### Returns [#returns-5] `boolean` If the ticker is paused. *** ### ~~onComplete()~~ [#oncomplete] \> **onComplete**(`tickerId`, `options`): `void` Defined in: [src/tickers/interfaces/TickersInterface.ts:159](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L159) #### Parameters [#parameters-6] ##### tickerId [#tickerid-2] `string` ##### options [#options] ###### aliasToRemoveAfter [#aliastoremoveafter] `string`\[] ###### ignoreTickerSteps? [#ignoretickersteps] `boolean` ###### stopTicker? [#stopticker] `boolean` ###### tickerAliasToResume [#tickeraliastoresume] `string`\[] ###### tickerIdToResume [#tickeridtoresume] `string`\[] #### Returns [#returns-6] `void` *** ### ~~pause()~~ [#pause] \> **pause**(`filters`): `string`\[] Defined in: [src/tickers/interfaces/TickersInterface.ts:90](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L90) Pause a ticker. If a paused ticker have a time to be removed, it will be removed after the time. #### Parameters [#parameters-7] ##### filters [#filters] \{ `canvasAlias`: `string`; `tickerIdsExcluded?`: `string`\[]; } | \{ `id`: `string` | `string`\[]; } The filters to pause the ticker. ###### Type Literal [#type-literal] \{ `canvasAlias`: `string`; `tickerIdsExcluded?`: `string`\[]; } The filters to pause the ticker. ###### canvasAlias [#canvasalias] `string` The alias of the canvas element that will use the ticker. Will pause all tickers that are connected to this canvas element. ###### tickerIdsExcluded? [#tickeridsexcluded] `string`\[] Ticker ids excluded from the pause. If not provided, all tickers will be paused. *** ###### Type Literal [#type-literal-1] \{ `id`: `string` | `string`\[]; } The filters to pause the ticker. ###### id [#id-2] `string` | `string`\[] The id of the ticker to be paused. If provided, only this ticker will be paused. #### Returns [#returns-7] `string`\[] The ids of the paused tickers. *** ### ~~remove()~~ [#remove] \> **remove**(`tickerId`): `void` Defined in: [src/tickers/interfaces/TickersInterface.ts:84](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L84) Remove a ticker by the id. #### Parameters [#parameters-8] ##### tickerId [#tickerid-3] `string` | `string`\[] The id or an array of ids of the ticker to be removed. #### Returns [#returns-8] `void` *** ### ~~removeAll()~~ [#removeall] \> **removeAll**(): `void` Defined in: [src/tickers/interfaces/TickersInterface.ts:79](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L79) Remove all tickers from the canvas. #### Returns [#returns-9] `void` *** ### ~~resume()~~ [#resume] \> **resume**(`filters`): `void` Defined in: [src/tickers/interfaces/TickersInterface.ts:114](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L114) Resume a ticker. #### Parameters [#parameters-9] ##### filters [#filters-1] \{ `canvasAlias`: `string`; } | \{ `id`: `string` | `string`\[]; } The filters to resume the ticker. ###### Type Literal [#type-literal-2] \{ `canvasAlias`: `string`; } The filters to resume the ticker. ###### canvasAlias [#canvasalias-1] `string` The alias of the canvas element that will use the ticker. Will resume all tickers that are connected to this canvas element. *** ###### Type Literal [#type-literal-3] \{ `id`: `string` | `string`\[]; } The filters to resume the ticker. ###### id [#id-3] `string` | `string`\[] The id of the ticker to be resumed. If provided, only this ticker will be resumed. #### Returns [#returns-10] `void` *** ### ~~transfer()~~ [#transfer] \> **transfer**(`oldAlias`, `newAlias`, `mode?`): `void` Defined in: [src/tickers/interfaces/TickersInterface.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L13) Transfer the tickers from an old alias to a new alias. #### Parameters [#parameters-10] ##### oldAlias [#oldalias] `string` Old alias ##### newAlias [#newalias] `string` New alias ##### mode? [#mode] `"move"` | `"duplicate"` If "move", the old alias will be removed from the ticker. If "duplicate", the old alias will be kept in the ticker. #### Returns [#returns-11] `void` *** ### ~~unlinkComponent()~~ [#unlinkcomponent] \> **unlinkComponent**(`alias`, `ticker?`): `void` Defined in: [src/tickers/interfaces/TickersInterface.ts:75](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersInterface.ts#L75) Remove a connection between a canvas element and a ticker. And remove the ticker if there is no canvas element connected to it. #### Parameters [#parameters-11] ##### alias [#alias-4] `string` | `string`\[] The alias of the canvas element that will use the ticker. ##### ticker? [#ticker-1] `string` | (new () => [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`>) The ticker class to be removed. #### Returns [#returns-12] `void` #### Example [#example-2] ```ts tickers.unlinkComponent("alien", RotateTicker) ``` # Interface: ChannelOptions (/pixi-vn/index/interfaces/ChannelOptions) Defined in: [src/sound/interfaces/SoundOptions.ts:67](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L67) ## Extends [#extends] * `Pick`\<[`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions), `"filters"` | `"muted"` | `"volume"`> ## Properties [#properties] ### background? [#background] \> `optional` **background?**: `boolean` Defined in: [src/sound/interfaces/SoundOptions.ts:73](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L73) Whether this channel is a background channel. Background channels are special: media playing on them is not stopped when a scene changes, but continues in the background. *** ### filters? [#filters] \> `optional` **filters?**: `ToneAudioNode`\<`ToneWithContextOptions`>\[] Defined in: [src/sound/interfaces/SoundOptions.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L34) A collection of audio filters/effects to apply to this sound. Install "tone" for the full list of available filters. #### Example [#example] ```ts import * as Tone from "tone"; const filters = [new Tone.FeedbackDelay("8n", 0.5)]; ``` #### Inherited from [#inherited-from] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`filters`](/pixi-vn/index/interfaces/SoundOptions#filters) *** ### ~~muted?~~ [#muted] \> `optional` **muted?**: `boolean` Defined in: [src/sound/interfaces/SoundOptions.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L42) #### Deprecated [#deprecated] Use [mute](/pixi-vn/index/interfaces/SoundOptions#mute) instead. #### Inherited from [#inherited-from-1] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`muted`](/pixi-vn/index/interfaces/SoundOptions#muted) *** ### pan? [#pan] \> `optional` **pan?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:79](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L79) The stereo pan position for this channel in the range \[-1, 1]. -1 is full left, 0 is centre, 1 is full right. Defaults to 0. *** ### volume? [#volume] \> `optional` **volume?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L21) The volume of this sound in the linear range \[0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player. #### Inherited from [#inherited-from-2] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`volume`](/pixi-vn/index/interfaces/SoundOptions#volume) # Interface: CharacterEmotionId (/pixi-vn/index/interfaces/CharacterEmotionId) Defined in: [src/characters/types/CharacterEmotionId.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/types/CharacterEmotionId.ts#L6) CharacterEmotionId is used to identify a character together with an emotion. ## Properties [#properties] ### emotion [#emotion] \> **emotion**: `string` Defined in: [src/characters/types/CharacterEmotionId.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/types/CharacterEmotionId.ts#L8) *** ### id [#id] \> **id**: `string` Defined in: [src/characters/types/CharacterEmotionId.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/types/CharacterEmotionId.ts#L7) # Interface: CharacterInterface (/pixi-vn/index/interfaces/CharacterInterface) Defined in: [src/characters/interfaces/CharacterInterface.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/interfaces/CharacterInterface.ts#L56) CharacterInterface is the interface that character must implement or extend. So if you want to create your own Character, you must override this interface, implement or extend it and extend the [CharacterStoredClass](/pixi-vn/index/classes/CharacterStoredClass) class. You can override this interface to add your own props. ## Example [#example] ```ts // pixi-vn.d.ts declare module '@drincs/pixi-vn' { interface CharacterInterface { name: string surname?: string age?: number icon?: string color?: string } } // You Character class export class Character extends CharacterStoredClass implements CharacterInterface { constructor(id: string, props: CharacterProps) { super(id) this.defaultName = props.name this.defaultSurname = props.surname this.defaultAge = props.age this.icon = props.icon this.color = props.color } readonly defaultName: string = "" get name(): string { return this.getStorageProperty("name") || this.defaultName } set name(value: string | undefined) { this.setStorageProperty("name", value) } readonly defaultSurname?: string get surname(): string | undefined { return this.getStorageProperty("surname") || this.defaultSurname } set surname(value: string | undefined) { this.setStorageProperty("surname", value) } readonly defaultAge?: number | undefined get age(): number | undefined { return this.getStorageProperty("age") || this.defaultAge } set age(value: number | undefined) { this.setStorageProperty("age", value) } readonly icon?: string get icon(): string | undefined { return this._icon } readonly color?: string | undefined } ``` ## Properties [#properties] ### id [#id] \> **id**: `string` Defined in: [src/characters/interfaces/CharacterInterface.ts:60](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/interfaces/CharacterInterface.ts#L60) The id of the character. It must be unique. # Interface: ChoiceInterface (/pixi-vn/index/interfaces/ChoiceInterface) Defined in: [src/narration/interfaces/ChoiceInterface.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L6) ## Properties [#properties] ### autoSelect? [#autoselect] \> `optional` **autoSelect?**: `boolean` Defined in: [src/narration/interfaces/ChoiceInterface.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L30) If this is true and if is the only choice, it will be automatically selected, and call/jump to the label. *** ### closeCurrentLabel? [#closecurrentlabel] \> `optional` **closeCurrentLabel?**: `boolean` Defined in: [src/narration/interfaces/ChoiceInterface.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L34) If true, the current label will be closed *** ### label [#label] \> **label**: `string` Defined in: [src/narration/interfaces/ChoiceInterface.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L14) Label Id to be opened when the option is selected *** ### oneTime? [#onetime] \> `optional` **oneTime?**: `boolean` Defined in: [src/narration/interfaces/ChoiceInterface.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L22) If this is true, the choice can only be made once. *** ### onlyHaveNoChoice? [#onlyhavenochoice] \> `optional` **onlyHaveNoChoice?**: `boolean` Defined in: [src/narration/interfaces/ChoiceInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L26) If this is true, the choice can see only if there are no other choices. For example, all choices are one-time choices and they are already selected. *** ### props? [#props] \> `optional` **props?**: [`StorageObjectType`](/pixi-vn/index/type-aliases/StorageObjectType) Defined in: [src/narration/interfaces/ChoiceInterface.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L38) Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. *** ### text [#text] \> **text**: `string` | `string`\[] Defined in: [src/narration/interfaces/ChoiceInterface.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L10) Text to be displayed in the menu *** ### type [#type] \> **type**: `"close"` | [`LabelRunModeType`](/pixi-vn/index/type-aliases/LabelRunModeType) Defined in: [src/narration/interfaces/ChoiceInterface.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/ChoiceInterface.ts#L18) Type of the label to be opened # Interface: ChoiceOptionInterface (/pixi-vn/index/interfaces/ChoiceOptionInterface) Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L6) ## Extends [#extends] * `Omit`\<`ChoiceInterface`, `"label"` | `"type"` | `"closeCurrentLabel"`> ## Properties [#properties] ### autoSelect? [#autoselect] \> `optional` **autoSelect?**: `boolean` Defined in: [src/pixi-vn.d.ts:66](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L66) If `true` and it is the only choice, it will be selected automatically. #### Inherited from [#inherited-from] `Omit.autoSelect` *** ### label [#label] \> **label**: `string` Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L11) Label Id to be opened when the option is selected *** ### oneTime? [#onetime] \> `optional` **oneTime?**: `boolean` Defined in: [src/pixi-vn.d.ts:57](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L57) If `true`, the choice can only be made once. #### Inherited from [#inherited-from-1] `Omit.oneTime` *** ### onlyHaveNoChoice? [#onlyhavenochoice] \> `optional` **onlyHaveNoChoice?**: `boolean` Defined in: [src/pixi-vn.d.ts:62](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L62) If `true`, the choice is shown only if there are no other choices. For example, all choices are one-time choices and they are already selected. #### Inherited from [#inherited-from-2] `Omit.onlyHaveNoChoice` *** ### props? [#props] \> `optional` **props?**: `any` Defined in: [src/pixi-vn.d.ts:74](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L74) Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. #### Inherited from [#inherited-from-3] `Omit.props` *** ### text [#text] \> **text**: `string` | `string`\[] Defined in: [src/pixi-vn.d.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L45) Text to be displayed in the menu #### Inherited from [#inherited-from-4] `Omit.text` *** ### type [#type] \> **type**: [`LabelRunModeType`](/pixi-vn/index/type-aliases/LabelRunModeType) Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L15) Type of the label to be opened # Interface: ChromaticAberrationEffectProps (/pixi-vn/index/interfaces/ChromaticAberrationEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:192](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L192) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### axis? [#axis] \> `optional` **axis?**: `"horizontal"` | `"vertical"` Defined in: [src/canvas/interfaces/effect-props.ts:203](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L203) The axis the channels split along. #### Default [#default-1] ```ts "horizontal" ``` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### bursts? [#bursts] \> `optional` **bursts?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:208](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L208) The number of bursts. #### Default [#default-2] ```ts 1 ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-3] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-4] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-5] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:198](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L198) The peak red/blue channel pixel offset of the first, largest burst (channels split in opposite directions, green stays centered). #### Default [#default-8] ```ts 8 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: CloseChoiceOptionInterface (/pixi-vn/index/interfaces/CloseChoiceOptionInterface) Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L18) ## Extends [#extends] * `Omit`\<`ChoiceInterface`, `"label"` | `"type"` | `"closeCurrentLabel"`> ## Properties [#properties] ### autoSelect? [#autoselect] \> `optional` **autoSelect?**: `boolean` Defined in: [src/pixi-vn.d.ts:66](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L66) If `true` and it is the only choice, it will be selected automatically. #### Inherited from [#inherited-from] `Omit.autoSelect` *** ### closeCurrentLabel? [#closecurrentlabel] \> `optional` **closeCurrentLabel?**: `boolean` Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L27) If true, the current label will be closed *** ### oneTime? [#onetime] \> `optional` **oneTime?**: `boolean` Defined in: [src/pixi-vn.d.ts:57](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L57) If `true`, the choice can only be made once. #### Inherited from [#inherited-from-1] `Omit.oneTime` *** ### onlyHaveNoChoice? [#onlyhavenochoice] \> `optional` **onlyHaveNoChoice?**: `boolean` Defined in: [src/pixi-vn.d.ts:62](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L62) If `true`, the choice is shown only if there are no other choices. For example, all choices are one-time choices and they are already selected. #### Inherited from [#inherited-from-2] `Omit.onlyHaveNoChoice` *** ### props? [#props] \> `optional` **props?**: `any` Defined in: [src/pixi-vn.d.ts:74](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L74) Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. #### Inherited from [#inherited-from-3] `Omit.props` *** ### text [#text] \> **text**: `string` | `string`\[] Defined in: [src/pixi-vn.d.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/pixi-vn.d.ts#L45) Text to be displayed in the menu #### Inherited from [#inherited-from-4] `Omit.text` *** ### type [#type] \> **type**: `"close"` Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L23) Type of the label to be opened # Interface: ContainerMemory (/pixi-vn/index/interfaces/ContainerMemory) Defined in: [src/canvas/interfaces/memory/ContainerMemory.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ContainerMemory.ts#L10) Interface for the canvas container memory ## Extends [#extends] * `ContainerOptions`\<`C`> * [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) * [`ListenerExtensionMemory`](/pixi-vn/index/interfaces/ListenerExtensionMemory) * [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) ## Extended by [#extended-by] * [`ImageContainerMemory`](/pixi-vn/index/interfaces/ImageContainerMemory) ## Type Parameters [#type-parameters] ### C [#c] `C` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) = [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `ContainerOptions.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `ContainerOptions.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `ContainerOptions.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `ContainerOptions.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `ContainerOptions.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `ContainerOptions.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `ContainerOptions.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] `ContainerOptions.alpha` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-9] `ContainerOptions.angle` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-8] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-10] `ContainerOptions.blendMode` *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-11] `ContainerOptions.boundsArea` *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-12] `ContainerOptions.cacheAsTexture` *** ### children? [#children] \> `readonly` `optional` **children?**: `C`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-13] `ContainerOptions.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-9] ```ts false ``` #### Inherited from [#inherited-from-14] `ContainerOptions.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-10] ```ts true ``` #### Inherited from [#inherited-from-15] `ContainerOptions.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-11] ```ts null ``` #### Inherited from [#inherited-from-16] `ContainerOptions.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-12] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-17] `ContainerOptions.cursor` *** ### elements [#elements] \> **elements**: [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory)\[] Defined in: [src/canvas/interfaces/memory/ContainerMemory.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ContainerMemory.ts#L18) The elements contained in this container *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-18] `ContainerOptions.eventMode` *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-19] `ContainerOptions.filters` *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-13] ```ts 0 ``` #### Inherited from [#inherited-from-20] `ContainerOptions.height` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-21] `ContainerOptions.hitArea` *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-22] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`index`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-23] `ContainerOptions.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-14] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-24] `ContainerOptions.interactiveChildren` *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-25] `ContainerOptions.isRenderGroup` *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-26] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`label`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from `ContainerOptions.mask` *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] `ContainerOptions.onclick` *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] `ContainerOptions.oncontextmenu` *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-29] [`ListenerExtensionMemory`](/pixi-vn/index/interfaces/ListenerExtensionMemory).[`onEvents`](/pixi-vn/index/interfaces/ListenerExtensionMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] `ContainerOptions.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] `ContainerOptions.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-32] `ContainerOptions.onglobaltouchmove` *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-33] `ContainerOptions.onmousedown` *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-34] `ContainerOptions.onmouseenter` *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-35] `ContainerOptions.onmouseleave` *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-36] `ContainerOptions.onmousemove` *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-37] `ContainerOptions.onmouseout` *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-38] `ContainerOptions.onmouseover` *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-39] `ContainerOptions.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-40] `ContainerOptions.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-41] `ContainerOptions.onpointercancel` *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-42] `ContainerOptions.onpointerdown` *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-43] `ContainerOptions.onpointerenter` *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-44] `ContainerOptions.onpointerleave` *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-45] `ContainerOptions.onpointermove` *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-46] `ContainerOptions.onpointerout` *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-47] `ContainerOptions.onpointerover` *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-48] `ContainerOptions.onpointertap` *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-49] `ContainerOptions.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-50] `ContainerOptions.onpointerupoutside` *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-51] `ContainerOptions.onRender` *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-52] `ContainerOptions.onrightclick` *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-53] `ContainerOptions.onrightdown` *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-54] `ContainerOptions.onrightup` *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-55] `ContainerOptions.onrightupoutside` *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-56] `ContainerOptions.ontap` *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-57] `ContainerOptions.ontouchcancel` *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-58] `ContainerOptions.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-59] `ContainerOptions.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-60] `ContainerOptions.ontouchmove` *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-61] `ContainerOptions.ontouchstart` *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-62] `ContainerOptions.onwheel` *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-63] `ContainerOptions.origin` *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-64] `ContainerOptions.parent` *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-65] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`parentLabel`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#parentlabel) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-69] `ContainerOptions.pivot` *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-70] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-71] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`pixivnId`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#pixivnid) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-72] `ContainerOptions.position` *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-50] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-73] `ContainerOptions.renderable` *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-61] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-74] `ContainerOptions.rotation` *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-62] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-75] `ContainerOptions.scale` *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-76] `ContainerOptions.setMask` *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-63] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-51] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-77] `ContainerOptions.skew` *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-64] ```ts container.sortableChildren = true; ``` #### Default [#default-52] ```ts false ``` #### Inherited from [#inherited-from-78] `ContainerOptions.sortableChildren` *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-53] ```ts false @internal ``` #### Inherited from [#inherited-from-79] `ContainerOptions.sortDirty` *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-54] ```ts 0 ``` #### Example [#example-65] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-80] `ContainerOptions.tabIndex` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-66] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-55] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-81] `ContainerOptions.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-67] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-56] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-82] `ContainerOptions.visible` *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-68] ```ts new Container({ width: 100}); ``` #### Default [#default-57] ```ts 0 ``` #### Inherited from [#inherited-from-83] `ContainerOptions.width` *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-69] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-84] `ContainerOptions.x` *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-85] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-70] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-86] `ContainerOptions.y` *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-87] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-71] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-58] ```ts 0 ``` #### Inherited from [#inherited-from-88] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`zIndex`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#zindex) # Interface: ContainerOptions (/pixi-vn/index/interfaces/ContainerOptions) Defined in: [src/canvas/interfaces/canvas-options.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L11) ## Extends [#extends] * `Omit`\<`PixiContainerOptions`\<`C`>, `"on"`> * [`AnchorExtensionProps`](/pixi-vn/index/interfaces/AnchorExtensionProps) * [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) ## Extended by [#extended-by] * [`ImageContainerOptions`](/pixi-vn/index/interfaces/ImageContainerOptions) ## Type Parameters [#type-parameters] ### C [#c] `C` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) = [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `Omit.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `Omit.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `Omit.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `Omit.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `Omit.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `Omit.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `Omit.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: [src/canvas/components/AnchorExtension.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnchorExtension.ts#L4) #### Inherited from [#inherited-from-9] [`AnchorExtensionProps`](/pixi-vn/index/interfaces/AnchorExtensionProps).[`anchor`](/pixi-vn/index/interfaces/AnchorExtensionProps#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`angle`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#angle) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-8] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-11] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-12] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-13] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `C`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-14] `Omit.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-9] ```ts false ``` #### Inherited from [#inherited-from-15] `Omit.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-10] ```ts true ``` #### Inherited from [#inherited-from-16] `Omit.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-11] ```ts null ``` #### Inherited from [#inherited-from-17] `Omit.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-12] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-18] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`cursor`](/pixi-vn/index/classes/VideoSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-19] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`eventMode`](/pixi-vn/index/classes/VideoSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-20] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`filters`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-13] ```ts 0 ``` #### Inherited from [#inherited-from-21] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`height`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-22] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`hitArea`](/pixi-vn/index/classes/VideoSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-23] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactive`](/pixi-vn/index/classes/VideoSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-14] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-24] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactiveChildren`](/pixi-vn/index/classes/VideoSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-25] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-26] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`mask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onclick`](/pixi-vn/index/classes/VideoSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`oncontextmenu`](/pixi-vn/index/classes/VideoSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-29] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalmousemove`](/pixi-vn/index/classes/VideoSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalpointermove`](/pixi-vn/index/classes/VideoSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-31] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/VideoSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-32] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousedown`](/pixi-vn/index/classes/VideoSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseenter`](/pixi-vn/index/classes/VideoSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseleave`](/pixi-vn/index/classes/VideoSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousemove`](/pixi-vn/index/classes/VideoSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseout`](/pixi-vn/index/classes/VideoSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseover`](/pixi-vn/index/classes/VideoSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseup`](/pixi-vn/index/classes/VideoSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseupoutside`](/pixi-vn/index/classes/VideoSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointercancel`](/pixi-vn/index/classes/VideoSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerdown`](/pixi-vn/index/classes/VideoSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerenter`](/pixi-vn/index/classes/VideoSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerleave`](/pixi-vn/index/classes/VideoSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointermove`](/pixi-vn/index/classes/VideoSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerout`](/pixi-vn/index/classes/VideoSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerover`](/pixi-vn/index/classes/VideoSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointertap`](/pixi-vn/index/classes/VideoSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerup`](/pixi-vn/index/classes/VideoSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerupoutside`](/pixi-vn/index/classes/VideoSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-50] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-51] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightclick`](/pixi-vn/index/classes/VideoSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightdown`](/pixi-vn/index/classes/VideoSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightup`](/pixi-vn/index/classes/VideoSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightupoutside`](/pixi-vn/index/classes/VideoSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontap`](/pixi-vn/index/classes/VideoSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchcancel`](/pixi-vn/index/classes/VideoSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchend`](/pixi-vn/index/classes/VideoSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchendoutside`](/pixi-vn/index/classes/VideoSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchmove`](/pixi-vn/index/classes/VideoSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchstart`](/pixi-vn/index/classes/VideoSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onwheel`](/pixi-vn/index/classes/VideoSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-62] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-63] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-64] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-67] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-68] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`position`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-50] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-69] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-61] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-70] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#rotation) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-62] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-71] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`scale`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-72] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-63] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-51] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-73] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`skew`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-64] ```ts container.sortableChildren = true; ``` #### Default [#default-52] ```ts false ``` #### Inherited from [#inherited-from-74] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-53] ```ts false @internal ``` #### Inherited from [#inherited-from-75] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-54] ```ts 0 ``` #### Example [#example-65] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-76] `Omit.tabIndex` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-66] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-55] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-77] `Omit.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-67] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-56] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-78] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`visible`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-68] ```ts new Container({ width: 100}); ``` #### Default [#default-57] ```ts 0 ``` #### Inherited from [#inherited-from-79] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`width`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-69] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-80] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`x`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-81] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-70] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-82] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`y`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-83] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-71] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-58] ```ts 0 ``` #### Inherited from [#inherited-from-84] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) # Interface: DecayingEffectProps (/pixi-vn/index/interfaces/DecayingEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L29) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](#decay). ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Extended by [#extended-by] * [`BlurPulseEffectProps`](/pixi-vn/index/interfaces/BlurPulseEffectProps) * [`BounceEffectProps`](/pixi-vn/index/interfaces/BounceEffectProps) * [`ChromaticAberrationEffectProps`](/pixi-vn/index/interfaces/ChromaticAberrationEffectProps) * [`GlitchEffectProps`](/pixi-vn/index/interfaces/GlitchEffectProps) * [`GlowPulseEffectProps`](/pixi-vn/index/interfaces/GlowPulseEffectProps) * [`HopEffectProps`](/pixi-vn/index/interfaces/HopEffectProps) * [`NodEffectProps`](/pixi-vn/index/interfaces/NodEffectProps) * [`PulseEffectProps`](/pixi-vn/index/interfaces/PulseEffectProps) * [`RadialBlurEffectProps`](/pixi-vn/index/interfaces/RadialBlurEffectProps) * [`SwayEffectProps`](/pixi-vn/index/interfaces/SwayEffectProps) * [`VignettePulseEffectProps`](/pixi-vn/index/interfaces/VignettePulseEffectProps) * [`WiggleEffectProps`](/pixi-vn/index/interfaces/WiggleEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-3] ```ts 0.5 ``` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-5] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: DesaturateEffectProps (/pixi-vn/index/interfaces/DesaturateEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:323](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L323) ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### amount? [#amount] \> `optional` **amount?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:328](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L328) The saturation floor reached at the trough (`0` = full grayscale, `1` = no desaturation at all). #### Default [#default-1] ```ts 0 ``` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### holdDuration? [#holdduration] \> `optional` **holdDuration?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:334](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L334) How long the component stays at [amount](#amount) before recovering back to normal saturation, on top of the fade in/out (each [AnimationOptions.duration](/pixi-vn/index/interfaces/BlurPulseEffectProps#duration)). #### Default [#default-4] ```ts 0 ``` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: DialogueInterface (/pixi-vn/index/interfaces/DialogueInterface) Defined in: [src/narration/interfaces/DialogueInterface.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/DialogueInterface.ts#L3) ## Properties [#properties] ### character? [#character] \> `optional` **character?**: `string` | `CharacterInterface` Defined in: [src/narration/interfaces/DialogueInterface.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/DialogueInterface.ts#L11) The id of the character that is speaking. *** ### text [#text] \> **text**: `string` | `string`\[] Defined in: [src/narration/interfaces/DialogueInterface.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/DialogueInterface.ts#L7) The text of the dialogue. # Interface: EventSuppressorTarget (/pixi-vn/index/interfaces/EventSuppressorTarget) Defined in: [src/canvas/components/EventSuppressor.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/EventSuppressor.ts#L4) Anything that can emit an event with the given arguments, like a PixiJS container. ## Type Parameters [#type-parameters] ### Event [#event] `Event` *extends* `string` | `symbol` = `string` | `symbol` ### Args [#args] `Args` *extends* `unknown`\[] = `unknown`\[] ## Methods [#methods] ### emit() [#emit] \> **emit**(`event`, ...`args`): `boolean` Defined in: [src/canvas/components/EventSuppressor.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/EventSuppressor.ts#L8) #### Parameters [#parameters] ##### event [#event-1] `Event` ##### args [#args-1] ...`Args` #### Returns [#returns] `boolean` # Interface: ExportedSound (/pixi-vn/index/interfaces/ExportedSound) Defined in: [src/sound/interfaces/SoundGameState.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L6) ## Properties [#properties] ### filters? [#filters] \> `optional` **filters?**: `SoundFilterMemory`\[] Defined in: [src/sound/interfaces/SoundGameState.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L8) *** ### options [#options] \> **options**: [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions) Defined in: [src/sound/interfaces/SoundGameState.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L7) # Interface: ExportedSoundPlay (/pixi-vn/index/interfaces/ExportedSoundPlay) Defined in: [src/sound/interfaces/SoundGameState.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L17) ## Extends [#extends] * [`SoundPlay`](/pixi-vn/index/interfaces/SoundPlay) ## Properties [#properties] ### options? [#options] \> `optional` **options?**: `string` | [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions) Defined in: [src/sound/interfaces/SoundGameState.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L14) #### Inherited from [#inherited-from] [`SoundPlay`](/pixi-vn/index/interfaces/SoundPlay).[`options`](/pixi-vn/index/interfaces/SoundPlay#options) *** ### paused [#paused] \> **paused**: `boolean` Defined in: [src/sound/interfaces/SoundGameState.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L13) #### Inherited from [#inherited-from-1] [`SoundPlay`](/pixi-vn/index/interfaces/SoundPlay).[`paused`](/pixi-vn/index/interfaces/SoundPlay#paused) *** ### sound [#sound] \> **sound**: [`ExportedSound`](/pixi-vn/index/interfaces/ExportedSound) Defined in: [src/sound/interfaces/SoundGameState.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L18) *** ### stepIndex [#stepindex] \> **stepIndex**: `number` Defined in: [src/sound/interfaces/SoundGameState.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L12) #### Inherited from [#inherited-from-2] [`SoundPlay`](/pixi-vn/index/interfaces/SoundPlay).[`stepIndex`](/pixi-vn/index/interfaces/SoundPlay#stepindex) # Interface: FederatedEvent (/pixi-vn/index/interfaces/FederatedEvent) Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:105 A DOM-compatible synthetic event implementation for PixiJS's event system. This class implements the standard DOM Event interface while providing additional functionality specific to PixiJS events. \> \[!NOTE] You wont receive an instance of this class directly, but rather a subclass \> of this class, such as FederatedPointerEvent, FederatedMouseEvent, or \> FederatedWheelEvent. This class is the base for all federated events. ## Example [#example] ```ts // Basic event handling sprite.on('pointerdown', (event: FederatedEvent) => { // Access standard DOM event properties console.log('Target:', event.target); console.log('Phase:', event.eventPhase); console.log('Type:', event.type); // Control propagation event.stopPropagation(); }); ``` ## Remarks [#remarks] * Implements the standard DOM UIEvent interface * Provides event bubbling and capturing phases * Supports propagation control * Manages event paths through display tree * Normalizes native browser events ## See [#see] * [https://dom.spec.whatwg.org/#event](https://dom.spec.whatwg.org/#event) DOM Event Specification * FederatedPointerEvent For pointer-specific events * FederatedMouseEvent For mouse-specific events * FederatedWheelEvent For wheel-specific events ## Standard [#standard] ## Type Parameters [#type-parameters] ### N [#n] `N` *extends* `UIEvent` | `PixiTouch` = `UIEvent` | `PixiTouch` The type of native event held. Can be either a UIEvent or PixiTouch. ## Implements [#implements] * `UIEvent` ## Properties [#properties] ### AT_TARGET [#at_target] \> `readonly` **AT_TARGET**: `2` = `2` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:291 The event propagation phase AT_TARGET that indicates that the event is at the target. #### Default [#default] ```ts 2 ``` #### Advanced [#advanced] #### Implementation of [#implementation-of] `UIEvent.AT_TARGET` *** ### bubbles [#bubbles] \> **bubbles**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:107 Flags whether this event bubbles. This will take effect only if it is set before propagation. #### Implementation of [#implementation-of-1] `UIEvent.bubbles` *** ### BUBBLING_PHASE [#bubbling_phase] \> `readonly` **BUBBLING_PHASE**: `3` = `3` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:297 The event propagation phase BUBBLING_PHASE that indicates that the event is in the bubbling phase. #### Default [#default-1] ```ts 3 ``` #### Advanced [#advanced-1] #### Implementation of [#implementation-of-2] `UIEvent.BUBBLING_PHASE` *** ### cancelable [#cancelable] \> `readonly` **cancelable**: `false` = `false` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:114 Flags whether this event can be canceled using [FederatedEvent.preventDefault](#preventdefault). This is always false (for now). #### Implementation of [#implementation-of-3] `UIEvent.cancelable` *** ### ~~cancelBubble~~ [#cancelbubble] \> **cancelBubble**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:109 #### Deprecated [#deprecated] since 7.0.0 #### Implementation of [#implementation-of-4] `UIEvent.cancelBubble` *** ### CAPTURING_PHASE [#capturing_phase] \> `readonly` **CAPTURING_PHASE**: `1` = `1` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:285 The event propagation phase CAPTURING_PHASE that indicates that the event is in the capturing phase. #### Default [#default-2] ```ts 1 ``` #### Advanced [#advanced-2] #### Implementation of [#implementation-of-5] `UIEvent.CAPTURING_PHASE` *** ### currentTarget [#currenttarget] \> **currentTarget**: `Container` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:123 The listeners of the event target that are being notified. #### Implementation of [#implementation-of-6] `UIEvent.currentTarget` *** ### defaultPrevented [#defaultprevented] \> **defaultPrevented**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:125 Flags whether the default response of the user agent was prevent through this event. #### Implementation of [#implementation-of-7] `UIEvent.defaultPrevented` *** ### detail [#detail] \> **detail**: `number` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:156 Event-specific detail #### Implementation of [#implementation-of-8] `UIEvent.detail` *** ### eventPhase [#eventphase] \> **eventPhase**: `number` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:130 The propagation phase. #### Default [#default-3] [FederatedEvent.NONE](#none) #### Implementation of [#implementation-of-9] `UIEvent.eventPhase` *** ### isTrusted [#istrusted] \> **isTrusted**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:132 Flags whether this is a user-trusted event #### Implementation of [#implementation-of-10] `UIEvent.isTrusted` *** ### layer [#layer] \> **layer**: `Point` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:166 The coordinates of the event relative to the nearest DOM layer. This is a non-standard property. *** ### manager [#manager] \> `readonly` **manager**: `EventBoundary` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:154 The EventBoundary that manages this event. Null for root events. *** ### nativeEvent [#nativeevent] \> **nativeEvent**: `N` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:144 The native event that caused the foremost original event. *** ### NONE [#none] \> `readonly` **NONE**: `0` = `0` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:279 The event propagation phase NONE that indicates that the event is not in any phase. #### Default [#default-4] ```ts 0 ``` #### Advanced [#advanced-3] #### Implementation of [#implementation-of-11] `UIEvent.NONE` *** ### originalEvent [#originalevent] \> **originalEvent**: `FederatedEvent`\<`N`> Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:146 The original event that caused this event, if any. *** ### page [#page] \> **page**: `Point` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:172 The coordinates of the event relative to the DOM document. This is a non-standard property. *** ### path [#path] \> **path**: `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:152 The composed path of the event's propagation. The `target` is at the end. *** ### propagationImmediatelyStopped [#propagationimmediatelystopped] \> **propagationImmediatelyStopped**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:150 Flags whether propagation was immediately stopped. *** ### propagationStopped [#propagationstopped] \> **propagationStopped**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:148 Flags whether propagation was stopped. *** ### ~~returnValue~~ [#returnvalue] \> **returnValue**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:134 #### Deprecated [#deprecated-1] since 7.0.0 #### Implementation of [#implementation-of-12] `UIEvent.returnValue` *** ### ~~srcElement~~ [#srcelement] \> **srcElement**: `EventTarget` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:136 #### Deprecated [#deprecated-2] since 7.0.0 #### Implementation of [#implementation-of-13] `UIEvent.srcElement` *** ### target [#target] \> **target**: `Container` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:138 The event target that this will be dispatched to. #### Implementation of [#implementation-of-14] `UIEvent.target` *** ### timeStamp [#timestamp] \> **timeStamp**: `number` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:140 The timestamp of when the event was created. #### Implementation of [#implementation-of-15] `UIEvent.timeStamp` *** ### type [#type] \> **type**: `string` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:142 The type of event, e.g. `"mouseup"`. #### Implementation of [#implementation-of-16] `UIEvent.type` *** ### view [#view] \> **view**: `Window` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:158 The global Window object. #### Implementation of [#implementation-of-17] `UIEvent.view` ## Accessors [#accessors] ### data [#data] #### Get Signature [#get-signature] \> **get** **data**(): `this` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:186 Fallback for the deprecated `InteractionEvent.data`. ##### Deprecated [#deprecated-3] since 7.0.0 ##### Returns [#returns] `this` *** ### layerX [#layerx] #### Get Signature [#get-signature-1] \> **get** **layerX**(): `number` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:168 ##### Returns [#returns-1] `number` *** ### layerY [#layery] #### Get Signature [#get-signature-2] \> **get** **layerY**(): `number` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:170 ##### Returns [#returns-2] `number` *** ### pageX [#pagex] #### Get Signature [#get-signature-3] \> **get** **pageX**(): `number` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:174 ##### Returns [#returns-3] `number` *** ### pageY [#pagey] #### Get Signature [#get-signature-4] \> **get** **pageY**(): `number` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:176 ##### Returns [#returns-4] `number` ## Methods [#methods] ### composedPath() [#composedpath] \> **composedPath**(): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:191 The propagation path for this event. Alias for EventBoundary.propagationPath. #### Returns [#returns-5] `Container`\<`ContainerChild`>\[] #### Advanced [#advanced-4] #### Implementation of [#implementation-of-18] `UIEvent.composedPath` *** ### preventDefault() [#preventdefault] \> **preventDefault**(): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:229 Prevent default behavior of both PixiJS and the user agent. #### Returns [#returns-6] `void` #### Example [#example-1] ```ts sprite.on('click', (event) => { // Prevent both browser's default click behavior // and PixiJS's default handling event.preventDefault(); // Custom handling customClickHandler(); }); ``` #### Remarks [#remarks-1] * Only works if the native event is cancelable * Does not stop event propagation #### Implementation of [#implementation-of-19] `UIEvent.preventDefault` *** ### stopImmediatePropagation() [#stopimmediatepropagation] \> **stopImmediatePropagation**(): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:249 Stop this event from propagating to any additional listeners, including those on the current target and any following targets in the propagation path. #### Returns [#returns-7] `void` #### Example [#example-2] ```ts container.on('pointerdown', (event) => { // Stop all further event handling event.stopImmediatePropagation(); // These handlers won't be called: // - Other pointerdown listeners on this container // - Any pointerdown listeners on parent containers }); ``` #### Remarks [#remarks-2] * Immediately stops all event propagation * Prevents other listeners on same target from being called * More aggressive than stopPropagation() #### Implementation of [#implementation-of-20] `UIEvent.stopImmediatePropagation` *** ### stopPropagation() [#stoppropagation] \> **stopPropagation**(): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEvent.d.ts:273 Stop this event from propagating to the next target in the propagation path. The rest of the listeners on the current target will still be notified. #### Returns [#returns-8] `void` #### Example [#example-3] ```ts child.on('pointermove', (event) => { // Handle event on child updateChild(); // Prevent parent handlers from being called event.stopPropagation(); }); // This won't be called if child handles the event parent.on('pointermove', (event) => { updateParent(); }); ``` #### Remarks [#remarks-3] * Stops event bubbling to parent containers * Does not prevent other listeners on same target * Less aggressive than stopImmediatePropagation() #### Implementation of [#implementation-of-21] `UIEvent.stopPropagation` # Interface: FilterFadeTransitionProps (/pixi-vn/index/interfaces/FilterFadeTransitionProps) Defined in: [src/canvas/interfaces/transition-props.ts:226](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L226) Shared options for the filter-based reveal/conceal transitions ([GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps), [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps), [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps), [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps), [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps), [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps)). ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Extended by [#extended-by] * [`GlitchInOutProps`](/pixi-vn/index/interfaces/GlitchInOutProps) * [`NoiseDissolveInOutProps`](/pixi-vn/index/interfaces/NoiseDissolveInOutProps) * [`PinchInOutProps`](/pixi-vn/index/interfaces/PinchInOutProps) * [`RippleInOutProps`](/pixi-vn/index/interfaces/RippleInOutProps) * [`TwistInOutProps`](/pixi-vn/index/interfaces/TwistInOutProps) * [`WarpInOutProps`](/pixi-vn/index/interfaces/WarpInOutProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L235) Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn/index/interfaces/BlurInOutProps#fadecomponent)). The default depends on the transition. *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Interface: FlashInOutProps (/pixi-vn/index/interfaces/FlashInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:141](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L141) ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### color? [#color] \> `optional` **color?**: [`ColorType`](/pixi-vn/index/type-aliases/ColorType) Defined in: [src/canvas/interfaces/transition-props.ts:146](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L146) The overlay color. See [ColorType](/pixi-vn/index/type-aliases/ColorType). #### Default [#default-1] ```ts 0xffffff ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:170](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L170) Whether the component itself also briefly fades in (`flashIn`) or out (`flashOut`) alongside the color flash, softening what would otherwise be an instant pop-in/pop-out - the fade runs at a quarter of the flash's own duration, mirrored to the start of `flashIn`'s cycle or the end of `flashOut`'s. Ignored when `flashIn` replaces an existing component (both sides are already hidden under a solid `color` at the moment of the swap, so there's no pop to soften). #### Default [#default-4] ```ts true ``` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### holdDuration? [#holdduration] \> `optional` **holdDuration?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:156](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L156) How long (in seconds) the overlay stays at [maxAlpha](#maxalpha) before fading again. #### Default [#default-5] ```ts 0 ``` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### maxAlpha? [#maxalpha] \> `optional` **maxAlpha?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:151](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L151) The peak alpha the overlay reaches. #### Default [#default-7] ```ts 1 ``` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### pulses? [#pulses] \> `optional` **pulses?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:161](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L161) The number of times the overlay fades in and out. #### Default [#default-8] ```ts 1 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-9] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: GameState (/pixi-vn/index/interfaces/GameState) Defined in: [src/interfaces/GameState.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L7) ## Properties [#properties] ### canvasData [#canvasdata] \> **canvasData**: [`CanvasGameState`](/pixi-vn/index/interfaces/CanvasGameState) Defined in: [src/interfaces/GameState.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L11) *** ### historyData [#historydata] \> **historyData**: [`HistoryGameState`](/pixi-vn/index/interfaces/HistoryGameState) Defined in: [src/interfaces/GameState.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L13) *** ### path [#path] \> **path**: `string` Defined in: [src/interfaces/GameState.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L14) *** ### pixivn_version [#pixivn_version] \> **pixivn_version**: `string` Defined in: [src/interfaces/GameState.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L8) *** ### soundData [#sounddata] \> **soundData**: [`SoundGameState`](/pixi-vn/index/interfaces/SoundGameState) Defined in: [src/interfaces/GameState.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L12) *** ### stepData [#stepdata] \> **stepData**: [`NarrationGameState`](/pixi-vn/index/interfaces/NarrationGameState) Defined in: [src/interfaces/GameState.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L9) *** ### storageData [#storagedata] \> **storageData**: [`StorageGameState`](/pixi-vn/index/interfaces/StorageGameState) Defined in: [src/interfaces/GameState.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameState.ts#L10) # Interface: GameStepStateData (/pixi-vn/index/interfaces/GameStepStateData) Defined in: [src/interfaces/GameStepStateData.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStepStateData.ts#L9) It is a interface that contains the information of a step. ## Properties [#properties] ### canvas [#canvas] \> **canvas**: [`CanvasGameState`](/pixi-vn/index/interfaces/CanvasGameState) Defined in: [src/interfaces/GameStepStateData.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStepStateData.ts#L25) The canvas that occurred during the progression of the steps. *** ### labelIndex [#labelindex] \> **labelIndex**: `number` Defined in: [src/interfaces/GameStepStateData.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStepStateData.ts#L21) The index of the label that occurred during the progression of the steps. *** ### openedLabels [#openedlabels] \> **openedLabels**: [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/interfaces/GameStepStateData.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStepStateData.ts#L29) The opened labels that occurred during the progression of the steps. *** ### path [#path] \> **path**: `string` Defined in: [src/interfaces/GameStepStateData.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStepStateData.ts#L13) The browser path that occurred during the progression of the steps. *** ### sound [#sound] \> **sound**: [`SoundGameState`](/pixi-vn/index/interfaces/SoundGameState) Defined in: [src/interfaces/GameStepStateData.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStepStateData.ts#L33) The sound data that occurred during the progression of the steps. *** ### storage [#storage] \> **storage**: [`StorageGameState`](/pixi-vn/index/interfaces/StorageGameState) Defined in: [src/interfaces/GameStepStateData.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStepStateData.ts#L17) The storage that occurred during the progression of the steps. # Interface: GameTestingAPI (/pixi-vn/index/interfaces/GameTestingAPI) Defined in: [src/core/testing.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L47) The object attached to `window` (and returned) by `enable`. Every action method merges the most recent props passed to `setProps` with any `extraProps` given here, then delegates to the matching narration/history call — so calling these behaves exactly like a real player action (the same `navigate`/`t`/`toast`/etc. the real UI uses). `narration`, `storage`, `stepHistory` and `Game` are also exposed directly for anything not covered by the action methods (e.g. `storage.set(...)`, `Game.exportGameState()`). ## Type Parameters [#type-parameters] ### TGame [#tgame] `TGame` ### T [#t] `T` *extends* `object` = \{ } ## Properties [#properties] ### errors [#errors] \> `readonly` **errors**: [`GameTestingErrorEntry`](/pixi-vn/index/interfaces/GameTestingErrorEntry)\[] Defined in: [src/core/testing.ts:108](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L108) Errors caught via `Game.addOnError` since `enable()` was called (or since the last [clearErrors](#clearerrors)). *** ### Game [#game] \> `readonly` **Game**: `TGame` Defined in: [src/core/testing.ts:48](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L48) *** ### narration [#narration] \> `readonly` **narration**: [`NarrationManagerInterface`](/pixi-vn/index/interfaces/NarrationManagerInterface) Defined in: [src/core/testing.ts:49](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L49) *** ### navigate? [#navigate] \> `readonly` `optional` **navigate?**: (`screen`) => `Promise`\<`void`> Defined in: [src/core/testing.ts:106](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L106) Present only when the application registers a screen navigation action. #### Parameters [#parameters] ##### screen [#screen] `string` #### Returns [#returns] `Promise`\<`void`> *** ### props [#props] \> `readonly` **props**: [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> Defined in: [src/core/testing.ts:58](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L58) The most recent props passed to `setProps` — whatever your app's `StepLabelProps` augmentation defines (e.g. `navigate`, `toast`). Useful to drive the app's UI directly during a test session — e.g. `pixiVN.props.navigate("/settings")` — not just narration, for full control over what's on screen. *** ### stepHistory [#stephistory] \> `readonly` **stepHistory**: [`HistoryManagerInterface`](/pixi-vn/index/interfaces/HistoryManagerInterface) Defined in: [src/core/testing.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L51) *** ### storage [#storage] \> `readonly` **storage**: [`StorageManagerInterface`](/pixi-vn/index/interfaces/StorageManagerInterface) Defined in: [src/core/testing.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L50) ## Methods [#methods] ### call() [#call] \> **call**(`label`, `extraProps?`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:70](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L70) [narrationUtils.NarrationManagerInterface.call](/pixi-vn/index/interfaces/NarrationManagerInterface#call) using the live props plus any `extraProps`. #### Parameters [#parameters-1] ##### label [#label] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> ##### extraProps? [#extraprops] `Partial`\<`T`> #### Returns [#returns-1] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### clearErrors() [#clearerrors] \> **clearErrors**(): `void` Defined in: [src/core/testing.ts:109](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L109) #### Returns [#returns-2] `void` *** ### closeAllLabels() [#closealllabels] \> **closeAllLabels**(): `void` Defined in: [src/core/testing.ts:98](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L98) [narrationUtils.NarrationLabelsInterface.closeAll](/pixi-vn/index/interfaces/NarrationLabelsInterface#closeall). **Can end the game.** #### Returns [#returns-3] `void` *** ### closeCurrentLabel() [#closecurrentlabel] \> **closeCurrentLabel**(): `void` Defined in: [src/core/testing.ts:96](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L96) [narrationUtils.NarrationLabelsInterface.closeCurrent](/pixi-vn/index/interfaces/NarrationLabelsInterface#closecurrent) #### Returns [#returns-4] `void` *** ### continue() [#continue] \> **continue**(`extraProps?`, `options?`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L65) [narrationUtils.NarrationManagerInterface.continue](/pixi-vn/index/interfaces/NarrationManagerInterface#continue) using the live props plus any `extraProps`. #### Parameters [#parameters-2] ##### extraProps? [#extraprops-1] `Partial`\<`T`> ##### options? [#options] ###### runNow? [#runnow] `boolean` ###### steps? [#steps] `number` #### Returns [#returns-5] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### getAssetIds() [#getassetids] \> **getAssetIds**(): `string`\[] Defined in: [src/core/testing.ts:104](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L104) Registered resolver aliases, including assets that have not been loaded. #### Returns [#returns-6] `string`\[] *** ### getLabelIds() [#getlabelids] \> **getLabelIds**(): `string`\[] Defined in: [src/core/testing.ts:102](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L102) All registered labels, including labels not currently open. #### Returns [#returns-7] `string`\[] *** ### getState() [#getstate] \> **getState**(): [`GameTestingState`](/pixi-vn/index/interfaces/GameTestingState) Defined in: [src/core/testing.ts:100](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L100) A snapshot of dialogue/choices/input/canContinue/canGoBack/labels — see [GameTestingState](/pixi-vn/index/interfaces/GameTestingState). #### Returns [#returns-8] [`GameTestingState`](/pixi-vn/index/interfaces/GameTestingState) *** ### goBack() [#goback] \> **goBack**(`extraProps?`, `options?`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:91](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L91) [historyUtils.HistoryManagerInterface.back](/pixi-vn/index/interfaces/HistoryManagerInterface#back) using the live props plus any `extraProps`. #### Parameters [#parameters-3] ##### extraProps? [#extraprops-2] `Partial`\<`T`> ##### options? [#options-1] ###### steps? [#steps-1] `number` #### Returns [#returns-9] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### jump() [#jump] \> **jump**(`label`, `extraProps?`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:75](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L75) [narrationUtils.NarrationManagerInterface.jump](/pixi-vn/index/interfaces/NarrationManagerInterface#jump) using the live props plus any `extraProps`. #### Parameters [#parameters-4] ##### label [#label-1] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> ##### extraProps? [#extraprops-3] `Partial`\<`T`> #### Returns [#returns-10] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### selectChoice() [#selectchoice] \> **selectChoice**(`choiceIndex`, `extraProps?`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:84](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L84) Selects the currently open choice with this `choiceIndex` (as seen in `getState().choices`), using the live props plus any `extraProps`. #### Parameters [#parameters-5] ##### choiceIndex [#choiceindex] `number` ##### extraProps? [#extraprops-4] `Partial`\<`T`> #### Returns [#returns-11] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> #### Throws [#throws] when no open choice has that index. *** ### setInput() [#setinput] \> **setInput**(`value`): `void` Defined in: [src/core/testing.ts:89](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L89) Resolves a pending `narration.input.request(...)` with `value`, exactly like the player typing an answer and confirming. #### Parameters [#parameters-6] ##### value [#value] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) #### Returns [#returns-12] `void` *** ### start() [#start] \> **start**(`label`, `extraProps?`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:60](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L60) `Game.start` using the live props plus any `extraProps`. #### Parameters [#parameters-7] ##### label [#label-2] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> ##### extraProps? [#extraprops-5] `Partial`\<`T`> #### Returns [#returns-13] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> # Interface: GameTestingActions (/pixi-vn/index/interfaces/GameTestingActions) Defined in: [src/core/testing.ts:125](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L125) Per-action overrides an app can register via `setActions` so `Game.testing`'s window-exposed actions run the app's own narration functions — with whatever UI-only side effects they add (loading state, blocking while a menu is open, refreshing cached interface data, ...) — instead of calling [narrationUtils.narration](/pixi-vn/index/variables/narration) / historyUtils.stepHistory directly. Any action left undefined keeps the default behavior. `continue`/`back` take no arguments: the `extraProps`/`options` a caller passes to the corresponding [GameTestingAPI](/pixi-vn/index/interfaces/GameTestingAPI) method are ignored when an override is registered, since the override already has its own way to gather props (and typically doesn't support stepped/replay options). `selectChoice` receives the resolved choice item instead of the raw `choiceIndex`, since looking it up is already handled before the override runs. ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` = \{ } ## Properties [#properties] ### back? [#back] \> `optional` **back?**: () => `Promise`\<`void`> Defined in: [src/core/testing.ts:129](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L129) #### Returns [#returns] `Promise`\<`void`> *** ### call? [#call] \> `optional` **call?**: (`label`, `props?`) => `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:139](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L139) #### Parameters [#parameters] ##### label [#label] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> ##### props? [#props] `T` #### Returns [#returns-1] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### continue? [#continue] \> `optional` **continue?**: () => `Promise`\<`void`> Defined in: [src/core/testing.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L128) #### Returns [#returns-2] `Promise`\<`void`> *** ### jump? [#jump] \> `optional` **jump?**: (`label`, `props?`) => `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/core/testing.ts:135](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L135) #### Parameters [#parameters-1] ##### label [#label-1] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> ##### props? [#props-1] `T` #### Returns [#returns-3] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### navigate? [#navigate] \> `optional` **navigate?**: (`screen`) => `Promise`\<`void`> Defined in: [src/core/testing.ts:127](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L127) Optional router-independent screen navigation supplied by the application. #### Parameters [#parameters-2] ##### screen [#screen] `string` #### Returns [#returns-4] `Promise`\<`void`> *** ### selectChoice? [#selectchoice] \> `optional` **selectChoice?**: (`item`) => `Promise`\<`void`> Defined in: [src/core/testing.ts:130](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L130) #### Parameters [#parameters-3] ##### item [#item] [`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface) #### Returns [#returns-5] `Promise`\<`void`> *** ### start? [#start] \> `optional` **start?**: (`label`, `props?`) => `Promise`\<`void`> Defined in: [src/core/testing.ts:131](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L131) #### Parameters [#parameters-4] ##### label [#label-2] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> ##### props? [#props-2] `T` #### Returns [#returns-6] `Promise`\<`void`> # Interface: GameTestingErrorEntry (/pixi-vn/index/interfaces/GameTestingErrorEntry) Defined in: [src/core/testing.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L12) One error captured by createGameTesting's `enable` while testing is active, via `Game.addOnError`. ## Properties [#properties] ### error [#error] \> **error**: `unknown` Defined in: [src/core/testing.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L13) *** ### timestamp [#timestamp] \> **timestamp**: `number` Defined in: [src/core/testing.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L14) # Interface: GameTestingState (/pixi-vn/index/interfaces/GameTestingState) Defined in: [src/core/testing.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L22) A read-only snapshot of everything a test session typically needs to decide its next action, gathered from [narrationUtils.narration](/pixi-vn/index/variables/narration) and [historyUtils.stepHistory](/pixi-vn/index/variables/stepHistory) in a single call instead of reading several properties one by one. ## Properties [#properties] ### canContinue [#cancontinue] \> **canContinue**: `boolean` Defined in: [src/core/testing.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L31) *** ### canGoBack [#cangoback] \> **canGoBack**: `boolean` Defined in: [src/core/testing.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L32) *** ### choices [#choices] \> **choices**: [`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface)\[] | `undefined` Defined in: [src/core/testing.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L25) *** ### currentLabelId [#currentlabelid] \> **currentLabelId**: `string` | `undefined` Defined in: [src/core/testing.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L34) *** ### dialogue [#dialogue] \> **dialogue**: [`DialogueInterface`](/pixi-vn/index/interfaces/DialogueInterface) | `undefined` Defined in: [src/core/testing.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L23) *** ### dialogueGlue [#dialogueglue] \> **dialogueGlue**: `boolean` Defined in: [src/core/testing.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L24) *** ### input [#input] \> **input**: `object` Defined in: [src/core/testing.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L26) #### isRequired [#isrequired] \> **isRequired**: `boolean` #### type [#type] \> **type**: `string` | `undefined` #### value [#value] \> **value**: [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) *** ### labelsOpened [#labelsopened] \> **labelsOpened**: [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/core/testing.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L33) *** ### stepCounter [#stepcounter] \> **stepCounter**: `number` Defined in: [src/core/testing.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/testing.ts#L35) # Interface: GlitchEffectProps (/pixi-vn/index/interfaces/GlitchEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:163](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L163) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### bursts? [#bursts] \> `optional` **bursts?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:173](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L173) The number of glitch bursts. #### Default [#default-1] ```ts 3 ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-4] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:183](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L183) The angle (in degrees) slices are displaced along. #### Default [#default-5] ```ts 0 ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### rgbSplit? [#rgbsplit] \> `optional` **rgbSplit?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:189](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L189) The peak red/blue channel separation (pixels) layered on top of the slice displacement, following the same jittery envelope. `0` disables it. #### Default [#default-7] ```ts 6 ``` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### slices? [#slices] \> `optional` **slices?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:178](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L178) The number of glitch slices. #### Default [#default-8] ```ts 8 ``` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-9] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:168](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L168) The peak slice-displacement amount (pixels) of the first, largest burst. #### Default [#default-10] ```ts 40 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-12] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: GlitchInOutProps (/pixi-vn/index/interfaces/GlitchInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:237](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L237) Shared options for the filter-based reveal/conceal transitions (GlitchInOutProps, [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps), [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps), [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps), [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps), [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps)). ## Extends [#extends] * [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `FilterFadeTransitionProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounce`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncestiffness) *** ### bursts? [#bursts] \> `optional` **bursts?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:247](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L247) The number of glitch bursts. #### Default [#default-1] ```ts 3 ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-6] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`damping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`driver`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`duration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`ease`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#elapsed) *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L235) Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn/index/interfaces/BlurInOutProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`fadeComponent`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#fadecomponent) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-15] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`from`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`inherit`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`isSync`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`mass`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`max`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`min`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`path`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`power`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeat`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restspeed) *** ### rgbSplit? [#rgbsplit] \> `optional` **rgbSplit?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:258](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L258) The peak red/blue channel separation (pixels) layered on top of the slices, following the same envelope. `0` disables it. #### Default [#default-5] ```ts 6 ``` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#skipanimations) *** ### slices? [#slices] \> `optional` **slices?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:252](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L252) The number of glitch slices. #### Default [#default-6] ```ts 8 ``` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`startTime`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:242](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L242) The peak slice-displacement (pixels) - the first burst of `glitchIn`, the last of `glitchOut`. #### Default [#default-8] ```ts 40 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `FilterFadeTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-36] `FilterFadeTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`times`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`type`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`velocity`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`when`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#when) # Interface: GlowPulseEffectProps (/pixi-vn/index/interfaces/GlowPulseEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:337](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L337) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### color? [#color] \> `optional` **color?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:352](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L352) The color of the glow. #### Default [#default-1] ```ts 0xffffff ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-4] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### distance? [#distance] \> `optional` **distance?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:357](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L357) The distance (in pixels) the glow extends. #### Default [#default-5] ```ts 10 ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### innerStrength? [#innerstrength] \> `optional` **innerStrength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:362](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L362) The strength of the glow inward from the edge of the component. #### Default [#default-6] ```ts 0 ``` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-7] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### pulses? [#pulses] \> `optional` **pulses?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:347](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L347) The number of pulses. #### Default [#default-8] ```ts 3 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-9] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:342](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L342) The peak outward glow strength of the first, largest pulse. #### Default [#default-10] ```ts 4 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-12] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: HistoryGameState (/pixi-vn/index/interfaces/HistoryGameState) Defined in: [src/history/interfaces/HistoryGameState.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryGameState.ts#L7) Interface exported step data ## Properties [#properties] ### originalStepData [#originalstepdata] \> **originalStepData**: `GameStepState` | `undefined` Defined in: [src/history/interfaces/HistoryGameState.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryGameState.ts#L9) *** ### stepsHistory [#stepshistory] \> **stepsHistory**: [`HistoryStep`](/pixi-vn/index/interfaces/HistoryStep)\[] Defined in: [src/history/interfaces/HistoryGameState.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryGameState.ts#L8) # Interface: HistoryManagerInterface (/pixi-vn/index/interfaces/HistoryManagerInterface) Defined in: [src/history/interfaces/HistoryManagerInterface.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L13) ## Properties [#properties] ### back [#back] \> **back**: (`props`, `options?`) => `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:73](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L73) Go back to the last step and add it to the history. #### Parameters [#parameters] ##### props [#props] `StepLabelProps` The step label properties. ##### options? [#options] The navigation options. ###### steps? [#steps] `number` The number of steps to go back. Must be greater than 0. **Default** ```ts 1 ``` #### Returns [#returns] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> *** ### canGoBack [#cangoback] \> `readonly` **canGoBack**: `boolean` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:89](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L89) Return true if it is possible to go back. *** ### currentLabelHistory [#currentlabelhistory] \> `readonly` **currentLabelHistory**: [`NarrationHistory`](/pixi-vn/index/interfaces/NarrationHistory)\[] Defined in: [src/history/interfaces/HistoryManagerInterface.ts:40](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L40) Get the history of the latest steps belonging to the current label and its child labels. This is effectively the current "page" of an interactive book: it starts over every time a [NarrationManagerInterface.jump](/pixi-vn/index/interfaces/NarrationManagerInterface#jump) is performed. #### Returns [#returns-1] the history of the dialogues, choices and steps *** ### currentPageParagraphs [#currentpageparagraphs] \> `readonly` **currentPageParagraphs**: [`NarrationHistory`](/pixi-vn/index/interfaces/NarrationHistory)\[]\[] Defined in: [src/history/interfaces/HistoryManagerInterface.ts:50](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L50) Get the current page ([HistoryManagerInterface.currentLabelHistory](#currentlabelhistory)) split into paragraphs. A new paragraph starts every time the number of opened labels changes compared to the previous step (i.e. a [NarrationManagerInterface.call](/pixi-vn/index/interfaces/NarrationManagerInterface#call) was made, or a called label returned), using [NarrationHistory.openedLabelsNumber](/pixi-vn/index/interfaces/NarrationHistory#openedlabelsnumber). #### Returns [#returns-2] the current page as an ordered list of paragraphs, each one a list of steps *** ### diffMap [#diffmap] \> `readonly` **diffMap**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`number`, `Difference`\[]> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:149](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L149) Map that contains all the differences between the steps in the history. The differences will be used to restore a step. **Don't edit unless you're sure what you're doing.** *** ### goBackMode [#gobackmode] \> **goBackMode**: [`HistoryGoBackModeType`](/pixi-vn/index/type-aliases/HistoryGoBackModeType) Defined in: [src/history/interfaces/HistoryManagerInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L26) How often a go-back-able checkpoint is recorded. #### Default [#default] "step" * `"step"`: every single narration step, matching visual-novel-style games where the player may want to undo one line/sprite change at a time. * `"paragraph"`: only when a new paragraph starts ([HistoryManagerInterface.currentPageParagraphs](#currentpageparagraphs)), a choice is proposed, or an input is requested - matching book-style narrations where undoing mid-paragraph doesn't make sense to the player. Every step within a paragraph is merged into the checkpoint that closes it out: `back()` from anywhere inside paragraph N jumps all the way to the *start* of paragraph N-1, not to wherever you were right before N began - the whole of paragraph N-1 gets replayed. *** ### lastKey [#lastkey] \> `readonly` **lastKey**: `number` | `null` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:118](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L118) Get the last key (id) of the history. *** ### narrationMap [#narrationmap] \> `readonly` **narrationMap**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`number`, [`NarrationHistory`](/pixi-vn/index/interfaces/NarrationHistory)> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:155](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L155) Map that contains all the narration history. **Don't edit unless you're sure what you're doing.** *** ### narrativeHistory [#narrativehistory] \> `readonly` **narrativeHistory**: [`NarrationHistory`](/pixi-vn/index/interfaces/NarrationHistory)\[] Defined in: [src/history/interfaces/HistoryManagerInterface.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L31) Get the narrative history. #### Returns [#returns-3] the history of the dialogues, choices and steps *** ### size [#size] \> `readonly` **size**: `number` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:114](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L114) Number of items in the history. *** ### stepLimitSaved [#steplimitsaved] \> **stepLimitSaved**: `number` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:61](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L61) The number of steps to keep in the history into the save file. The other older steps will be compressed will be used in [HistoryManagerInterface.narrativeHistory](#narrativehistory) to show the older dialogues. In the compressed steps, the canvas and storage information will be removed. This also means that a player, after saving and loading a save, will only be able to go back to NarrationManagerInterface.stepLimitSaved steps. If you want to keep all steps in the history, you can set this value to Infinity. *** ### stepsInfoMap [#stepsinfomap] \> `readonly` **stepsInfoMap**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`number`, `Omit`\<[`HistoryStep`](/pixi-vn/index/interfaces/HistoryStep), `"diff"`>> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:142](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L142) Map that contains all information about the steps in the history. **Don't edit unless you're sure what you're doing.** ## Methods [#methods] ### add() [#add] \> **add**(`historyInfo?`, `opstions?`): `Promise`\<`void`> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:98](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L98) Add a step to the history. #### Parameters [#parameters-1] ##### historyInfo? [#historyinfo] `HistoryInfo` Info about the step to add. ##### opstions? [#opstions] Options to add the step. ###### ignoreSameStep? [#ignoresamestep] `boolean` If true, the step will not be added to the history if the current step is the same as the last step. #### Returns [#returns-4] `Promise`\<`void`> *** ### blockGoBack() [#blockgoback] \> **blockGoBack**(): `void` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L85) Block the go back function. #### Returns [#returns-5] `void` *** ### clear() [#clear] \> **clear**(): `void` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:110](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L110) Clear the history. #### Returns [#returns-6] `void` *** ### delete() [#delete] \> **delete**(`stepIndex`): `void` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:136](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L136) Remove a step from the history. #### Parameters [#parameters-2] ##### stepIndex [#stepindex] `number` The key (id) of the step to remove. #### Returns [#returns-7] `void` True if the step was removed, false if it was not found. *** ### export() [#export] \> **export**(): `Promise`\<[`HistoryGameState`](/pixi-vn/index/interfaces/HistoryGameState)> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:163](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L163) Export the history to an object. #### Returns [#returns-8] `Promise`\<[`HistoryGameState`](/pixi-vn/index/interfaces/HistoryGameState)> The history in an object. *** ### get() [#get] \> **get**(`stepIndex`): [`NarrationHistory`](/pixi-vn/index/interfaces/NarrationHistory) | `undefined` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:130](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L130) Get a step from the history. **Note:** If the step not contains any information, this method will return undefined. #### Parameters [#parameters-3] ##### stepIndex [#stepindex-1] `number` The key (id) of the step to get. #### Returns [#returns-9] [`NarrationHistory`](/pixi-vn/index/interfaces/NarrationHistory) | `undefined` The step. *** ### keys() [#keys] \> **keys**(): `MapIterator`\<`number`> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:122](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L122) Get all the keys (id) of the history. #### Returns [#returns-10] `MapIterator`\<`number`> *** ### removeNarrativeHistory() [#removenarrativehistory] \> **removeNarrativeHistory**(`itemsNumber?`): `void` Defined in: [src/history/interfaces/HistoryManagerInterface.ts:66](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L66) Delete the narrative history. #### Parameters [#parameters-4] ##### itemsNumber? [#itemsnumber] `number` The number of items to delete. If undefined, all items will be deleted. #### Returns [#returns-11] `void` *** ### restore() [#restore] \> **restore**(`data`): `Promise`\<`void`> Defined in: [src/history/interfaces/HistoryManagerInterface.ts:168](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/interfaces/HistoryManagerInterface.ts#L168) Restore the history from an object. #### Parameters [#parameters-5] ##### data [#data] `object` The history in an object. #### Returns [#returns-12] `Promise`\<`void`> # Interface: HistoryStep (/pixi-vn/index/interfaces/HistoryStep) Defined in: [src/narration/interfaces/HistoryStep.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L20) ## Properties [#properties] ### alreadyMadeChoices? [#alreadymadechoices] \> `optional` **alreadyMadeChoices?**: `number`\[] Defined in: [src/narration/interfaces/HistoryStep.ts:52](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L52) List of choices already made by the player *** ### choiceIndexMade? [#choiceindexmade] \> `optional` **choiceIndexMade?**: `number` Defined in: [src/narration/interfaces/HistoryStep.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L65) The choice made by the player *** ### choices? [#choices] \> `optional` **choices?**: [`StoredChoiceInterface`](/pixi-vn/index/type-aliases/StoredChoiceInterface)\[] Defined in: [src/narration/interfaces/HistoryStep.ts:48](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L48) List of choices asked of the player *** ### currentLabel? [#currentlabel] \> `optional` **currentLabel?**: `string` Defined in: [src/narration/interfaces/HistoryStep.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L28) The label id of the current step. *** ### dialogue? [#dialogue] \> `optional` **dialogue?**: `StoredDialogue` Defined in: [src/narration/interfaces/HistoryStep.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L44) Dialogue to be shown in the game *** ### diff? [#diff] \> `optional` **diff?**: `Difference`\[] Defined in: [src/narration/interfaces/HistoryStep.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L24) The difference between the previous step and the current step. *** ### index [#index] \> **index**: `number` Defined in: [src/narration/interfaces/HistoryStep.ts:36](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L36) Equivalent to the narration.stepCounter *** ### inputValue? [#inputvalue] \> `optional` **inputValue?**: [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) Defined in: [src/narration/interfaces/HistoryStep.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L56) The input value of the player *** ### isGlued? [#isglued] \> `optional` **isGlued?**: `boolean` Defined in: [src/narration/interfaces/HistoryStep.ts:69](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L69) If true, the current dialogue will be glued to the previous one. *** ### isRequiredInput? [#isrequiredinput] \> `optional` **isRequiredInput?**: `boolean` Defined in: [src/narration/interfaces/HistoryStep.ts:61](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L61) Whether this step requested an input from the player (regardless of whether a default value was provided, unlike [inputValue](#inputvalue) which is only set when one is). *** ### labelStepIndex [#labelstepindex] \> **labelStepIndex**: `number` | `null` Defined in: [src/narration/interfaces/HistoryStep.ts:40](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L40) The data of the step of the label. *** ### openedLabels? [#openedlabels] \> `optional` **openedLabels?**: [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/narration/interfaces/HistoryStep.ts:73](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L73) Opened Labels in the current step. *** ### stepSha1 [#stepsha1] \> **stepSha1**: `string` Defined in: [src/narration/interfaces/HistoryStep.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/HistoryStep.ts#L32) The sha1 of the step function. # Interface: HopEffectProps (/pixi-vn/index/interfaces/HopEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:70](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L70) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), HopEffectProps, [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-3] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: [src/canvas/interfaces/effect-props.ts:75](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L75) The direction of the (primary and any secondary) hops. #### Default [#default-4] ```ts "up" ``` *** ### distance? [#distance] \> `optional` **distance?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:80](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L80) The distance (in pixels) of the primary hop. #### Default [#default-5] ```ts 40 ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### secondaryHops? [#secondaryhops] \> `optional` **secondaryHops?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L85) The number of smaller, decaying hops to play after the primary one (`0` = just the one hop). #### Default [#default-7] ```ts 0 ``` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: HslColorType (/pixi-vn/index/interfaces/HslColorType) Defined in: [src/canvas/types/ColorType.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L9) ## Extended by [#extended-by] * [`HslaColorType`](/pixi-vn/index/interfaces/HslaColorType) ## Properties [#properties] ### h [#h] \> **h**: `number` Defined in: [src/canvas/types/ColorType.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L10) *** ### l [#l] \> **l**: `number` Defined in: [src/canvas/types/ColorType.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L12) *** ### s [#s] \> **s**: `number` Defined in: [src/canvas/types/ColorType.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L11) # Interface: HslaColorType (/pixi-vn/index/interfaces/HslaColorType) Defined in: [src/canvas/types/ColorType.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L14) ## Extends [#extends] * [`HslColorType`](/pixi-vn/index/interfaces/HslColorType) ## Properties [#properties] ### a [#a] \> **a**: `number` Defined in: [src/canvas/types/ColorType.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L15) *** ### h [#h] \> **h**: `number` Defined in: [src/canvas/types/ColorType.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L10) #### Inherited from [#inherited-from] [`HslColorType`](/pixi-vn/index/interfaces/HslColorType).[`h`](/pixi-vn/index/interfaces/HslColorType#h) *** ### l [#l] \> **l**: `number` Defined in: [src/canvas/types/ColorType.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L12) #### Inherited from [#inherited-from-1] [`HslColorType`](/pixi-vn/index/interfaces/HslColorType).[`l`](/pixi-vn/index/interfaces/HslColorType#l) *** ### s [#s] \> **s**: `number` Defined in: [src/canvas/types/ColorType.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L11) #### Inherited from [#inherited-from-2] [`HslColorType`](/pixi-vn/index/interfaces/HslColorType).[`s`](/pixi-vn/index/interfaces/HslColorType#s) # Interface: HsvColorType (/pixi-vn/index/interfaces/HsvColorType) Defined in: [src/canvas/types/ColorType.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L17) ## Extended by [#extended-by] * [`HsvaColorType`](/pixi-vn/index/interfaces/HsvaColorType) ## Properties [#properties] ### h [#h] \> **h**: `number` Defined in: [src/canvas/types/ColorType.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L18) *** ### s [#s] \> **s**: `number` Defined in: [src/canvas/types/ColorType.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L19) *** ### v [#v] \> **v**: `number` Defined in: [src/canvas/types/ColorType.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L20) # Interface: HsvaColorType (/pixi-vn/index/interfaces/HsvaColorType) Defined in: [src/canvas/types/ColorType.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L22) ## Extends [#extends] * [`HsvColorType`](/pixi-vn/index/interfaces/HsvColorType) ## Properties [#properties] ### a [#a] \> **a**: `number` Defined in: [src/canvas/types/ColorType.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L23) *** ### h [#h] \> **h**: `number` Defined in: [src/canvas/types/ColorType.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L18) #### Inherited from [#inherited-from] [`HsvColorType`](/pixi-vn/index/interfaces/HsvColorType).[`h`](/pixi-vn/index/interfaces/HsvColorType#h) *** ### s [#s] \> **s**: `number` Defined in: [src/canvas/types/ColorType.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L19) #### Inherited from [#inherited-from-1] [`HsvColorType`](/pixi-vn/index/interfaces/HsvColorType).[`s`](/pixi-vn/index/interfaces/HsvColorType#s) *** ### v [#v] \> **v**: `number` Defined in: [src/canvas/types/ColorType.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L20) #### Inherited from [#inherited-from-2] [`HsvColorType`](/pixi-vn/index/interfaces/HsvColorType).[`v`](/pixi-vn/index/interfaces/HsvColorType#v) # Interface: ImageContainerMemory (/pixi-vn/index/interfaces/ImageContainerMemory) Defined in: [src/canvas/interfaces/memory/ImageContainerMemory.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ImageContainerMemory.ts#L9) Interface for the canvas container memory ## Extends [#extends] * [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory)\<[`ImageSprite`](/pixi-vn/index/classes/ImageSprite)> ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`accessible`](/pixi-vn/index/interfaces/ContainerMemory#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`accessibleChildren`](/pixi-vn/index/interfaces/ContainerMemory#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`accessibleHint`](/pixi-vn/index/interfaces/ContainerMemory#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/ContainerMemory#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`accessibleText`](/pixi-vn/index/interfaces/ContainerMemory#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`accessibleTitle`](/pixi-vn/index/interfaces/ContainerMemory#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`accessibleType`](/pixi-vn/index/interfaces/ContainerMemory#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`align`](/pixi-vn/index/interfaces/ContainerMemory#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`alpha`](/pixi-vn/index/interfaces/ContainerMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `PointData` Defined in: [src/canvas/interfaces/memory/ImageContainerMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ImageContainerMemory.ts#L11) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-9] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`angle`](/pixi-vn/index/interfaces/ContainerMemory#angle) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-8] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-10] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`blendMode`](/pixi-vn/index/interfaces/ContainerMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-11] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`boundsArea`](/pixi-vn/index/interfaces/ContainerMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-12] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/ContainerMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: [`ImageSprite`](/pixi-vn/index/classes/ImageSprite)\<[`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)>\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-13] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`children`](/pixi-vn/index/interfaces/ContainerMemory#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-9] ```ts false ``` #### Inherited from [#inherited-from-14] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`cullable`](/pixi-vn/index/interfaces/ContainerMemory#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-10] ```ts true ``` #### Inherited from [#inherited-from-15] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`cullableChildren`](/pixi-vn/index/interfaces/ContainerMemory#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-11] ```ts null ``` #### Inherited from [#inherited-from-16] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`cullArea`](/pixi-vn/index/interfaces/ContainerMemory#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-12] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-17] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`cursor`](/pixi-vn/index/interfaces/ContainerMemory#cursor) *** ### elements [#elements] \> **elements**: [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory)\[] Defined in: [src/canvas/interfaces/memory/ImageContainerMemory.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ImageContainerMemory.ts#L10) The elements contained in this container #### Overrides [#overrides] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`elements`](/pixi-vn/index/interfaces/ContainerMemory#elements) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-18] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`eventMode`](/pixi-vn/index/interfaces/ContainerMemory#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-19] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`filters`](/pixi-vn/index/interfaces/ContainerMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-13] ```ts 0 ``` #### Inherited from [#inherited-from-20] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`height`](/pixi-vn/index/interfaces/ContainerMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-21] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`hitArea`](/pixi-vn/index/interfaces/ContainerMemory#hitarea) *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-22] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`index`](/pixi-vn/index/interfaces/ContainerMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-23] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`interactive`](/pixi-vn/index/interfaces/ContainerMemory#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-14] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-24] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`interactiveChildren`](/pixi-vn/index/interfaces/ContainerMemory#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-25] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/ContainerMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-26] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`label`](/pixi-vn/index/interfaces/ContainerMemory#label) *** ### loadIsStarted [#loadisstarted] \> **loadIsStarted**: `boolean` Defined in: [src/canvas/interfaces/memory/ImageContainerMemory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ImageContainerMemory.ts#L12) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`mask`](/pixi-vn/index/interfaces/ContainerMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onclick`](/pixi-vn/index/interfaces/ContainerMemory#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`oncontextmenu`](/pixi-vn/index/interfaces/ContainerMemory#oncontextmenu) *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-29] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onEvents`](/pixi-vn/index/interfaces/ContainerMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onglobalmousemove`](/pixi-vn/index/interfaces/ContainerMemory#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onglobalpointermove`](/pixi-vn/index/interfaces/ContainerMemory#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-32] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onglobaltouchmove`](/pixi-vn/index/interfaces/ContainerMemory#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-33] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmousedown`](/pixi-vn/index/interfaces/ContainerMemory#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-34] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmouseenter`](/pixi-vn/index/interfaces/ContainerMemory#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-35] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmouseleave`](/pixi-vn/index/interfaces/ContainerMemory#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-36] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmousemove`](/pixi-vn/index/interfaces/ContainerMemory#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-37] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmouseout`](/pixi-vn/index/interfaces/ContainerMemory#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-38] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmouseover`](/pixi-vn/index/interfaces/ContainerMemory#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-39] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmouseup`](/pixi-vn/index/interfaces/ContainerMemory#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-40] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onmouseupoutside`](/pixi-vn/index/interfaces/ContainerMemory#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-41] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointercancel`](/pixi-vn/index/interfaces/ContainerMemory#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-42] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointerdown`](/pixi-vn/index/interfaces/ContainerMemory#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-43] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointerenter`](/pixi-vn/index/interfaces/ContainerMemory#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-44] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointerleave`](/pixi-vn/index/interfaces/ContainerMemory#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-45] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointermove`](/pixi-vn/index/interfaces/ContainerMemory#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-46] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointerout`](/pixi-vn/index/interfaces/ContainerMemory#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-47] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointerover`](/pixi-vn/index/interfaces/ContainerMemory#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-48] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointertap`](/pixi-vn/index/interfaces/ContainerMemory#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-49] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointerup`](/pixi-vn/index/interfaces/ContainerMemory#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-50] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onpointerupoutside`](/pixi-vn/index/interfaces/ContainerMemory#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-51] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onRender`](/pixi-vn/index/interfaces/ContainerMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-52] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onrightclick`](/pixi-vn/index/interfaces/ContainerMemory#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-53] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onrightdown`](/pixi-vn/index/interfaces/ContainerMemory#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-54] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onrightup`](/pixi-vn/index/interfaces/ContainerMemory#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-55] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onrightupoutside`](/pixi-vn/index/interfaces/ContainerMemory#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-56] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`ontap`](/pixi-vn/index/interfaces/ContainerMemory#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-57] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`ontouchcancel`](/pixi-vn/index/interfaces/ContainerMemory#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-58] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`ontouchend`](/pixi-vn/index/interfaces/ContainerMemory#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-59] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`ontouchendoutside`](/pixi-vn/index/interfaces/ContainerMemory#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-60] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`ontouchmove`](/pixi-vn/index/interfaces/ContainerMemory#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-61] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`ontouchstart`](/pixi-vn/index/interfaces/ContainerMemory#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-62] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`onwheel`](/pixi-vn/index/interfaces/ContainerMemory#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-63] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`origin`](/pixi-vn/index/interfaces/ContainerMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-64] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`parent`](/pixi-vn/index/interfaces/ContainerMemory#parent) *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-65] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`parentLabel`](/pixi-vn/index/interfaces/ContainerMemory#parentlabel) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`percentagePosition`](/pixi-vn/index/interfaces/ContainerMemory#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`percentageX`](/pixi-vn/index/interfaces/ContainerMemory#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`percentageY`](/pixi-vn/index/interfaces/ContainerMemory#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-69] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`pivot`](/pixi-vn/index/interfaces/ContainerMemory#pivot) *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-70] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/ContainerMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-71] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`pixivnId`](/pixi-vn/index/interfaces/ContainerMemory#pixivnid) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-72] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`position`](/pixi-vn/index/interfaces/ContainerMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-50] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-73] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`renderable`](/pixi-vn/index/interfaces/ContainerMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-61] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-74] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`rotation`](/pixi-vn/index/interfaces/ContainerMemory#rotation) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-62] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-75] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`scale`](/pixi-vn/index/interfaces/ContainerMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-76] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`setMask`](/pixi-vn/index/interfaces/ContainerMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-63] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-51] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-77] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`skew`](/pixi-vn/index/interfaces/ContainerMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-64] ```ts container.sortableChildren = true; ``` #### Default [#default-52] ```ts false ``` #### Inherited from [#inherited-from-78] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`sortableChildren`](/pixi-vn/index/interfaces/ContainerMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-53] ```ts false @internal ``` #### Inherited from [#inherited-from-79] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`sortDirty`](/pixi-vn/index/interfaces/ContainerMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-54] ```ts 0 ``` #### Example [#example-65] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-80] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`tabIndex`](/pixi-vn/index/interfaces/ContainerMemory#tabindex) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-66] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-55] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-81] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`tint`](/pixi-vn/index/interfaces/ContainerMemory#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-67] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-56] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-82] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`visible`](/pixi-vn/index/interfaces/ContainerMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-68] ```ts new Container({ width: 100}); ``` #### Default [#default-57] ```ts 0 ``` #### Inherited from [#inherited-from-83] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`width`](/pixi-vn/index/interfaces/ContainerMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-69] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-84] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`x`](/pixi-vn/index/interfaces/ContainerMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-85] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`xAlign`](/pixi-vn/index/interfaces/ContainerMemory#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-70] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-86] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`y`](/pixi-vn/index/interfaces/ContainerMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-87] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`yAlign`](/pixi-vn/index/interfaces/ContainerMemory#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-71] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-58] ```ts 0 ``` #### Inherited from [#inherited-from-88] [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory).[`zIndex`](/pixi-vn/index/interfaces/ContainerMemory#zindex) # Interface: ImageContainerOptions (/pixi-vn/index/interfaces/ImageContainerOptions) Defined in: [src/canvas/interfaces/canvas-options.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L21) ## Extends [#extends] * [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions)\<`C`> ## Type Parameters [#type-parameters] ### C [#c] `C` *extends* [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) = [`ContainerChild`](/pixi-vn/index/type-aliases/ContainerChild) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`accessible`](/pixi-vn/index/interfaces/ContainerOptions#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`accessibleChildren`](/pixi-vn/index/interfaces/ContainerOptions#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`accessibleHint`](/pixi-vn/index/interfaces/ContainerOptions#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/ContainerOptions#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`accessibleText`](/pixi-vn/index/interfaces/ContainerOptions#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`accessibleTitle`](/pixi-vn/index/interfaces/ContainerOptions#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`accessibleType`](/pixi-vn/index/interfaces/ContainerOptions#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`align`](/pixi-vn/index/interfaces/ContainerOptions#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: [src/canvas/components/AnchorExtension.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnchorExtension.ts#L4) #### Inherited from [#inherited-from-9] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`anchor`](/pixi-vn/index/interfaces/ContainerOptions#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`angle`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#angle) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-8] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-11] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-12] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-13] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `C`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-14] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`children`](/pixi-vn/index/interfaces/ContainerOptions#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-9] ```ts false ``` #### Inherited from [#inherited-from-15] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`cullable`](/pixi-vn/index/interfaces/ContainerOptions#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-10] ```ts true ``` #### Inherited from [#inherited-from-16] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`cullableChildren`](/pixi-vn/index/interfaces/ContainerOptions#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-11] ```ts null ``` #### Inherited from [#inherited-from-17] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`cullArea`](/pixi-vn/index/interfaces/ContainerOptions#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-12] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-18] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`cursor`](/pixi-vn/index/classes/VideoSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-19] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`eventMode`](/pixi-vn/index/classes/VideoSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-20] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`filters`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-13] ```ts 0 ``` #### Inherited from [#inherited-from-21] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`height`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-22] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`hitArea`](/pixi-vn/index/classes/VideoSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-23] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactive`](/pixi-vn/index/classes/VideoSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-14] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-24] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactiveChildren`](/pixi-vn/index/classes/VideoSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-25] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-26] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`mask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onclick`](/pixi-vn/index/classes/VideoSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`oncontextmenu`](/pixi-vn/index/classes/VideoSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-29] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalmousemove`](/pixi-vn/index/classes/VideoSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalpointermove`](/pixi-vn/index/classes/VideoSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-31] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/VideoSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-32] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousedown`](/pixi-vn/index/classes/VideoSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseenter`](/pixi-vn/index/classes/VideoSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseleave`](/pixi-vn/index/classes/VideoSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousemove`](/pixi-vn/index/classes/VideoSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseout`](/pixi-vn/index/classes/VideoSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseover`](/pixi-vn/index/classes/VideoSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseup`](/pixi-vn/index/classes/VideoSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseupoutside`](/pixi-vn/index/classes/VideoSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointercancel`](/pixi-vn/index/classes/VideoSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerdown`](/pixi-vn/index/classes/VideoSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerenter`](/pixi-vn/index/classes/VideoSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerleave`](/pixi-vn/index/classes/VideoSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointermove`](/pixi-vn/index/classes/VideoSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerout`](/pixi-vn/index/classes/VideoSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerover`](/pixi-vn/index/classes/VideoSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointertap`](/pixi-vn/index/classes/VideoSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerup`](/pixi-vn/index/classes/VideoSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerupoutside`](/pixi-vn/index/classes/VideoSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-50] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-51] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightclick`](/pixi-vn/index/classes/VideoSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightdown`](/pixi-vn/index/classes/VideoSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightup`](/pixi-vn/index/classes/VideoSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightupoutside`](/pixi-vn/index/classes/VideoSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontap`](/pixi-vn/index/classes/VideoSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchcancel`](/pixi-vn/index/classes/VideoSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchend`](/pixi-vn/index/classes/VideoSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchendoutside`](/pixi-vn/index/classes/VideoSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchmove`](/pixi-vn/index/classes/VideoSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchstart`](/pixi-vn/index/classes/VideoSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onwheel`](/pixi-vn/index/classes/VideoSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-62] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-63] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-64] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`percentagePosition`](/pixi-vn/index/interfaces/ContainerOptions#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`percentageX`](/pixi-vn/index/interfaces/ContainerOptions#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`percentageY`](/pixi-vn/index/interfaces/ContainerOptions#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-67] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-68] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`position`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-50] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-69] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-61] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-70] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#rotation) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-62] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-71] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`scale`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-72] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-63] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-51] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-73] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`skew`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-64] ```ts container.sortableChildren = true; ``` #### Default [#default-52] ```ts false ``` #### Inherited from [#inherited-from-74] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-53] ```ts false @internal ``` #### Inherited from [#inherited-from-75] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-54] ```ts 0 ``` #### Example [#example-65] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-76] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`tabIndex`](/pixi-vn/index/interfaces/ContainerOptions#tabindex) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-66] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-55] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-77] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`tint`](/pixi-vn/index/interfaces/ContainerOptions#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-67] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-56] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-78] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`visible`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-68] ```ts new Container({ width: 100}); ``` #### Default [#default-57] ```ts 0 ``` #### Inherited from [#inherited-from-79] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`width`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-69] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-80] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`x`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-81] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`xAlign`](/pixi-vn/index/interfaces/ContainerOptions#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-70] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-82] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`y`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-83] [`ContainerOptions`](/pixi-vn/index/interfaces/ContainerOptions).[`yAlign`](/pixi-vn/index/interfaces/ContainerOptions#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-71] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-58] ```ts 0 ``` #### Inherited from [#inherited-from-84] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) # Interface: ImageSpriteMemory (/pixi-vn/index/interfaces/ImageSpriteMemory) Defined in: [src/canvas/interfaces/memory/ImageSpriteMemory.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ImageSpriteMemory.ts#L6) The memory of the image. It uses for save the state of the image. ## Extends [#extends] * [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory) ## Extended by [#extended-by] * [`VideoSpriteMemory`](/pixi-vn/index/interfaces/VideoSpriteMemory) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessible`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleHint`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleText`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleTitle`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleType`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`align`](/pixi-vn/index/interfaces/SpriteBaseMemory#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`alpha`](/pixi-vn/index/interfaces/SpriteBaseMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`anchor`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`angle`](/pixi-vn/index/interfaces/SpriteBaseMemory#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/SpriteBaseMemory#autogarbagecollect) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`blendMode`](/pixi-vn/index/interfaces/SpriteBaseMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`boundsArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/SpriteBaseMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`children`](/pixi-vn/index/interfaces/SpriteBaseMemory#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullable`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullableChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cursor`](/pixi-vn/index/interfaces/SpriteBaseMemory#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`eventMode`](/pixi-vn/index/interfaces/SpriteBaseMemory#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`filters`](/pixi-vn/index/interfaces/SpriteBaseMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`height`](/pixi-vn/index/interfaces/SpriteBaseMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`hitArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#hitarea) *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-24] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`index`](/pixi-vn/index/interfaces/SpriteBaseMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`interactive`](/pixi-vn/index/interfaces/SpriteBaseMemory#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`interactiveChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/SpriteBaseMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-28] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`label`](/pixi-vn/index/interfaces/SpriteBaseMemory#label) *** ### loadIsStarted [#loadisstarted] \> **loadIsStarted**: `boolean` Defined in: [src/canvas/interfaces/memory/ImageSpriteMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ImageSpriteMemory.ts#L7) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`mask`](/pixi-vn/index/interfaces/SpriteBaseMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-29] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onclick`](/pixi-vn/index/interfaces/SpriteBaseMemory#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-30] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`oncontextmenu`](/pixi-vn/index/interfaces/SpriteBaseMemory#oncontextmenu) *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-31] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onEvents`](/pixi-vn/index/interfaces/SpriteBaseMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobalmousemove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-33] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobalpointermove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-34] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobaltouchmove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-35] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmousedown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-36] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseenter`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-37] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseleave`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-38] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmousemove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-39] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseout`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-40] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseover`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-41] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-42] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-43] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointercancel`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-44] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerdown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-45] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerenter`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-46] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerleave`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-47] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointermove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-48] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerout`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-49] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerover`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-50] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointertap`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-51] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-52] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-53] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onRender`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-54] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightclick`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-55] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightdown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-56] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-57] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-58] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontap`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-59] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchcancel`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-60] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchend`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-61] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchendoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-62] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchmove`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-63] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchstart`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-64] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onwheel`](/pixi-vn/index/interfaces/SpriteBaseMemory#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-65] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-66] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-67] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`parentLabel`](/pixi-vn/index/interfaces/SpriteBaseMemory#parentlabel) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentagePosition`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-69] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentageX`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-70] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentageY`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-71] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pivot`](/pixi-vn/index/interfaces/SpriteBaseMemory#pivot) *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-72] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/SpriteBaseMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-73] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pixivnId`](/pixi-vn/index/interfaces/SpriteBaseMemory#pixivnid) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-74] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`position`](/pixi-vn/index/interfaces/SpriteBaseMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-75] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`renderable`](/pixi-vn/index/interfaces/SpriteBaseMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-76] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`rotation`](/pixi-vn/index/interfaces/SpriteBaseMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-77] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`roundPixels`](/pixi-vn/index/interfaces/SpriteBaseMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-78] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`scale`](/pixi-vn/index/interfaces/SpriteBaseMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-79] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`setMask`](/pixi-vn/index/interfaces/SpriteBaseMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-80] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`skew`](/pixi-vn/index/interfaces/SpriteBaseMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-81] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`sortableChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-82] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`sortDirty`](/pixi-vn/index/interfaces/SpriteBaseMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-83] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`tabIndex`](/pixi-vn/index/interfaces/SpriteBaseMemory#tabindex) *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-84] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`texture`](/pixi-vn/index/interfaces/SpriteBaseMemory#texture) *** ### textureData? [#texturedata] > `optional` **textureData?**: [`AssetMemory`](/pixi-vn/index/interfaces/AssetMemory) Defined in: [src/canvas/interfaces/memory/SpriteMemory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/SpriteMemory.ts#L12) #### Inherited from [#inherited-from-85] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`textureData`](/pixi-vn/index/interfaces/SpriteBaseMemory#texturedata) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-86] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`tint`](/pixi-vn/index/interfaces/SpriteBaseMemory#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-87] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`visible`](/pixi-vn/index/interfaces/SpriteBaseMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-88] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`width`](/pixi-vn/index/interfaces/SpriteBaseMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-89] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`x`](/pixi-vn/index/interfaces/SpriteBaseMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-90] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`xAlign`](/pixi-vn/index/interfaces/SpriteBaseMemory#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-91] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`y`](/pixi-vn/index/interfaces/SpriteBaseMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-92] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`yAlign`](/pixi-vn/index/interfaces/SpriteBaseMemory#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-93] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`zIndex`](/pixi-vn/index/interfaces/SpriteBaseMemory#zindex) # Interface: ImageSpriteOptions (/pixi-vn/index/interfaces/ImageSpriteOptions) Defined in: [src/canvas/interfaces/canvas-options.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L23) ## Extends [#extends] * [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions) ## Extended by [#extended-by] * [`VideoSpriteOptions`](/pixi-vn/index/interfaces/VideoSpriteOptions) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`accessible`](/pixi-vn/index/interfaces/SpriteOptions#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`accessibleChildren`](/pixi-vn/index/interfaces/SpriteOptions#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`accessibleHint`](/pixi-vn/index/interfaces/SpriteOptions#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/SpriteOptions#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`accessibleText`](/pixi-vn/index/interfaces/SpriteOptions#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`accessibleTitle`](/pixi-vn/index/interfaces/SpriteOptions#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`accessibleType`](/pixi-vn/index/interfaces/SpriteOptions#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`align`](/pixi-vn/index/interfaces/SpriteOptions#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`anchor`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`angle`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#autogarbagecollect) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`children`](/pixi-vn/index/interfaces/SpriteOptions#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`cullable`](/pixi-vn/index/interfaces/SpriteOptions#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`cullableChildren`](/pixi-vn/index/interfaces/SpriteOptions#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`cullArea`](/pixi-vn/index/interfaces/SpriteOptions#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`cursor`](/pixi-vn/index/classes/VideoSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`eventMode`](/pixi-vn/index/classes/VideoSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`filters`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`height`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`hitArea`](/pixi-vn/index/classes/VideoSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-24] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactive`](/pixi-vn/index/classes/VideoSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-25] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactiveChildren`](/pixi-vn/index/classes/VideoSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-26] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`mask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onclick`](/pixi-vn/index/classes/VideoSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`oncontextmenu`](/pixi-vn/index/classes/VideoSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalmousemove`](/pixi-vn/index/classes/VideoSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalpointermove`](/pixi-vn/index/classes/VideoSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-32] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/VideoSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousedown`](/pixi-vn/index/classes/VideoSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseenter`](/pixi-vn/index/classes/VideoSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseleave`](/pixi-vn/index/classes/VideoSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousemove`](/pixi-vn/index/classes/VideoSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseout`](/pixi-vn/index/classes/VideoSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseover`](/pixi-vn/index/classes/VideoSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseup`](/pixi-vn/index/classes/VideoSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseupoutside`](/pixi-vn/index/classes/VideoSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointercancel`](/pixi-vn/index/classes/VideoSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerdown`](/pixi-vn/index/classes/VideoSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerenter`](/pixi-vn/index/classes/VideoSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerleave`](/pixi-vn/index/classes/VideoSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointermove`](/pixi-vn/index/classes/VideoSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerout`](/pixi-vn/index/classes/VideoSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerover`](/pixi-vn/index/classes/VideoSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointertap`](/pixi-vn/index/classes/VideoSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerup`](/pixi-vn/index/classes/VideoSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerupoutside`](/pixi-vn/index/classes/VideoSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-51] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightclick`](/pixi-vn/index/classes/VideoSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightdown`](/pixi-vn/index/classes/VideoSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightup`](/pixi-vn/index/classes/VideoSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightupoutside`](/pixi-vn/index/classes/VideoSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontap`](/pixi-vn/index/classes/VideoSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchcancel`](/pixi-vn/index/classes/VideoSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchend`](/pixi-vn/index/classes/VideoSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchendoutside`](/pixi-vn/index/classes/VideoSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchmove`](/pixi-vn/index/classes/VideoSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchstart`](/pixi-vn/index/classes/VideoSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onwheel`](/pixi-vn/index/classes/VideoSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-63] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-64] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`percentagePosition`](/pixi-vn/index/interfaces/SpriteOptions#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`percentageX`](/pixi-vn/index/interfaces/SpriteOptions#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`percentageY`](/pixi-vn/index/interfaces/SpriteOptions#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-68] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-69] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`position`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-70] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-71] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-72] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`roundPixels`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-73] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`scale`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-74] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-75] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`skew`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-76] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-77] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-78] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`tabIndex`](/pixi-vn/index/interfaces/SpriteOptions#tabindex) *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-79] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`texture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#texture) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-80] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`tint`](/pixi-vn/index/interfaces/SpriteOptions#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-81] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`visible`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-82] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`width`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-83] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`x`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-84] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`xAlign`](/pixi-vn/index/interfaces/SpriteOptions#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-85] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`y`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] [`SpriteOptions`](/pixi-vn/index/interfaces/SpriteOptions).[`yAlign`](/pixi-vn/index/interfaces/SpriteOptions#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-87] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) # Interface: IrisInOutProps (/pixi-vn/index/interfaces/IrisInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:102](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L102) Shared options for the mask-based reveal/conceal transitions ([WipeInOutProps](/pixi-vn/index/interfaces/WipeInOutProps), IrisInOutProps, [SplitInOutProps](/pixi-vn/index/interfaces/SplitInOutProps)). ## Extends [#extends] * [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `MaskTransitionProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/MaskTransitionProps#animateoldcomponentout) *** ### aspect? [#aspect] \> `optional` **aspect?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:112](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L112) The aspect ratio (width / height) of the iris shape. `1` (the default) is a circle. #### Default [#default-1] ```ts 1 ``` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/MaskTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounce`](/pixi-vn/index/interfaces/MaskTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/MaskTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/MaskTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-6] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/MaskTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`damping`](/pixi-vn/index/interfaces/MaskTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`delay`](/pixi-vn/index/interfaces/MaskTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/MaskTransitionProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"expand"` | `"contract"` Defined in: [src/canvas/interfaces/transition-props.ts:119](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L119) `"expand"`: the image is seen *through* the circle (`irisIn` grows it, `irisOut` shrinks it). `"contract"`: the image is seen *around* the circle, which is a hole (`irisIn` shrinks it until the whole image is shown, `irisOut` grows it until the image is gone). #### Default [#default-4] ```ts "expand" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`driver`](/pixi-vn/index/interfaces/MaskTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`duration`](/pixi-vn/index/interfaces/MaskTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`ease`](/pixi-vn/index/interfaces/MaskTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/MaskTransitionProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`from`](/pixi-vn/index/interfaces/MaskTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`inherit`](/pixi-vn/index/interfaces/MaskTransitionProps#inherit) *** ### invert? [#invert] \> `optional` **invert?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L85) If true, the effect is inverted: a "reveal" mask conceals instead, and vice versa. #### Default [#default-5] ```ts false ``` #### Inherited from [#inherited-from-16] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`invert`](/pixi-vn/index/interfaces/MaskTransitionProps#invert) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`isSync`](/pixi-vn/index/interfaces/MaskTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`mass`](/pixi-vn/index/interfaces/MaskTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`max`](/pixi-vn/index/interfaces/MaskTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`min`](/pixi-vn/index/interfaces/MaskTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/MaskTransitionProps#modifytarget) *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: [src/canvas/interfaces/transition-props.ts:107](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L107) The origin of the iris, normalized to the component's own bounds (`0` to `1` on each axis). #### Default [#default-7] ```ts { x: 0.5, y: 0.5 } ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`path`](/pixi-vn/index/interfaces/MaskTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`power`](/pixi-vn/index/interfaces/MaskTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/MaskTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeat`](/pixi-vn/index/interfaces/MaskTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/MaskTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/MaskTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/MaskTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/MaskTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/MaskTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/MaskTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/MaskTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`startTime`](/pixi-vn/index/interfaces/MaskTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/MaskTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `MaskTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-36] `MaskTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/MaskTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`times`](/pixi-vn/index/interfaces/MaskTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`type`](/pixi-vn/index/interfaces/MaskTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`velocity`](/pixi-vn/index/interfaces/MaskTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/MaskTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`when`](/pixi-vn/index/interfaces/MaskTransitionProps#when) # Interface: LabelProps (/pixi-vn/index/interfaces/LabelProps) Defined in: [src/narration/interfaces/LabelProps.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/LabelProps.ts#L3) ## Type Parameters [#type-parameters] ### T [#t] `T` ### StepIdType [#stepidtype] `StepIdType` = `number` ## Properties [#properties] ### onLoadingLabel? [#onloadinglabel] \> `optional` **onLoadingLabel?**: (`stepId`, `label`) => `void` | `Promise`\<`void`> Defined in: [src/narration/interfaces/LabelProps.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/LabelProps.ts#L44) Is a function that will be executed in [onStepStart](#onstepstart) if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the [narration.openedLabels](/pixi-vn/index/interfaces/NarrationManagerInterface#openedlabels). It is useful for example to make sure all images used have been cached #### Parameters [#parameters] ##### stepId [#stepid] `StepIdType` The index of the `step` being executed ##### label [#label] `T` The `label` being executed #### Returns [#returns] `void` | `Promise`\<`void`> #### Example [#example] ```ts title="content/labels/start.label.ts" newLabel("start", [], { onLoadingLabel: async (stepId, label) => { await Assets.load('path/to/image1.png') await Assets.load('path/to/image2.png') } }) ``` *** ### onStepEnd? [#onstepend] \> `optional` **onStepEnd?**: (`stepId`, `label`) => `void` | `Promise`\<`void`> Defined in: [src/narration/interfaces/LabelProps.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/LabelProps.ts#L65) A function executed after each `step`. See more \here. #### Parameters [#parameters-1] ##### stepId [#stepid-1] `StepIdType` The index of the `step` that ended ##### label [#label-1] `T` The `label` containing the `step` #### Returns [#returns-1] `void` | `Promise`\<`void`> #### Example [#example-1] ```ts const startLabel = newLabel("start", [ async () => { await showImage("image1", "path/to/image1.png") await showImage("image2", "path/to/image2.png") } ], { onLoadingLabel: async (stepIndex, label) => { await Assets.load("path/to/image1.png") await Assets.load("path/to/image2.png") } }) ``` *** ### onStepStart? [#onstepstart] \> `optional` **onStepStart?**: (`stepId`, `label`) => `void` | `Promise`\<`void`> Defined in: [src/narration/interfaces/LabelProps.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/LabelProps.ts#L25) A function executed before each `step`. #### Parameters [#parameters-2] ##### stepId [#stepid-2] `StepIdType` The index of the `step` being executed ##### label [#label-2] `T` The `label` containing the `step` #### Returns [#returns-2] `void` | `Promise`\<`void`> #### Example [#example-2] ```ts const startLabel = newLabel("start", [ () => { narration.dialogue = "Step 1" }, () => { narration.dialogue = "Step 2" } ], { onStepStart: (stepIndex, label) => { console.log(`Step ${stepIndex} started`) } }) ``` # Interface: ListenerExtension (/pixi-vn/index/interfaces/ListenerExtension) Defined in: [src/canvas/components/ListenerExtension.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L37) ## Properties [#properties] ### on [#on] \> **on**: \<`T`>(`event`, `fn`, `context?`) => `this` Defined in: [src/canvas/components/ListenerExtension.ts:52](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L52) Add a listener for a given event. Add a listener for a given event. #### Type Parameters [#type-parameters] ##### T [#t] `T` *extends* keyof ContainerEvents | keyof AnyEvent #### Parameters [#parameters] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns] `this` #### Example [#example] ```ts export class Events { \@eventDecorator() static eventExample(event: FederatedEvent, component: Sprite) { // event code here } } sprite.on("pointerdown", Events.eventExample); ``` *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L53) # Interface: ListenerExtensionMemory (/pixi-vn/index/interfaces/ListenerExtensionMemory) Defined in: [src/canvas/components/ListenerExtension.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L29) ## Extended by [#extended-by] * [`ContainerMemory`](/pixi-vn/index/interfaces/ContainerMemory) * [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory) * [`TextMemory`](/pixi-vn/index/interfaces/TextMemory) ## Properties [#properties] ### onEvents? [#onevents] \> `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) # Interface: MaskTransitionProps (/pixi-vn/index/interfaces/MaskTransitionProps) Defined in: [src/canvas/interfaces/transition-props.ts:77](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L77) Shared options for the mask-based reveal/conceal transitions ([WipeInOutProps](/pixi-vn/index/interfaces/WipeInOutProps), [IrisInOutProps](/pixi-vn/index/interfaces/IrisInOutProps), [SplitInOutProps](/pixi-vn/index/interfaces/SplitInOutProps)). ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Extended by [#extended-by] * [`IrisInOutProps`](/pixi-vn/index/interfaces/IrisInOutProps) * [`SplitInOutProps`](/pixi-vn/index/interfaces/SplitInOutProps) * [`WipeInOutProps`](/pixi-vn/index/interfaces/WipeInOutProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### invert? [#invert] \> `optional` **invert?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L85) If true, the effect is inverted: a "reveal" mask conceals instead, and vice versa. #### Default [#default-3] ```ts false ``` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-5] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Interface: MediaInterface (/pixi-vn/index/interfaces/MediaInterface) Defined in: [src/sound/interfaces/MediaInterface.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/MediaInterface.ts#L3) ## Extends [#extends] * `Pick`\<`Player`, `"blockTime"` | `"disposed"` | `"loaded"` | `"loop"` | `"loopEnd"` | `"loopStart"` | `"mute"` | `"now"` | `"playbackRate"` | `"reverse"` | `"restart"` | `"start"` | `"stop"` | `"chain"` | `"disconnect"` | `"volume"` | `"state"`> ## Properties [#properties] ### blockTime [#blocktime] \> **blockTime**: `number` Defined in: node_modules/tone/build/esm/core/context/ToneWithContext.d.ts:57 #### Inherited from [#inherited-from] `Pick.blockTime` *** ### disposed [#disposed] \> **disposed**: `boolean` Defined in: node_modules/tone/build/esm/core/Tone.d.ts:52 #### Inherited from [#inherited-from-1] `Pick.disposed` *** ### loaded [#loaded] \> **loaded**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:189 #### Inherited from [#inherited-from-2] `Pick.loaded` *** ### loop [#loop] \> **loop**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:163 #### Inherited from [#inherited-from-3] `Pick.loop` *** ### loopEnd [#loopend] \> **loopEnd**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:149 #### Inherited from [#inherited-from-4] `Pick.loopEnd` *** ### loopStart [#loopstart] \> **loopStart**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:144 #### Inherited from [#inherited-from-5] `Pick.loopStart` *** ### mute [#mute] \> **mute**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:97 #### Inherited from [#inherited-from-6] `Pick.mute` *** ### ~~muted~~ [#muted] \> **muted**: `boolean` Defined in: [src/sound/interfaces/MediaInterface.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/MediaInterface.ts#L31) #### Deprecated [#deprecated] Use [mute](#mute) instead. *** ### paused [#paused] \> **paused**: `boolean` Defined in: [src/sound/interfaces/MediaInterface.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/MediaInterface.ts#L27) Whether the sound is currently paused. *** ### playbackRate [#playbackrate] \> **playbackRate**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:174 #### Inherited from [#inherited-from-7] `Pick.playbackRate` *** ### reverse [#reverse] \> **reverse**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:184 #### Inherited from [#inherited-from-8] `Pick.reverse` *** ### ~~speed~~ [#speed] \> **speed**: `number` Defined in: [src/sound/interfaces/MediaInterface.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/MediaInterface.ts#L35) #### Deprecated [#deprecated-1] Use [playbackRate](#playbackrate) instead. *** ### state [#state] \> **state**: `BasicPlaybackState` Defined in: node_modules/tone/build/esm/source/Source.d.ts:89 #### Inherited from [#inherited-from-9] `Pick.state` *** ### volume [#volume] \> **volume**: `Param`\<`"decibels"`> Defined in: node_modules/tone/build/esm/source/Source.d.ts:49 The volume of the output in decibels. #### Example [#example] ```ts const source = new Tone.PWMOscillator().toDestination(); source.volume.value = -6; ``` #### Inherited from [#inherited-from-10] `Pick.volume` ## Methods [#methods] ### chain() [#chain] \> **chain**(...`nodes`): `this` Defined in: node_modules/tone/build/esm/core/context/ToneAudioNode.d.ts:125 Connect the output of this node to the rest of the nodes in series. #### Parameters [#parameters] ##### nodes [#nodes] ...`InputNode`\[] #### Returns [#returns] `this` #### Example [#example-1] ```ts const player = new Tone.Player("https://tonejs.github.io/audio/drum-samples/handdrum-loop.mp3"); player.autostart = true; const filter = new Tone.AutoFilter(4).start(); const distortion = new Tone.Distortion(0.5); // connect the player to the filter, distortion and then to the master output player.chain(filter, distortion, Tone.Destination); ``` #### Inherited from [#inherited-from-11] `Pick.chain` *** ### disconnect() [#disconnect] \> **disconnect**(`destination?`, `outputNum?`, `inputNum?`): `this` Defined in: node_modules/tone/build/esm/core/context/ToneAudioNode.d.ts:114 disconnect the output #### Parameters [#parameters-1] ##### destination? [#destination] `InputNode` ##### outputNum? [#outputnum] `number` ##### inputNum? [#inputnum] `number` #### Returns [#returns-1] `this` #### Inherited from [#inherited-from-12] `Pick.disconnect` *** ### now() [#now] \> **now**(): `number` Defined in: node_modules/tone/build/esm/core/context/ToneWithContext.d.ts:39 Return the current time of the Context clock plus the lookAhead. #### Returns [#returns-2] `number` #### Example [#example-2] ```ts setInterval(() => { console.log(Tone.now()); }, 100); ``` #### Inherited from [#inherited-from-13] `Pick.now` *** ### restart() [#restart] \> **restart**(`time?`, `offset?`, `duration?`): `this` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:114 Stop and then restart the player from the beginning (or offset) #### Parameters [#parameters-2] ##### time? [#time] `number` When the player should start. ##### offset? [#offset] `Time` The offset from the beginning of the sample to start at. ##### duration? [#duration] `Time` How long the sample should play. If no duration is given, it will default to the full length of the sample (minus any offset) #### Returns [#returns-3] `this` #### Inherited from [#inherited-from-14] `Pick.restart` *** ### start() [#start] \> **start**(`time?`, `offset?`, `duration?`): `this` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:98 Play the buffer at the given startTime. Optionally add an offset and/or duration which will play the buffer from a position within the buffer for the given duration. #### Parameters [#parameters-3] ##### time? [#time-1] `Time` When the player should start. ##### offset? [#offset-1] `Time` The offset from the beginning of the sample to start at. ##### duration? [#duration-1] `Time` How long the sample should play. If no duration is given, it will default to the full length of the sample (minus any offset) #### Returns [#returns-4] `this` #### Inherited from [#inherited-from-15] `Pick.start` *** ### stop() [#stop] \> **stop**(`time?`): `this` Defined in: node_modules/tone/build/esm/source/Source.d.ts:125 Stop the source at the specified time. If no time is given, stop the source now. #### Parameters [#parameters-4] ##### time? [#time-2] `Time` When the source should be stopped. #### Returns [#returns-5] `this` #### Example [#example-3] ```ts const source = new Tone.Oscillator().toDestination(); source.start(); source.stop("+0.5"); // stops the source 0.5 seconds from now ``` #### Inherited from [#inherited-from-16] `Pick.stop` # Interface: MoveInOutProps (/pixi-vn/index/interfaces/MoveInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L30) Shared by every `xIn` transition that can replace an existing component (same alias): whether the replaced component leaves with its own out animation, started together with the new component's in. ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: [src/canvas/interfaces/transition-props.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L38) The direction of the movement. #### Default [#default-3] ```ts "right" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### motionBlur? [#motionblur] \> `optional` **motionBlur?**: `number` | `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L44) Adds a motion-blur trail along the movement, ramping up mid-move and back to sharp at the end. `true` uses a 40px trail; a number sets the trail length (pixels). #### Default [#default-5] ```ts false ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Interface: NarrationChoicesInterface (/pixi-vn/index/interfaces/NarrationChoicesInterface) Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationChoicesInterface.ts#L5) ## Accessors [#accessors] ### list [#list] #### Get Signature [#get-signature] \> **get** **list**(): [`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface)\[] | `undefined` Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationChoicesInterface.ts#L9) The choices to be shown in the game. ##### Returns [#returns] [`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface)\[] | `undefined` #### Set Signature [#set-signature] \> **set** **list**(`data`): `void` Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationChoicesInterface.ts#L14) The choices to be shown in the game. ##### Throws [#throws] when a choice contains functions or class instances that cannot be serialized to JSON. ##### Parameters [#parameters] ###### data [#data] [`StoredChoiceInterface`](/pixi-vn/index/type-aliases/StoredChoiceInterface)\[] | `undefined` ##### Returns [#returns-1] `void` ## Methods [#methods] ### select() [#select] \> **select**\<`T`>(`item`, `props`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/interfaces/NarrationChoicesInterface.ts:36](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationChoicesInterface.ts#L36) Select a choice from the choice menu, and close the choice menu. #### Type Parameters [#type-parameters] ##### T [#t] `T` *extends* `object` #### Parameters [#parameters-1] ##### item [#item] [`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface) The choice item selected by the player. ##### props [#props] [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> The props to pass to the label. #### Returns [#returns-2] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> StepLabelResultType or undefined. #### Throws [#throws-1] when the choice type is not `"call"`, `"jump"`, or `"close"`. #### Example [#example] ```ts narration.choices.select(item, { navigate: navigate, // your props ...item.props }) .then(() => { // your code }) .catch((e) => { // your code }) ``` # Interface: NarrationGameState (/pixi-vn/index/interfaces/NarrationGameState) Defined in: [src/narration/interfaces/NarrationGameState.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationGameState.ts#L6) Interface exported step data ## Properties [#properties] ### openedLabels [#openedlabels] \> **openedLabels**: [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/narration/interfaces/NarrationGameState.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationGameState.ts#L7) *** ### stepCounter [#stepcounter] \> **stepCounter**: `number` Defined in: [src/narration/interfaces/NarrationGameState.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationGameState.ts#L8) # Interface: NarrationHistory (/pixi-vn/index/interfaces/NarrationHistory) Defined in: [src/narration/interfaces/NarrationHistory.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationHistory.ts#L4) ## Properties [#properties] ### choices? [#choices] \> `optional` **choices?**: [`HistoryChoiceMenuOption`](/pixi-vn/index/type-aliases/HistoryChoiceMenuOption)\[] Defined in: [src/narration/interfaces/NarrationHistory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationHistory.ts#L12) List of choices asked of the player *** ### dialogue? [#dialogue] \> `optional` **dialogue?**: [`DialogueInterface`](/pixi-vn/index/interfaces/DialogueInterface) Defined in: [src/narration/interfaces/NarrationHistory.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationHistory.ts#L8) Dialogue to be shown in the game *** ### inputValue? [#inputvalue] \> `optional` **inputValue?**: [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) Defined in: [src/narration/interfaces/NarrationHistory.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationHistory.ts#L24) The input value of the player *** ### openedLabelsNumber? [#openedlabelsnumber] \> `optional` **openedLabelsNumber?**: `number` Defined in: [src/narration/interfaces/NarrationHistory.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationHistory.ts#L33) The number of labels that were opened (via [NarrationManagerInterface.call](/pixi-vn/index/interfaces/NarrationManagerInterface#call) or [NarrationManagerInterface.jump](/pixi-vn/index/interfaces/NarrationManagerInterface#jump)) when this step ran. This is the size of the label call-stack at this step, and can be used to split a page into paragraphs: every time this number increases compared to the previous step, a `call` opened a new paragraph. A `jump` instead starts a whole new page, so it is already reflected by [HistoryManagerInterface.currentLabelHistory](/pixi-vn/index/interfaces/HistoryManagerInterface#currentlabelhistory) starting over. *** ### playerMadeChoice? [#playermadechoice] \> `optional` **playerMadeChoice?**: `boolean` Defined in: [src/narration/interfaces/NarrationHistory.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationHistory.ts#L16) The player made a choice *** ### stepIndex [#stepindex] \> **stepIndex**: `number` Defined in: [src/narration/interfaces/NarrationHistory.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationHistory.ts#L20) The index of the step in the history. # Interface: NarrationInputInterface (/pixi-vn/index/interfaces/NarrationInputInterface) Defined in: [src/narration/interfaces/NarrationInputInterface.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationInputInterface.ts#L4) ## Properties [#properties] ### isRequired [#isrequired] \> `readonly` **isRequired**: `boolean` Defined in: [src/narration/interfaces/NarrationInputInterface.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationInputInterface.ts#L12) If true, the player must enter a value. *** ### type [#type] \> `readonly` **type**: `string` | `undefined` Defined in: [src/narration/interfaces/NarrationInputInterface.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationInputInterface.ts#L16) Returns the type of input prompt requested. *** ### value [#value] \> **value**: [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) Defined in: [src/narration/interfaces/NarrationInputInterface.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationInputInterface.ts#L8) The input value to be inserted by the player. ## Methods [#methods] ### removeRequest() [#removerequest] \> **removeRequest**(): `void` Defined in: [src/narration/interfaces/NarrationInputInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationInputInterface.ts#L26) Remove the input request. #### Returns [#returns] `void` *** ### request() [#request] \> **request**(`info?`, `defaultValue?`): `void` Defined in: [src/narration/interfaces/NarrationInputInterface.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationInputInterface.ts#L22) Returns `true` if the player must enter a value. #### Parameters [#parameters] ##### info? [#info] `Omit`\<[`InputInfo`](/pixi-vn/index/type-aliases/InputInfo), `"isRequired"`> The input value to be inserted by the player. ##### defaultValue? [#defaultvalue] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The default value to be inserted. #### Returns [#returns-1] `void` # Interface: NarrationLabelsInterface (/pixi-vn/index/interfaces/NarrationLabelsInterface) Defined in: [src/narration/interfaces/NarrationLabelsInterface.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationLabelsInterface.ts#L3) ## Properties [#properties] ### current [#current] \> `readonly` **current**: [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`> | `undefined` Defined in: [src/narration/interfaces/NarrationLabelsInterface.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationLabelsInterface.ts#L11) currentLabel is the current label that occurred during the progression of the steps. *** ### opened [#opened] \> `readonly` **opened**: [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/narration/interfaces/NarrationLabelsInterface.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationLabelsInterface.ts#L7) The stack of the opened labels. ## Methods [#methods] ### closeAll() [#closeall] \> **closeAll**(): `void` Defined in: [src/narration/interfaces/NarrationLabelsInterface.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationLabelsInterface.ts#L19) Close all labels and add them to the history. **Attention: This method can cause an unhandled game ending.** #### Returns [#returns] `void` *** ### closeCurrent() [#closecurrent] \> **closeCurrent**(): `void` Defined in: [src/narration/interfaces/NarrationLabelsInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationLabelsInterface.ts#L15) Close the current label and add it to the history. #### Returns [#returns-1] `void` # Interface: NarrationManagerInterface (/pixi-vn/index/interfaces/NarrationManagerInterface) Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L20) ## Properties [#properties] ### ~~alreadyCurrentStepMadeChoices~~ [#alreadycurrentstepmadechoices] \> `readonly` **alreadyCurrentStepMadeChoices**: `number`\[] | `undefined` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:92](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L92) Get the choices already made in the current step. **Attention**: if the choice step index is edited or the code of choice step is edited, the result will be wrong. #### Returns [#returns] The choices already made in the current step. If there are no choices, it will return undefined. #### Deprecated [#deprecated] Use [queries](#queries).alreadyCurrentStepMadeChoices instead. *** ### canContinue [#cancontinue] \> `readonly` **canContinue**: `boolean` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:139](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L139) Return if can go to the next step. It's `false` when: * A `step` is running * The player must "make a choice" * The player must "enter a value" #### Returns [#returns-1] True if can go to the next step. *** ### continue [#continue] \> **continue**: (`props`, `options?`) => `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:165](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L165) Execute the next step and add it to the history. If a step is already running, it will put the request in the queue, and when the step is finished, it will execute the next step. #### Parameters [#parameters] ##### props [#props] `StepLabelProps` The props to pass to the step. ##### options? [#options] The options. ###### runNow? [#runnow] `boolean` If true, ignore the running step, ignore the choice menu/required input and run the next step immediately. ###### steps? [#steps] `number` The number of steps to advance. Must be a valid finite number greater than 0. If NaN, Infinity, or a value less than or equal to 0 is provided, the implementation will emit a warning and return early without advancing steps. **Default** ```ts 1 ``` #### Returns [#returns-2] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> StepLabelResultType or undefined. #### Example [#example] ```ts function nextOnClick() { setLoading(true) narration.continue(yourParams) .then((result) => { setUpdate((p) => p + 1) setLoading(false) if (result) { // your code } }) .catch((e) => { setLoading(false) console.error(e) }) } ``` *** ### ~~currentLabel~~ [#currentlabel] \> `readonly` **currentLabel**: [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`> | `undefined` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L65) currentLabel is the current label that occurred during the progression of the steps. #### Deprecated [#deprecated-1] Use [labels](#labels).current instead. *** ### currentStepTimesCounter [#currentsteptimescounter] \> **currentStepTimesCounter**: `number` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L31) Counter of execution times of the current step. Current execution is also included. Starts from 1. **Attention**: if the step index is edited or the code of step is edited, the counter will be reset. You can restart the counter in this way: ```ts narration.currentStepTimesCounter = 0 ``` *** ### dialogGlue [#dialogglue] \> **dialogGlue**: `boolean` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:294](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L294) If true, the next dialogue text will be added to the current dialogue text. *** ### input [#input] \> `readonly` **input**: [`NarrationInputInterface`](/pixi-vn/index/interfaces/NarrationInputInterface) Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:120](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L120) Namespace for operations on the input requested to the player. *** ### ~~inputType~~ [#inputtype] \> `readonly` **inputType**: `string` | `undefined` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:309](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L309) Returns the type of input prompt requested. #### Deprecated [#deprecated-2] Use [input](#input).type instead. *** ### ~~inputValue~~ [#inputvalue] \> **inputValue**: [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:299](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L299) The input value to be inserted by the player. #### Deprecated [#deprecated-3] Use [input](#input).value instead. *** ### ~~isCurrentStepAlreadyOpened~~ [#iscurrentstepalreadyopened] \> `readonly` **isCurrentStepAlreadyOpened**: `boolean` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:98](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L98) Check if the current step is already completed. #### Returns [#returns-3] True if the current step is already completed. #### Deprecated [#deprecated-4] Use [queries](#queries).isCurrentStepAlreadyOpened instead. *** ### ~~isRequiredInput~~ [#isrequiredinput] \> `readonly` **isRequiredInput**: `boolean` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:304](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L304) If true, the player must enter a value. #### Deprecated [#deprecated-5] Use [input](#input).isRequired instead. *** ### labels [#labels] \> `readonly` **labels**: [`NarrationLabelsInterface`](/pixi-vn/index/interfaces/NarrationLabelsInterface) Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:124](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L124) Namespace for operations on the opened labels. *** ### ~~openedLabels~~ [#openedlabels] \> `readonly` **openedLabels**: [`OpenedLabel`](/pixi-vn/index/interfaces/OpenedLabel)\[] Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:60](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L60) The stack of the opened labels. #### Deprecated [#deprecated-6] Use [labels](#labels).opened instead. *** ### queries [#queries] \> `readonly` **queries**: [`NarrationQueriesInterface`](/pixi-vn/index/interfaces/NarrationQueriesInterface) Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L128) Namespace for queries about the current state of the narration. *** ### stepCounter [#stepcounter] \> `readonly` **stepCounter**: `number` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:55](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L55) This counter corresponds to the total number of steps that have been executed so far. **Not is the history.stepsHistory.length - 1.** ## Accessors [#accessors] ### choices [#choices] #### Get Signature [#get-signature] \> **get** **choices**(): [`NarrationChoicesInterface`](/pixi-vn/index/interfaces/NarrationChoicesInterface) Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:275](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L275) Namespace for operations on the choices to be shown in the game. ##### Returns [#returns-4] [`NarrationChoicesInterface`](/pixi-vn/index/interfaces/NarrationChoicesInterface) #### Set Signature [#set-signature] \> **set** **choices**(`data`): `void` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:290](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L290) Shortcut for [NarrationChoicesInterface.list](/pixi-vn/index/interfaces/NarrationChoicesInterface#list). ##### Throws [#throws] when a choice contains functions or class instances that cannot be serialized to JSON. ##### Example [#example-1] ```ts narration.choices = [ newChoiceOption("Events Test", EventsTestLabel, {}), newChoiceOption("Show Image Test", ShowImageTest, { image: "imageId" }, "call"), newChoiceOption("Ticker Test", TickerTestLabel, {}), newChoiceOption("Tinting Test", TintingTestLabel, {}, "jump"), newChoiceOption("Base Canvas Element Test", BaseCanvasElementTestLabel, {}) ] ``` ##### Parameters [#parameters-1] ###### data [#data] [`StoredChoiceInterface`](/pixi-vn/index/type-aliases/StoredChoiceInterface)\[] | `undefined` ##### Returns [#returns-5] `void` *** ### dialogue [#dialogue] #### Get Signature [#get-signature-1] \> **get** **dialogue**(): [`DialogueInterface`](/pixi-vn/index/interfaces/DialogueInterface) | `undefined` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:266](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L266) Dialogue to be shown in the game ##### Returns [#returns-6] [`DialogueInterface`](/pixi-vn/index/interfaces/DialogueInterface) | `undefined` #### Set Signature [#set-signature-1] \> **set** **dialogue**(`props`): `void` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:271](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L271) Dialogue to be shown in the game ##### Throws [#throws-1] when the dialogue contains functions or class instances that cannot be serialized to JSON. ##### Parameters [#parameters-2] ###### props [#props-1] `string` | `string`\[] | [`DialogueInterface`](/pixi-vn/index/interfaces/DialogueInterface) | `undefined` ##### Returns [#returns-7] `void` ## Methods [#methods] ### addCurrentStepToHistory() [#addcurrentsteptohistory] \> **addCurrentStepToHistory**(): `Promise`\<`void`> Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:116](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L116) Save the current step to the history. #### Returns [#returns-8] `Promise`\<`void`> A promise that resolves once the history is saved and the step counter is updated. *** ### call() [#call] \> **call**\<`T`>(`label`, `props`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:202](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L202) Execute the label, add the label to the history and execute the next step of the label. #### Type Parameters [#type-parameters] ##### T [#t] `T` *extends* `object` = \{ } #### Parameters [#parameters-3] ##### label [#label] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> The label to execute or the id of the label ##### props [#props-2] [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> The props to pass to the label. #### Returns [#returns-9] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> StepLabelResultType or undefined. #### Throws [#throws-2] when the label is not found in the registered labels. #### Examples [#examples] ```ts narration.call(startLabel, yourParams).then((result) => { if (result) { // your code } }) ``` ```ts // if you use it in a step label you should return the result. return narration.call(startLabel).then((result) => { return result }) ``` *** ### clear() [#clear] \> **clear**(): `void` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:326](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L326) Clear all narration data #### Returns [#returns-10] `void` *** ### ~~closeAllLabels()~~ [#closealllabels] \> **closeAllLabels**(): `void` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:79](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L79) Close all labels and add them to the history. **Attention: This method can cause an unhandled game ending.** #### Returns [#returns-11] `void` #### Deprecated [#deprecated-7] Use [labels](#labels).closeAll instead. *** ### ~~closeCurrentLabel()~~ [#closecurrentlabel] \> **closeCurrentLabel**(): `void` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:74](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L74) Close the current label and add it to the history. #### Returns [#returns-12] `void` #### Deprecated [#deprecated-8] Use [labels](#labels).closeCurrent instead. *** ### export() [#export] \> **export**(): [`NarrationGameState`](/pixi-vn/index/interfaces/NarrationGameState) Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:334](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L334) Export the narration to an object. #### Returns [#returns-13] [`NarrationGameState`](/pixi-vn/index/interfaces/NarrationGameState) The narration in an object. *** ### getRandomNumber() [#getrandomnumber] \> **getRandomNumber**(`min`, `max`, `options?`): `number` | `undefined` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:39](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L39) Get a random number between min and max. #### Parameters [#parameters-4] ##### min [#min] `number` The minimum number. ##### max [#max] `number` The maximum number. ##### options? [#options-1] The options. ###### onceOnly? [#onceonly] `boolean` If `true`, the number will be generated only once for the current `step` of the `label` (default: `false`). Note: `min` and `max` affect the storage of already generated numbers. **Default** ```ts false ``` #### Returns [#returns-14] `number` | `undefined` The random number or undefined. If options.onceonly is true and all numbers between min and max have already been generated, it will return undefined. *** ### ~~getTimesChoiceMade()~~ [#gettimeschoicemade] \> **getTimesChoiceMade**(`index`): `number` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:111](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L111) Get times a choice has been made in the current step. #### Parameters [#parameters-5] ##### index [#index] `number` The index of the choice. #### Returns [#returns-15] `number` The number of times the choice has been made. #### Deprecated [#deprecated-9] Use [queries](#queries).timesChoiceMade instead. *** ### ~~getTimesLabelOpened()~~ [#gettimeslabelopened] \> **getTimesLabelOpened**(`label`): `number` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:104](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L104) Get times a label has been opened #### Parameters [#parameters-6] ##### label [#label-1] `string` #### Returns [#returns-16] `number` times a label has been opened #### Deprecated [#deprecated-10] Use [queries](#queries).timesLabelOpened instead. *** ### ~~isLabelAlreadyCompleted()~~ [#islabelalreadycompleted] \> **isLabelAlreadyCompleted**(`label`): `boolean` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L86) Check if the label is already completed. #### Parameters [#parameters-7] ##### label [#label-2] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`> The label to check. #### Returns [#returns-17] `boolean` True if the label is already completed. #### Deprecated [#deprecated-11] Use [queries](#queries).isLabelAlreadyCompleted instead. *** ### jump() [#jump] \> **jump**\<`T`>(`label`, `props`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:228](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L228) Execute the label, replace the current label in the history with the new label and execute the next step of the label. #### Type Parameters [#type-parameters-1] ##### T [#t-1] `T` *extends* `object` #### Parameters [#parameters-8] ##### label [#label-3] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> The label to execute. ##### props [#props-3] [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> The props to pass to the label or the id of the label #### Returns [#returns-18] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> StepLabelResultType or undefined. #### Throws [#throws-3] when the label is not found in the registered labels. #### Examples [#examples-1] ```ts narration.jump(startLabel, yourParams).then((result) => { if (result) { // your code } }) ``` ```ts // if you use it in a step label you should return the result. return narration.jump(startLabel).then((result) => { return result }) ``` *** ### ~~removeInputRequest()~~ [#removeinputrequest] \> **removeInputRequest**(): `void` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:321](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L321) Remove the input request. #### Returns [#returns-19] `void` #### Deprecated [#deprecated-12] Use [input](#input).removeRequest instead. *** ### ~~requestInput()~~ [#requestinput] \> **requestInput**(`info?`, `defaultValue?`): `void` Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:316](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L316) Returns `true` if the player must enter a value. #### Parameters [#parameters-9] ##### info? [#info] `Omit`\<[`InputInfo`](/pixi-vn/index/type-aliases/InputInfo), `"isRequired"`> The input value to be inserted by the player. ##### defaultValue? [#defaultvalue] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The default value to be inserted. #### Returns [#returns-20] `void` #### Deprecated [#deprecated-13] Use [input](#input).request instead. *** ### restore() [#restore] \> **restore**(`data`, `lastHistoryStep`): `Promise`\<`void`> Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:339](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L339) Restore the narration from an object. #### Parameters [#parameters-10] ##### data [#data-1] `object` The narration in an object. ##### lastHistoryStep [#lasthistorystep] `Omit`\<[`HistoryStep`](/pixi-vn/index/interfaces/HistoryStep), `"diff"`> | `null` #### Returns [#returns-21] `Promise`\<`void`> *** ### ~~selectChoice()~~ [#selectchoice] \> **selectChoice**\<`T`>(`item`, `props`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/interfaces/NarrationManagerInterface.ts:254](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationManagerInterface.ts#L254) Select a choice from the choice menu. and close the choice menu. #### Type Parameters [#type-parameters-2] ##### T [#t-2] `T` *extends* `object` #### Parameters [#parameters-11] ##### item [#item] [`StoredIndexedChoiceInterface`](/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface) ##### props [#props-4] [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> #### Returns [#returns-22] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> #### Throws [#throws-4] when the choice type is not `"call"`, `"jump"`, or `"close"`. #### Example [#example-2] ```ts narration.selectChoice(item, { navigate: navigate, // your props ...item.props }) .then(() => { // your code }) .catch((e) => { // your code }) ``` #### Deprecated [#deprecated-14] Use [choices](#choices).select instead. # Interface: NarrationQueriesInterface (/pixi-vn/index/interfaces/NarrationQueriesInterface) Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationQueriesInterface.ts#L4) ## Properties [#properties] ### alreadyCurrentStepMadeChoices [#alreadycurrentstepmadechoices] \> `readonly` **alreadyCurrentStepMadeChoices**: `number`\[] | `undefined` Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationQueriesInterface.ts#L15) Get the choices already made in the current step. **Attention**: if the choice step index is edited or the code of choice step is edited, the result will be wrong. #### Returns [#returns] The choices already made in the current step. If there are no choices, it will return undefined. *** ### isCurrentStepAlreadyOpened [#iscurrentstepalreadyopened] \> `readonly` **isCurrentStepAlreadyOpened**: `boolean` Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationQueriesInterface.ts#L20) Check if the current step is already completed. #### Returns [#returns-1] True if the current step is already completed. ## Methods [#methods] ### isLabelAlreadyCompleted() [#islabelalreadycompleted] \> **isLabelAlreadyCompleted**(`label`): `boolean` Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationQueriesInterface.ts#L10) Check if the label is already completed. #### Parameters [#parameters] ##### label [#label] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`> The label to check. #### Returns [#returns-2] `boolean` True if the label is already completed. *** ### timesChoiceMade() [#timeschoicemade] \> **timesChoiceMade**(`index`): `number` Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationQueriesInterface.ts#L32) Get times a choice has been made in the current step. #### Parameters [#parameters-1] ##### index [#index] `number` The index of the choice. #### Returns [#returns-3] `number` The number of times the choice has been made. *** ### timesLabelOpened() [#timeslabelopened] \> **timesLabelOpened**(`label`): `number` Defined in: [src/narration/interfaces/NarrationQueriesInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/NarrationQueriesInterface.ts#L26) Get times a label has been opened. #### Parameters [#parameters-2] ##### label [#label-1] `string` The label to check. #### Returns [#returns-4] `number` times a label has been opened. # Interface: NodEffectProps (/pixi-vn/index/interfaces/NodEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:101](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L101) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), NodEffectProps, [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### axis? [#axis] \> `optional` **axis?**: `"horizontal"` | `"vertical"` Defined in: [src/canvas/interfaces/effect-props.ts:106](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L106) The axis the component oscillates along. #### Default [#default-1] ```ts "horizontal" ``` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-4] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### distance? [#distance] \> `optional` **distance?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:111](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L111) The distance (in pixels) of the first, largest oscillation. #### Default [#default-5] ```ts 15 ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### repetitions? [#repetitions] \> `optional` **repetitions?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:116](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L116) The number of repetitions. #### Default [#default-7] ```ts 3 ``` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: NoiseDissolveInOutProps (/pixi-vn/index/interfaces/NoiseDissolveInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:314](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L314) Shared options for the filter-based reveal/conceal transitions ([GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps), [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps), [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps), [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps), NoiseDissolveInOutProps, [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps)). ## Extends [#extends] * [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `FilterFadeTransitionProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounce`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`damping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`driver`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`duration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`ease`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#ease) *** ### edge? [#edge] \> `optional` **edge?**: `"hard"` | `"soft"` Defined in: [src/canvas/interfaces/transition-props.ts:320](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L320) `"hard"`: the component appears/disappears in crisp noise-shaped blotches. `"soft"`: a cloudy, gradual dissolve. #### Default [#default-3] ```ts "hard" ``` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#elapsed) *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L235) Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn/index/interfaces/BlurInOutProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`fadeComponent`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#fadecomponent) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-15] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`from`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`inherit`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`isSync`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`mass`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`max`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`min`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#modifytarget) *** ### noiseScale? [#noisescale] \> `optional` **noiseScale?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:325](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L325) The scale of the noise pattern - higher values give smaller, more numerous blotches. #### Default [#default-5] ```ts 8 ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`path`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`power`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeat`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restspeed) *** ### seed? [#seed] \> `optional` **seed?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:329](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L329) Picks the noise pattern. Random by default, so every dissolve looks different. *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`startTime`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-35] `FilterFadeTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-36] `FilterFadeTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`times`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`type`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`velocity`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`when`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#when) # Interface: OldComponentOutProps (/pixi-vn/index/interfaces/OldComponentOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L18) Shared by every `xIn` transition that can replace an existing component (same alias): whether the replaced component leaves with its own out animation, started together with the new component's in. ## Extended by [#extended-by] * [`BlurInOutProps`](/pixi-vn/index/interfaces/BlurInOutProps) * [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps) * [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps) * [`MoveInOutProps`](/pixi-vn/index/interfaces/MoveInOutProps) * [`PixelateInOutProps`](/pixi-vn/index/interfaces/PixelateInOutProps) * [`PushInOutProps`](/pixi-vn/index/interfaces/PushInOutProps) * [`TvInOutProps`](/pixi-vn/index/interfaces/TvInOutProps) * [`ZoomInOutProps`](/pixi-vn/index/interfaces/ZoomInOutProps) ## Properties [#properties] ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. # Interface: OnEventsHandlers (/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L33) ## Indexable [#indexable] \> \[`name`: `string`]: `string` # Interface: OnRestoreGameStateOptions (/pixi-vn/index/interfaces/OnRestoreGameStateOptions) Defined in: [src/interfaces/GameStateHandlers.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStateHandlers.ts#L27) Options for `Game.addOnRestoreGameState`. ## Properties [#properties] ### timing? [#timing] \> `optional` **timing?**: [`GameStateHookTiming`](/pixi-vn/index/type-aliases/GameStateHookTiming) Defined in: [src/interfaces/GameStateHandlers.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStateHandlers.ts#L32) When the handler runs relative to the built-in restoration. #### Default [#default] ```ts "before" ``` # Interface: OpenedLabel (/pixi-vn/index/interfaces/OpenedLabel) Defined in: [src/narration/interfaces/OpenedLabel.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/OpenedLabel.ts#L3) ## Properties [#properties] ### currentStepIndex [#currentstepindex] \> **currentStepIndex**: `number` Defined in: [src/narration/interfaces/OpenedLabel.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/OpenedLabel.ts#L5) *** ### label [#label] \> **label**: `string` Defined in: [src/narration/interfaces/OpenedLabel.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/OpenedLabel.ts#L4) # Interface: PinchInOutProps (/pixi-vn/index/interfaces/PinchInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:348](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L348) Shared options for the filter-based reveal/conceal transitions ([GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps), [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps), [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps), [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps), [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps), PinchInOutProps). ## Extends [#extends] * [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `FilterFadeTransitionProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounce`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`damping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`driver`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`duration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`ease`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#elapsed) *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L235) Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn/index/interfaces/BlurInOutProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`fadeComponent`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#fadecomponent) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-15] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`from`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`inherit`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`isSync`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`mass`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`max`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`min`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#min) *** ### mode? [#mode] \> `optional` **mode?**: `"pinch"` | `"bulge"` Defined in: [src/canvas/interfaces/transition-props.ts:358](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L358) `"pinch"`: sucked into/out of a point. `"bulge"`: puffed out from/into a point. #### Default [#default-4] ```ts "pinch" ``` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#modifytarget) *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: [src/canvas/interfaces/transition-props.ts:367](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L367) The center of the deformation, normalized to the component's own bounds. #### Default [#default-5] ```ts { x: 0.5, y: 0.5 } ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`path`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`power`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#power) *** ### radius? [#radius] \> `optional` **radius?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:362](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L362) The radius (pixels) of the deformation. Defaults to half the component's diagonal. *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeat`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`startTime`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:353](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L353) How strong the deformation is, from `0` to `1` - where `pinchIn` starts and `pinchOut` ends. #### Default [#default-7] ```ts 1 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-35] `FilterFadeTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-36] `FilterFadeTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`times`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`type`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`velocity`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`when`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#when) # Interface: PixelateInOutProps (/pixi-vn/index/interfaces/PixelateInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:194](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L194) Shared by every `xIn` transition that can replace an existing component (same alias): whether the replaced component leaves with its own out animation, started together with the new component's in. ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"up-left"` | `"up-right"` | `"down-left"` | `"down-right"` Defined in: [src/canvas/interfaces/transition-props.ts:209](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L209) The direction the pixel blocks drift as their size changes. Applies to both entering and exiting components, including the old component during a replacement. `"up-left"` moves from bottom-right towards top-left; the other values mirror either axis. #### Default [#default-3] ```ts "up-left" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:218](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L218) Whether the component itself also briefly fades in (`pixelateIn`) or out (`pixelateOut`) alongside the pixelation, softening what would otherwise be an instant pop-in/pop-out - the fade runs at a quarter of the effect's own duration, mirrored to the start of `pixelateIn` or the end of `pixelateOut`. Off by default: pixelation itself already reads as a deliberate, blocky appear/disappear, so a softening fade is less often wanted here than for blur/flash. #### Default [#default-4] ```ts false ``` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### pixelSize? [#pixelsize] \> `optional` **pixelSize?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:202](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L202) The pixel size the effect starts from (`pixelateIn`) or ends at (`pixelateOut`). #### Default [#default-6] ```ts 32 ``` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Interface: PixivnAssetAliasIds (/pixi-vn/index/interfaces/PixivnAssetAliasIds) Defined in: [src/canvas/types/AssetAliasIdType.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/AssetAliasIdType.ts#L26) An empty interface that can be augmented via `declare module '@drincs/pixi-vn/canvas'` to constrain the set of valid asset aliases to a known union of string literals. When this interface has no keys (the default), [AssetAliasIdType](/pixi-vn/index/type-aliases/AssetAliasIdType) resolves to `string`, preserving full backwards compatibility. Once you augment it, [AssetAliasIdType](/pixi-vn/index/type-aliases/AssetAliasIdType) becomes the union of the declared keys and the compiler will reject any unknown asset alias. The augmentation is typically written into an auto-generated declaration file by the Vite plugin (see the `assetsManifest` option of `vitePluginPixivn`), but it can also be written by hand. ## Example [#example] ```ts // pixi-vn.gen.d.ts (auto-generated — do not edit manually) declare module "@drincs/pixi-vn/canvas" { interface PixivnAssetAliasIds { logo: never; hero: never; } } export {}; ``` # Interface: PixivnBundleIds (/pixi-vn/index/interfaces/PixivnBundleIds) Defined in: [src/canvas/types/BundleIdType.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/BundleIdType.ts#L26) An empty interface that can be augmented via `declare module '@drincs/pixi-vn/canvas'` to constrain the set of valid asset bundle names to a known union of string literals. When this interface has no keys (the default), [BundleIdType](/pixi-vn/index/type-aliases/BundleIdType) resolves to `string`, preserving full backwards compatibility. Once you augment it, [BundleIdType](/pixi-vn/index/type-aliases/BundleIdType) becomes the union of the declared keys and the compiler will reject any unknown bundle name. The augmentation is typically written into an auto-generated declaration file by the Vite plugin (see the `assetsManifest` option of `vitePluginPixivn`), but it can also be written by hand. ## Example [#example] ```ts // pixi-vn.gen.d.ts (auto-generated — do not edit manually) declare module "@drincs/pixi-vn/canvas" { interface PixivnBundleIds { main: never; ui: never; } } export {}; ``` # Interface: PixivnCharacterIds (/pixi-vn/index/interfaces/PixivnCharacterIds) Defined in: [src/characters/types/CharacterIdType.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/types/CharacterIdType.ts#L26) An empty interface that can be augmented via `declare module '@drincs/pixi-vn/characters'` to constrain the set of valid character IDs to a known union of string literals. When this interface has no keys (the default), [CharacterIdType](/pixi-vn/index/type-aliases/CharacterIdType) resolves to `string`, preserving full backwards compatibility. Once you augment it, [CharacterIdType](/pixi-vn/index/type-aliases/CharacterIdType) becomes the union of the declared keys and the compiler will reject any unknown character ID. The augmentation is typically written into an auto-generated declaration file by the Vite plugin (see the `typeFilePath` option of `vitePluginPixivn`), but it can also be written by hand. ## Example [#example] ```ts // pixi-vn.gen.d.ts (auto-generated — do not edit manually) declare module "@drincs/pixi-vn/characters" { interface PixivnCharacterIds { liam: never; emma: never; } } export {}; ``` # Interface: PixivnLabelIds (/pixi-vn/index/interfaces/PixivnLabelIds) Defined in: [src/narration/types/LabelIdType.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/LabelIdType.ts#L26) An empty interface that can be augmented via `declare module '@drincs/pixi-vn/narration'` to constrain the set of valid label IDs to a known union of string literals. When this interface has no keys (the default), [LabelIdType](/pixi-vn/index/type-aliases/LabelIdType) resolves to `string`, preserving full backwards compatibility. Once you augment it, [LabelIdType](/pixi-vn/index/type-aliases/LabelIdType) becomes the union of the declared keys and the compiler will reject any unknown label ID. The augmentation is typically written into an auto-generated declaration file by the Vite plugin (see the `labelTypeFilePath` option of `vitePluginPixivn`), but it can also be written by hand. ## Example [#example] ```ts // pixi-vn.gen.d.ts (auto-generated — do not edit manually) declare module "@drincs/pixi-vn/narration" { interface PixivnLabelIds { startLabel: never; menuLabel: never; } } export {}; ``` # Interface: PulseEffectProps (/pixi-vn/index/interfaces/PulseEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L56) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-3] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### pulses? [#pulses] \> `optional` **pulses?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:67](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L67) The number of pulses. #### Default [#default-5] ```ts 3 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### scale? [#scale] \> `optional` **scale?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:62](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L62) The peak scale multiplier of the first, largest pulse (relative to the component's current scale) - e.g. `1.2` grows the component 20% bigger at the peak of the first pulse. #### Default [#default-6] ```ts 1.2 ``` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: PunchEffectProps (/pixi-vn/index/interfaces/PunchEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:143](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L143) ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### mode? [#mode] \> `optional` **mode?**: `"scale"` | `"x"` | `"y"` | `"rotation"` Defined in: [src/canvas/interfaces/effect-props.ts:148](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L148) Which property the punch animates. #### Default [#default-4] ```ts "scale" ``` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### overshoot? [#overshoot] \> `optional` **overshoot?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:160](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L160) How far the recovery overshoots past rest, in the opposite direction, as a fraction of [strength](#strength) (`0` = no overshoot, settles straight back to rest). #### Default [#default-5] ```ts 0.3 ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:154](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L154) The strength of the punch's attack - a pixel distance for `x`/`y`, degrees for `rotation`, or a scale multiplier delta for `scale` (e.g. `0.3` peaks at 1.3x the current scale). #### Default [#default-7] ```ts 0.3 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: PushInOutProps (/pixi-vn/index/interfaces/PushInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L56) Shared by every `xIn` transition that can replace an existing component (same alias): whether the replaced component leaves with its own out animation, started together with the new component's in. ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: [src/canvas/interfaces/transition-props.ts:64](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L64) The direction of the push effect. #### Default [#default-3] ```ts "right" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### motionBlur? [#motionblur] \> `optional` **motionBlur?**: `number` | `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:70](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L70) Adds a motion-blur trail along the movement, ramping up mid-move and back to sharp at the end. `true` uses a 40px trail; a number sets the trail length (pixels). #### Default [#default-5] ```ts false ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Interface: RadialBlurEffectProps (/pixi-vn/index/interfaces/RadialBlurEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:252](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L252) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### bursts? [#bursts] \> `optional` **bursts?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:262](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L262) The number of bursts. #### Default [#default-1] ```ts 1 ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-4] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### innerRadius? [#innerradius] \> `optional` **innerRadius?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:272](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L272) The inner radius (in pixels) excluded from the blur. #### Default [#default-5] ```ts 0 ``` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### origin? [#origin] \> `optional` **origin?**: `object` Defined in: [src/canvas/interfaces/effect-props.ts:267](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L267) The origin the blur radiates from, normalized (0-1) to the element's own bounds. #### x [#x] \> **x**: `number` #### y [#y] \> **y**: `number` #### Default [#default-7] ```ts {x: 0.5, y: 0.5} ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### radius? [#radius] \> `optional` **radius?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:277](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L277) The outer radius (in pixels) of the blur. A value `< 0` means the blur extends infinitely. #### Default [#default-8] ```ts -1 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-9] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:257](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L257) The peak zoom-blur strength of the first, largest burst. #### Default [#default-10] ```ts 0.5 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-12] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: ResolvedAsset (/pixi-vn/index/interfaces/ResolvedAsset) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:56 A fully resolved asset, with all the information needed to load it. This represents an asset that has been processed by the resolver and is ready to be loaded. ## Example [#example] ```ts // Basic resolved asset const asset: ResolvedAsset = { alias: ['hero'], src: 'hero.png', format: 'png' }; // Resolved asset with multiple aliases const asset: ResolvedAsset = { alias: ['character', 'player'], src: 'character@2x.webp', format: 'webp', }; // Resolved asset with specific parser const asset: ResolvedAsset = { alias: ['config'], src: 'data.txt', format: 'txt', parser: 'text' }; ``` ## Standard [#standard] ## Type Parameters [#type-parameters] ### T [#t] `T` = `any` ## Properties [#properties] ### alias? [#alias] \> `optional` **alias?**: `string`\[] Defined in: node_modules/pixi.js/lib/assets/types.d.ts:58 Array of alternative names for this asset. Used for looking up the same asset by different keys. *** ### data? [#data] \> `optional` **data?**: `T` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:65 Optional data passed to the asset loader. Can include texture settings, parser options, or other asset-specific data. *** ### format? [#format] \> `optional` **format?**: `string` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:67 File format of the asset, usually the file extension. Used to determine which loader parser to use. *** ### ~~loadParser?~~ [#loadparser] \> `optional` **loadParser?**: [`LoadParserName`](/pixi-vn/index/type-aliases/LoadParserName) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:71 #### Deprecated [#deprecated] Use `parser` instead. *** ### parser? [#parser] \> `optional` **parser?**: `AssetParser` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:73 Override to specify which parser should load this asset. Useful when file extensions don't match the content type. *** ### progressSize? [#progresssize] \> `optional` **progressSize?**: `number` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:79 The amount of progress an asset will contribute to the onProgress event when loading. This can be any arbitrary value but typically represents the file size. #### Default [#default] ```ts 1 ``` *** ### src? [#src] \> `optional` **src?**: `string` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:60 The URL or relative path to the asset. This is the final, resolved path that will be used for loading. # Interface: ResolvedSrc (/pixi-vn/index/interfaces/ResolvedSrc) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:117 A fully resolved src specification after pattern resolution and format detection. Unlike raw asset sources, this type represents the final, concrete source path and format. ## Example [#example] ```ts // Basic resolved source const src: ResolvedSrc = { src: 'images/sprite.png', format: 'png' }; // With resolution and format preferences const src: ResolvedSrc = { src: 'images/sprite@2x.webp', format: 'webp', data: { resolution: 2 } }; // With specific loader const src: ResolvedSrc = { src: 'data/config.txt', format: 'txt', parser: 'text', }; ``` ## Remarks [#remarks] * Pattern strings like `{png,webp}` are resolved to specific formats * Resolution and format are determined based on browser support * Used internally by the Assets system after resolution * Data property can contain format-specific options ## See [#see] * [AssetSrc](/pixi-vn/index/type-aliases/AssetSrc) For unresolved source format * [ResolvedAsset](/pixi-vn/index/interfaces/ResolvedAsset) For complete resolved asset specification ## Advanced [#advanced] ## Properties [#properties] ### data? [#data] \> `optional` **data?**: `any` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:65 Optional data passed to the asset loader. Can include texture settings, parser options, or other asset-specific data. *** ### format? [#format] \> `optional` **format?**: `string` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:67 File format of the asset, usually the file extension. Used to determine which loader parser to use. *** ### ~~loadParser?~~ [#loadparser] \> `optional` **loadParser?**: [`LoadParserName`](/pixi-vn/index/type-aliases/LoadParserName) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:71 #### Deprecated [#deprecated] Use `parser` instead. *** ### parser? [#parser] \> `optional` **parser?**: `AssetParser` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:73 Override to specify which parser should load this asset. Useful when file extensions don't match the content type. *** ### src? [#src] \> `optional` **src?**: `string` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:60 The URL or relative path to the asset. This is the final, resolved path that will be used for loading. # Interface: RgbColorType (/pixi-vn/index/interfaces/RgbColorType) Defined in: [src/canvas/types/ColorType.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L1) ## Extended by [#extended-by] * [`RgbaColorType`](/pixi-vn/index/interfaces/RgbaColorType) ## Properties [#properties] ### b [#b] \> **b**: `number` Defined in: [src/canvas/types/ColorType.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L4) *** ### g [#g] \> **g**: `number` Defined in: [src/canvas/types/ColorType.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L3) *** ### r [#r] \> **r**: `number` Defined in: [src/canvas/types/ColorType.ts:2](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L2) # Interface: RgbaColorType (/pixi-vn/index/interfaces/RgbaColorType) Defined in: [src/canvas/types/ColorType.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L6) ## Extends [#extends] * [`RgbColorType`](/pixi-vn/index/interfaces/RgbColorType) ## Properties [#properties] ### a [#a] \> **a**: `number` Defined in: [src/canvas/types/ColorType.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L7) *** ### b [#b] \> **b**: `number` Defined in: [src/canvas/types/ColorType.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L4) #### Inherited from [#inherited-from] [`RgbColorType`](/pixi-vn/index/interfaces/RgbColorType).[`b`](/pixi-vn/index/interfaces/RgbColorType#b) *** ### g [#g] \> **g**: `number` Defined in: [src/canvas/types/ColorType.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L3) #### Inherited from [#inherited-from-1] [`RgbColorType`](/pixi-vn/index/interfaces/RgbColorType).[`g`](/pixi-vn/index/interfaces/RgbColorType#g) *** ### r [#r] \> **r**: `number` Defined in: [src/canvas/types/ColorType.ts:2](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L2) #### Inherited from [#inherited-from-2] [`RgbColorType`](/pixi-vn/index/interfaces/RgbColorType).[`r`](/pixi-vn/index/interfaces/RgbColorType#r) # Interface: RippleInOutProps (/pixi-vn/index/interfaces/RippleInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:291](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L291) Shared options for the filter-based reveal/conceal transitions ([GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps), [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps), [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps), RippleInOutProps, [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps), [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps)). ## Extends [#extends] * [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `FilterFadeTransitionProps.aliasToRemoveAfter` *** ### amplitude? [#amplitude] \> `optional` **amplitude?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:301](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L301) The amplitude of the ripple. #### Default [#default-1] ```ts 30 ``` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounce`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-6] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`damping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`driver`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`duration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`ease`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#elapsed) *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L235) Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn/index/interfaces/BlurInOutProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`fadeComponent`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#fadecomponent) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-15] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`from`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`inherit`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`isSync`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`mass`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`max`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`min`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#modifytarget) *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: [src/canvas/interfaces/transition-props.ts:296](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L296) The point the ripple starts from, normalized to the component's own bounds. #### Default [#default-5] ```ts { x: 0.5, y: 0.5 } ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`path`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`power`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeat`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#skipanimations) *** ### speed? [#speed] \> `optional` **speed?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:312](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L312) The speed (pixels-per-second, in the ripple's own time) the ring travels outward. The ring always travels until it has left the component; `speed` only shapes the ring. #### Default [#default-6] ```ts 500 ``` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`startTime`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-35] `FilterFadeTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-36] `FilterFadeTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`times`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`type`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`velocity`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#visualduration) *** ### wavelength? [#wavelength] \> `optional` **wavelength?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:306](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L306) The wavelength of the ripple. #### Default [#default-10] ```ts 160 ``` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`when`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#when) # Interface: ShakeEffectProps (/pixi-vn/index/interfaces/ShakeEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L4) ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### maxShockSize? [#maxshocksize] \> `optional` **maxShockSize?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L21) The maximum size of the shock. For horizontal type, it is the maximum size of the x axis. For vertical type, it is the maximum size of the y axis. #### Default [#default-4] ```ts 10 ``` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### shakeType? [#shaketype] \> `optional` **shakeType?**: `"horizontal"` | `"vertical"` Defined in: [src/canvas/interfaces/effect-props.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L14) The type of the shake effect #### Default [#default-5] ```ts "horizontal" ``` *** ### shocksNumber? [#shocksnumber] \> `optional` **shocksNumber?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L9) The number of shocks. **Must be at least 3**. #### Default [#default-6] ```ts 10 ``` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: ShockwaveEffectProps (/pixi-vn/index/interfaces/ShockwaveEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:211](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L211) ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### amplitude? [#amplitude] \> `optional` **amplitude?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:221](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L221) The amplitude of the ripple. #### Default [#default-1] ```ts 30 ``` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### brightness? [#brightness] \> `optional` **brightness?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:231](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L231) The brightness of the ripple. #### Default [#default-2] ```ts 1 ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-3] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-4] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### origin? [#origin] \> `optional` **origin?**: `object` Defined in: [src/canvas/interfaces/effect-props.ts:216](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L216) The origin of the ripple, normalized (0-1) to the element's own bounds. #### x [#x] \> **x**: `number` #### y [#y] \> **y**: `number` #### Default [#default-6] ```ts {x: 0.5, y: 0.5} ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### radius? [#radius] \> `optional` **radius?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:237](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L237) The maximum radius (in pixels) the ripple travels before fading out. A value `<= 0` means the ripple travels an infinite distance. #### Default [#default-7] ```ts -1 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### speed? [#speed] \> `optional` **speed?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:242](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L242) The speed (in pixels-per-second) the ripple travels outward. #### Default [#default-8] ```ts 500 ``` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-9] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:249](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L249) How far the ripple's own internal "time" advances by the end of the animation (the ring's radius is `time * speed` pixels). By default it's just enough for the ring to fully leave the component - origin to farthest corner plus half a [wavelength](#wavelength) - or [radius](#radius) when set, divided by [speed](#speed). *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### wavelength? [#wavelength] \> `optional` **wavelength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:226](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L226) The wavelength of the ripple. #### Default [#default-12] ```ts 160 ``` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: ShowWithDissolveTransitionProps (/pixi-vn/index/interfaces/ShowWithDissolveTransitionProps) Defined in: [src/canvas/interfaces/transition-props.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L28) ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: ShowWithFadeTransitionProps (/pixi-vn/index/interfaces/ShowWithFadeTransitionProps) Defined in: [src/canvas/interfaces/transition-props.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L29) ## Extends [#extends] * `BaseTransitionProps` * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-19] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-20] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-21] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-22] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-23] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-24] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-25] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-26] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-28] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-29] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-31] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-32] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-33] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-35] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-36] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-37] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-38] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-39] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-40] `AnimationOptions.when` # Interface: SoundChannelsInterface (/pixi-vn/index/interfaces/SoundChannelsInterface) Defined in: [src/sound/interfaces/SoundChannelsInterface.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundChannelsInterface.ts#L4) ## Properties [#properties] ### values [#values] \> `readonly` **values**: [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface)\[] Defined in: [src/sound/interfaces/SoundChannelsInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundChannelsInterface.ts#L15) All registered audio channels. ## Methods [#methods] ### add() [#add] \> **add**(`alias`, `options?`): [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) | `undefined` Defined in: [src/sound/interfaces/SoundChannelsInterface.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundChannelsInterface.ts#L9) Add a new audio channel. Returns the created channel, or `undefined` if the alias already exists. #### Parameters [#parameters] ##### alias [#alias] `string` | `string`\[] ##### options? [#options] [`ChannelOptions`](/pixi-vn/index/interfaces/ChannelOptions) #### Returns [#returns] [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) | `undefined` *** ### find() [#find] \> **find**(`alias`): [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) Defined in: [src/sound/interfaces/SoundChannelsInterface.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundChannelsInterface.ts#L13) Find the channel for the given alias, creating it if it does not yet exist. #### Parameters [#parameters-1] ##### alias [#alias-1] `string` #### Returns [#returns-1] [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) # Interface: SoundGameState (/pixi-vn/index/interfaces/SoundGameState) Defined in: [src/sound/interfaces/SoundGameState.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L24) Interface exported sounds ## Properties [#properties] ### mediaInstances [#mediainstances] \> **mediaInstances**: `object` Defined in: [src/sound/interfaces/SoundGameState.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L29) #### Index Signature [#index-signature] \[`key`: `string`]: `object` *** ### ~~soundsPlaying?~~ [#soundsplaying] \> `optional` **soundsPlaying?**: `object` Defined in: [src/sound/interfaces/SoundGameState.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L28) #### Index Signature [#index-signature-1] \[`key`: `string`]: [`ExportedSoundPlay`](/pixi-vn/index/interfaces/ExportedSoundPlay) #### Deprecated [#deprecated] # Interface: SoundManagerInterface (/pixi-vn/index/interfaces/SoundManagerInterface) Defined in: [src/sound/interfaces/SoundManagerInterface.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L9) ## Properties [#properties] ### channels [#channels] \> `readonly` **channels**: [`SoundChannelsInterface`](/pixi-vn/index/interfaces/SoundChannelsInterface) Defined in: [src/sound/interfaces/SoundManagerInterface.ts:152](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L152) Namespace for operations on audio channels. *** ### defaultChannelAlias [#defaultchannelalias] \> **defaultChannelAlias**: `string` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L21) The default channel alias used when playing a sound without specifying a channel. Defaults to `"general"`. *** ### muted [#muted] \> `readonly` **muted**: `boolean` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:80](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L80) Whether all sounds are currently muted. Note that individual channels or media instances may still be muted or unmuted; this is just the global master mute state. *** ### ~~speedAll~~ [#speedall] \> **speedAll**: `number` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L15) #### Deprecated [#deprecated] Global playback speed. This is not a well-supported feature and may be removed in a future release. Use individual sound speed options instead. *** ### unsaved [#unsaved] \> `readonly` **unsaved**: [`SoundUnsavedInterface`](/pixi-vn/index/interfaces/SoundUnsavedInterface) Defined in: [src/sound/interfaces/SoundManagerInterface.ts:121](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L121) Namespace for operations on unsaved / transient playback state (not tracked in save/export state). *** ### volumeAll [#volumeall] \> **volumeAll**: `number` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L11) Master volume in the range \[0, 1]. ## Methods [#methods] ### ~~add()~~ [#add] \> **add**(`alias`, `options`): `void` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L26) #### Parameters [#parameters] ##### alias [#alias] `string` ##### options [#options] `string` #### Returns [#returns] `void` #### Deprecated [#deprecated-1] Register sound assets directly via `PIXI.Assets` instead. *** ### ~~addChannel()~~ [#addchannel] \> **addChannel**(`alias`, `options?`): [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) | `undefined` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:138](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L138) Add a new audio channel. Returns the created channel, or `undefined` if the alias already exists. #### Parameters [#parameters-1] ##### alias [#alias-1] `string` | `string`\[] ##### options? [#options-1] [`ChannelOptions`](/pixi-vn/index/interfaces/ChannelOptions) #### Returns [#returns-1] [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) | `undefined` #### Deprecated [#deprecated-2] Use [channels](#channels).add instead. *** ### backgroundLoad() [#backgroundload] \> **backgroundLoad**(...`alias`): `Promise`\<`void`> Defined in: [src/sound/interfaces/SoundManagerInterface.ts:126](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L126) Trigger background loading of one or more sound assets. #### Parameters [#parameters-2] ##### alias [#alias-2] ...`string`\[] #### Returns [#returns-2] `Promise`\<`void`> *** ### backgroundLoadBundle() [#backgroundloadbundle] \> **backgroundLoadBundle**(`alias`): `Promise`\<`void`> Defined in: [src/sound/interfaces/SoundManagerInterface.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L128) Trigger background loading of a sound bundle. #### Parameters [#parameters-3] ##### alias [#alias-3] `string` #### Returns [#returns-3] `Promise`\<`void`> *** ### clear() [#clear] \> **clear**(): `void` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:131](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L131) Stop all sounds and clear internal state. #### Returns [#returns-4] `void` *** ### duration() [#duration] \> **duration**(`alias`): `number` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:73](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L73) Duration in seconds of the loaded sound with the given alias. #### Parameters [#parameters-4] ##### alias [#alias-4] `string` #### Returns [#returns-5] `number` *** ### export() [#export] \> **export**(): [`SoundGameState`](/pixi-vn/index/interfaces/SoundGameState) Defined in: [src/sound/interfaces/SoundManagerInterface.ts:157](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L157) Export the current sound state, including currently playing sounds and their options, for saving or debugging purposes. This is not guaranteed to be stable across versions and may contain implementation details; it is not intended for use in general application code. #### Returns [#returns-6] [`SoundGameState`](/pixi-vn/index/interfaces/SoundGameState) *** ### find() [#find] \> **find**(`alias`): [`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface) | `undefined` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:55](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L55) Find a tracked media instance by alias. #### Parameters [#parameters-5] ##### alias [#alias-5] `string` #### Returns [#returns-7] [`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface) | `undefined` *** ### ~~findChannel()~~ [#findchannel] \> **findChannel**(`alias`): [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) Defined in: [src/sound/interfaces/SoundManagerInterface.ts:147](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L147) Find the channel for the given alias, creating it if it does not yet exist. #### Parameters [#parameters-6] ##### alias [#alias-6] `string` #### Returns [#returns-8] [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface) #### Deprecated [#deprecated-3] Use [channels](#channels).find instead. *** ### load() [#load] \> **load**(...`alias`): `Promise`\<`void`> Defined in: [src/sound/interfaces/SoundManagerInterface.ts:124](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L124) Load one or more sound assets. #### Parameters [#parameters-7] ##### alias [#alias-7] ...`string`\[] #### Returns [#returns-9] `Promise`\<`void`> *** ### muteAll() [#muteall] \> **muteAll**(): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:82](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L82) Mute all sounds. #### Returns [#returns-10] `this` *** ### pause() [#pause] \> **pause**(`alias`): [`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface) | `undefined` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:65](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L65) Pause a tracked media instance. #### Parameters [#parameters-8] ##### alias [#alias-8] `string` #### Returns [#returns-11] [`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface) | `undefined` *** ### pauseAll() [#pauseall] \> **pauseAll**(): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:88](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L88) Pause all sounds. #### Returns [#returns-12] `this` *** ### ~~pauseUnsavedAll()~~ [#pauseunsavedall] \> **pauseUnsavedAll**(`channel?`): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:104](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L104) Temporarily pause all currently-playing sounds (or just those in the given channel) without persisting the paused state. Useful for overlays / pause menus. Only sounds that are **actively playing** at the time of the call are paused; sounds that were already paused beforehand are left untouched so that they remain paused when [resumeUnsavedAll](#resumeunsavedall) is called later. When called without a channel argument all transient players started with [playTransient](#playtransient) are also stopped. #### Parameters [#parameters-9] ##### channel? [#channel] `string` #### Returns [#returns-13] `this` #### Deprecated [#deprecated-4] Use [unsaved](#unsaved).pauseAll instead. *** ### play() [#play] #### Call Signature [#call-signature] \> **play**(`alias`, `options?`): `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> Defined in: [src/sound/interfaces/SoundManagerInterface.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L34) Plays a sound. ##### Parameters [#parameters-10] ###### alias [#alias-9] `string` The media and sound (asset) alias reference. ###### options? [#options-2] [`SoundPlayOptionsWithChannel`](/pixi-vn/index/interfaces/SoundPlayOptionsWithChannel) The options. ##### Returns [#returns-14] `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> The media instance (resolves immediately if already loaded). #### Call Signature [#call-signature-1] \> **play**(`mediaAlias`, `soundAlias`, `options?`): `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> Defined in: [src/sound/interfaces/SoundManagerInterface.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L35) ##### Parameters [#parameters-11] ###### mediaAlias [#mediaalias] `string` ###### soundAlias [#soundalias] `string` ###### options? [#options-3] [`SoundPlayOptionsWithChannel`](/pixi-vn/index/interfaces/SoundPlayOptionsWithChannel) ##### Returns [#returns-15] `Promise`\<[`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface)> *** ### ~~playTransient()~~ [#playtransient] \> **playTransient**(`alias`, `options?`): `Promise`\<`Player`> Defined in: [src/sound/interfaces/SoundManagerInterface.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L47) Plays a non-persistent ("transient") sound (e.g. UI / menu sounds). Transient playback is not tracked in save/export state. Pass `channel` to route the player through an audio channel. #### Parameters [#parameters-12] ##### alias [#alias-10] `string` ##### options? [#options-4] `Partial`\<`PlayerOptions`> & `object` #### Returns [#returns-16] `Promise`\<`Player`> #### Deprecated [#deprecated-5] Use [unsaved](#unsaved).playTransient instead. *** ### restore() [#restore] \> **restore**(`data`): `Promise`\<`void`> Defined in: [src/sound/interfaces/SoundManagerInterface.ts:161](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L161) Restore a sound state exported by [export](#export). This will stop any currently playing sounds and replace them with the sounds specified in the exported state. This is not guaranteed to be stable across versions and may contain implementation details; it is not intended for use in general application code. #### Parameters [#parameters-13] ##### data [#data] `object` #### Returns [#returns-17] `Promise`\<`void`> *** ### resume() [#resume] \> **resume**(`alias`): [`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface) | `undefined` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:70](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L70) Resume a paused media instance. #### Parameters [#parameters-14] ##### alias [#alias-11] `string` #### Returns [#returns-18] [`MediaInterface`](/pixi-vn/index/interfaces/MediaInterface) | `undefined` *** ### resumeAll() [#resumeall] \> **resumeAll**(): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:90](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L90) Resume all sounds. #### Returns [#returns-19] `this` *** ### ~~resumeUnsavedAll()~~ [#resumeunsavedall] \> **resumeUnsavedAll**(`channel?`): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:111](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L111) Resume all sounds (or just those in the given channel) that were paused by the most recent call to [pauseUnsavedAll](#pauseunsavedall). Sounds that were already paused before `pauseUnsavedAll` was called are **not** resumed. #### Parameters [#parameters-15] ##### channel? [#channel-1] `string` #### Returns [#returns-20] `this` #### Deprecated [#deprecated-6] Use [unsaved](#unsaved).resumeAll instead. *** ### stop() [#stop] \> **stop**(`alias`): `void` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:60](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L60) Stop a tracked media instance and remove it from the manager. #### Parameters [#parameters-16] ##### alias [#alias-12] `string` #### Returns [#returns-21] `void` *** ### stopAll() [#stopall] \> **stopAll**(): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L86) Stop all sounds. #### Returns [#returns-22] `this` *** ### ~~stopTransientAll()~~ [#stoptransientall] \> **stopTransientAll**(): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:116](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L116) Stop all transient media instances started with [playTransient](#playtransient). #### Returns [#returns-23] `this` #### Deprecated [#deprecated-7] Use [unsaved](#unsaved).stopTransientAll instead. *** ### toggleMuteAll() [#togglemuteall] \> **toggleMuteAll**(): `boolean` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:76](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L76) Toggle mute on all sounds. Returns the new muted state. #### Returns [#returns-24] `boolean` *** ### unmuteAll() [#unmuteall] \> **unmuteAll**(): `this` Defined in: [src/sound/interfaces/SoundManagerInterface.ts:84](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundManagerInterface.ts#L84) Unmute all sounds. #### Returns [#returns-25] `this` # Interface: SoundOptions (/pixi-vn/index/interfaces/SoundOptions) Defined in: [src/sound/interfaces/SoundOptions.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L3) ## Extends [#extends] * `Pick`\<`Partial`\<`PlayerOptions`>, `"loop"` | `"autostart"` | `"fadeIn"` | `"fadeOut"` | `"mute"` | `"loopEnd"` | `"loopStart"` | `"reverse"` | `"playbackRate"`> ## Extended by [#extended-by] * [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions) ## Properties [#properties] ### autostart? [#autostart] \> `optional` **autostart?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:9 #### Inherited from [#inherited-from] `Pick.autostart` *** ### fadeIn? [#fadein] \> `optional` **fadeIn?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:13 #### Inherited from [#inherited-from-1] `Pick.fadeIn` *** ### fadeOut? [#fadeout] \> `optional` **fadeOut?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:14 #### Inherited from [#inherited-from-2] `Pick.fadeOut` *** ### filters? [#filters] \> `optional` **filters?**: `ToneAudioNode`\<`ToneWithContextOptions`>\[] Defined in: [src/sound/interfaces/SoundOptions.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L34) A collection of audio filters/effects to apply to this sound. Install "tone" for the full list of available filters. #### Example [#example] ```ts import * as Tone from "tone"; const filters = [new Tone.FeedbackDelay("8n", 0.5)]; ``` *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:8 #### Inherited from [#inherited-from-3] `Pick.loop` *** ### loopEnd? [#loopend] \> `optional` **loopEnd?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:11 #### Inherited from [#inherited-from-4] `Pick.loopEnd` *** ### loopStart? [#loopstart] \> `optional` **loopStart?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:10 #### Inherited from [#inherited-from-5] `Pick.loopStart` *** ### mute? [#mute] \> `optional` **mute?**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:10 #### Inherited from [#inherited-from-6] `Pick.mute` *** ### ~~muted?~~ [#muted] \> `optional` **muted?**: `boolean` Defined in: [src/sound/interfaces/SoundOptions.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L42) #### Deprecated [#deprecated] Use [mute](#mute) instead. *** ### playbackRate? [#playbackrate] \> `optional` **playbackRate?**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:7 #### Inherited from [#inherited-from-7] `Pick.playbackRate` *** ### reverse? [#reverse] \> `optional` **reverse?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:12 #### Inherited from [#inherited-from-8] `Pick.reverse` *** ### ~~speed?~~ [#speed] \> `optional` **speed?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L38) #### Deprecated [#deprecated-1] Use [playbackRate](#playbackrate) instead. *** ### volume? [#volume] \> `optional` **volume?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L21) The volume of this sound in the linear range \[0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player. # Interface: SoundPlay (/pixi-vn/index/interfaces/SoundPlay) Defined in: [src/sound/interfaces/SoundGameState.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L11) ## Extended by [#extended-by] * [`ExportedSoundPlay`](/pixi-vn/index/interfaces/ExportedSoundPlay) ## Properties [#properties] ### options? [#options] \> `optional` **options?**: `string` | [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions) Defined in: [src/sound/interfaces/SoundGameState.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L14) *** ### paused [#paused] \> **paused**: `boolean` Defined in: [src/sound/interfaces/SoundGameState.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L13) *** ### stepIndex [#stepindex] \> **stepIndex**: `number` Defined in: [src/sound/interfaces/SoundGameState.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundGameState.ts#L12) # Interface: SoundPlayOptions (/pixi-vn/index/interfaces/SoundPlayOptions) Defined in: [src/sound/interfaces/SoundOptions.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L45) ## Extends [#extends] * [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions) ## Extended by [#extended-by] * [`SoundPlayOptionsWithChannel`](/pixi-vn/index/interfaces/SoundPlayOptionsWithChannel) ## Properties [#properties] ### autostart? [#autostart] \> `optional` **autostart?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:9 #### Inherited from [#inherited-from] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`autostart`](/pixi-vn/index/interfaces/SoundOptions#autostart) *** ### delay? [#delay] \> `optional` **delay?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L51) The delay in seconds before playback starts. If specified, playback is scheduled to begin after the delay has elapsed rather than starting immediately in a paused state. *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:55](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L55) The offset in seconds from the start of the sound at which to begin playback. *** ### fadeIn? [#fadein] \> `optional` **fadeIn?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:13 #### Inherited from [#inherited-from-1] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`fadeIn`](/pixi-vn/index/interfaces/SoundOptions#fadein) *** ### fadeOut? [#fadeout] \> `optional` **fadeOut?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:14 #### Inherited from [#inherited-from-2] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`fadeOut`](/pixi-vn/index/interfaces/SoundOptions#fadeout) *** ### filters? [#filters] \> `optional` **filters?**: `ToneAudioNode`\<`ToneWithContextOptions`>\[] Defined in: [src/sound/interfaces/SoundOptions.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L34) A collection of audio filters/effects to apply to this sound. Install "tone" for the full list of available filters. #### Example [#example] ```ts import * as Tone from "tone"; const filters = [new Tone.FeedbackDelay("8n", 0.5)]; ``` #### Inherited from [#inherited-from-3] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`filters`](/pixi-vn/index/interfaces/SoundOptions#filters) *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:8 #### Inherited from [#inherited-from-4] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`loop`](/pixi-vn/index/interfaces/SoundOptions#loop) *** ### loopEnd? [#loopend] \> `optional` **loopEnd?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:11 #### Inherited from [#inherited-from-5] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`loopEnd`](/pixi-vn/index/interfaces/SoundOptions#loopend) *** ### loopStart? [#loopstart] \> `optional` **loopStart?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:10 #### Inherited from [#inherited-from-6] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`loopStart`](/pixi-vn/index/interfaces/SoundOptions#loopstart) *** ### mute? [#mute] \> `optional` **mute?**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:10 #### Inherited from [#inherited-from-7] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`mute`](/pixi-vn/index/interfaces/SoundOptions#mute) *** ### ~~muted?~~ [#muted] \> `optional` **muted?**: `boolean` Defined in: [src/sound/interfaces/SoundOptions.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L42) #### Deprecated [#deprecated] Use [mute](/pixi-vn/index/interfaces/SoundOptions#mute) instead. #### Inherited from [#inherited-from-8] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`muted`](/pixi-vn/index/interfaces/SoundOptions#muted) *** ### playbackRate? [#playbackrate] \> `optional` **playbackRate?**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:7 #### Inherited from [#inherited-from-9] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`playbackRate`](/pixi-vn/index/interfaces/SoundOptions#playbackrate) *** ### reverse? [#reverse] \> `optional` **reverse?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:12 #### Inherited from [#inherited-from-10] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`reverse`](/pixi-vn/index/interfaces/SoundOptions#reverse) *** ### ~~speed?~~ [#speed] \> `optional` **speed?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L38) #### Deprecated [#deprecated-1] Use [playbackRate](/pixi-vn/index/interfaces/SoundOptions#playbackrate) instead. #### Inherited from [#inherited-from-11] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`speed`](/pixi-vn/index/interfaces/SoundOptions#speed) *** ### volume? [#volume] \> `optional` **volume?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L21) The volume of this sound in the linear range \[0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player. #### Inherited from [#inherited-from-12] [`SoundOptions`](/pixi-vn/index/interfaces/SoundOptions).[`volume`](/pixi-vn/index/interfaces/SoundOptions#volume) # Interface: SoundPlayOptionsWithChannel (/pixi-vn/index/interfaces/SoundPlayOptionsWithChannel) Defined in: [src/sound/interfaces/SoundOptions.ts:58](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L58) ## Extends [#extends] * [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions) ## Properties [#properties] ### autostart? [#autostart] \> `optional` **autostart?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:9 #### Inherited from [#inherited-from] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`autostart`](/pixi-vn/index/interfaces/SoundPlayOptions#autostart) *** ### channel? [#channel] \> `optional` **channel?**: `string` Defined in: [src/sound/interfaces/SoundOptions.ts:64](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L64) The alias of the audio channel to play the sound on. If the channel does not exist it will be created automatically. Defaults to `SoundManagerInterface.defaultChannelAlias` ("general"). *** ### delay? [#delay] \> `optional` **delay?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L51) The delay in seconds before playback starts. If specified, playback is scheduled to begin after the delay has elapsed rather than starting immediately in a paused state. #### Inherited from [#inherited-from-1] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`delay`](/pixi-vn/index/interfaces/SoundPlayOptions#delay) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:55](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L55) The offset in seconds from the start of the sound at which to begin playback. #### Inherited from [#inherited-from-2] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`elapsed`](/pixi-vn/index/interfaces/SoundPlayOptions#elapsed) *** ### fadeIn? [#fadein] \> `optional` **fadeIn?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:13 #### Inherited from [#inherited-from-3] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`fadeIn`](/pixi-vn/index/interfaces/SoundPlayOptions#fadein) *** ### fadeOut? [#fadeout] \> `optional` **fadeOut?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:14 #### Inherited from [#inherited-from-4] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`fadeOut`](/pixi-vn/index/interfaces/SoundPlayOptions#fadeout) *** ### filters? [#filters] \> `optional` **filters?**: `ToneAudioNode`\<`ToneWithContextOptions`>\[] Defined in: [src/sound/interfaces/SoundOptions.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L34) A collection of audio filters/effects to apply to this sound. Install "tone" for the full list of available filters. #### Example [#example] ```ts import * as Tone from "tone"; const filters = [new Tone.FeedbackDelay("8n", 0.5)]; ``` #### Inherited from [#inherited-from-5] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`filters`](/pixi-vn/index/interfaces/SoundPlayOptions#filters) *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:8 #### Inherited from [#inherited-from-6] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`loop`](/pixi-vn/index/interfaces/SoundPlayOptions#loop) *** ### loopEnd? [#loopend] \> `optional` **loopEnd?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:11 #### Inherited from [#inherited-from-7] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`loopEnd`](/pixi-vn/index/interfaces/SoundPlayOptions#loopend) *** ### loopStart? [#loopstart] \> `optional` **loopStart?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:10 #### Inherited from [#inherited-from-8] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`loopStart`](/pixi-vn/index/interfaces/SoundPlayOptions#loopstart) *** ### mute? [#mute] \> `optional` **mute?**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:10 #### Inherited from [#inherited-from-9] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`mute`](/pixi-vn/index/interfaces/SoundPlayOptions#mute) *** ### ~~muted?~~ [#muted] \> `optional` **muted?**: `boolean` Defined in: [src/sound/interfaces/SoundOptions.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L42) #### Deprecated [#deprecated] Use [mute](/pixi-vn/index/interfaces/SoundOptions#mute) instead. #### Inherited from [#inherited-from-10] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`muted`](/pixi-vn/index/interfaces/SoundPlayOptions#muted) *** ### playbackRate? [#playbackrate] \> `optional` **playbackRate?**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:7 #### Inherited from [#inherited-from-11] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`playbackRate`](/pixi-vn/index/interfaces/SoundPlayOptions#playbackrate) *** ### reverse? [#reverse] \> `optional` **reverse?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:12 #### Inherited from [#inherited-from-12] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`reverse`](/pixi-vn/index/interfaces/SoundPlayOptions#reverse) *** ### ~~speed?~~ [#speed] \> `optional` **speed?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L38) #### Deprecated [#deprecated-1] Use [playbackRate](/pixi-vn/index/interfaces/SoundOptions#playbackrate) instead. #### Inherited from [#inherited-from-13] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`speed`](/pixi-vn/index/interfaces/SoundPlayOptions#speed) *** ### volume? [#volume] \> `optional` **volume?**: `number` Defined in: [src/sound/interfaces/SoundOptions.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundOptions.ts#L21) The volume of this sound in the linear range \[0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player. #### Inherited from [#inherited-from-14] [`SoundPlayOptions`](/pixi-vn/index/interfaces/SoundPlayOptions).[`volume`](/pixi-vn/index/interfaces/SoundPlayOptions#volume) # Interface: SoundUnsavedInterface (/pixi-vn/index/interfaces/SoundUnsavedInterface) Defined in: [src/sound/interfaces/SoundUnsavedInterface.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundUnsavedInterface.ts#L3) ## Methods [#methods] ### pauseAll() [#pauseall] \> **pauseAll**(`channel?`): `this` Defined in: [src/sound/interfaces/SoundUnsavedInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundUnsavedInterface.ts#L26) Temporarily pause all currently-playing sounds (or just those in the given channel) without persisting the paused state. Useful for overlays / pause menus. Only sounds that are **actively playing** at the time of the call are paused; sounds that were already paused beforehand are left untouched so that they remain paused when [resumeAll](#resumeall) is called later. When called without a channel argument all transient players started with [playTransient](#playtransient) are also stopped. #### Parameters [#parameters] ##### channel? [#channel] `string` #### Returns [#returns] `this` *** ### playTransient() [#playtransient] \> **playTransient**(`alias`, `options?`): `Promise`\<`Player`> Defined in: [src/sound/interfaces/SoundUnsavedInterface.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundUnsavedInterface.ts#L10) Plays a non-persistent ("transient") sound (e.g. UI / menu sounds). Transient playback is not tracked in save/export state. Pass `channel` to route the player through an audio channel. The player remains transient while using that channel's volume, mute, and filters. #### Parameters [#parameters-1] ##### alias [#alias] `string` ##### options? [#options] `Partial`\<`PlayerOptions`> & `object` #### Returns [#returns-1] `Promise`\<`Player`> *** ### resumeAll() [#resumeall] \> **resumeAll**(`channel?`): `this` Defined in: [src/sound/interfaces/SoundUnsavedInterface.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundUnsavedInterface.ts#L32) Resume all sounds (or just those in the given channel) that were paused by the most recent call to [pauseAll](#pauseall). Sounds that were already paused before `pauseAll` was called are **not** resumed. #### Parameters [#parameters-2] ##### channel? [#channel-1] `string` #### Returns [#returns-2] `this` *** ### stopTransientAll() [#stoptransientall] \> **stopTransientAll**(): `this` Defined in: [src/sound/interfaces/SoundUnsavedInterface.ts:36](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/interfaces/SoundUnsavedInterface.ts#L36) Stop all transient media instances started with [playTransient](#playtransient). #### Returns [#returns-3] `this` # Interface: SplitInOutProps (/pixi-vn/index/interfaces/SplitInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:121](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L121) Shared options for the mask-based reveal/conceal transitions ([WipeInOutProps](/pixi-vn/index/interfaces/WipeInOutProps), [IrisInOutProps](/pixi-vn/index/interfaces/IrisInOutProps), SplitInOutProps). ## Extends [#extends] * [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `MaskTransitionProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/MaskTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/MaskTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounce`](/pixi-vn/index/interfaces/MaskTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/MaskTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/MaskTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/MaskTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`damping`](/pixi-vn/index/interfaces/MaskTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`delay`](/pixi-vn/index/interfaces/MaskTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/MaskTransitionProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"inward"` | `"outward"` Defined in: [src/canvas/interfaces/transition-props.ts:128](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L128) `"inward"`: reveal from the edges towards the split line; conceal from the split line outwards. `"outward"`: reveal from the split line towards the edges; conceal from the edges inwards. During replacement, the old component uses the opposite mode so its conceal follows the reveal. #### Default [#default-3] ```ts "inward" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`driver`](/pixi-vn/index/interfaces/MaskTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`duration`](/pixi-vn/index/interfaces/MaskTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`ease`](/pixi-vn/index/interfaces/MaskTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/MaskTransitionProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`from`](/pixi-vn/index/interfaces/MaskTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`inherit`](/pixi-vn/index/interfaces/MaskTransitionProps#inherit) *** ### invert? [#invert] \> `optional` **invert?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L85) If true, the effect is inverted: a "reveal" mask conceals instead, and vice versa. #### Default [#default-4] ```ts false ``` #### Inherited from [#inherited-from-16] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`invert`](/pixi-vn/index/interfaces/MaskTransitionProps#invert) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`isSync`](/pixi-vn/index/interfaces/MaskTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`mass`](/pixi-vn/index/interfaces/MaskTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`max`](/pixi-vn/index/interfaces/MaskTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`min`](/pixi-vn/index/interfaces/MaskTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/MaskTransitionProps#modifytarget) *** ### orientation? [#orientation] \> `optional` **orientation?**: `"horizontal"` | `"vertical"` Defined in: [src/canvas/interfaces/transition-props.ts:133](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L133) The axis the two mask panels move apart on/towards. #### Default [#default-6] ```ts "vertical" ``` *** ### origin? [#origin] \> `optional` **origin?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:139](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L139) The origin of the split line, normalized to the component's own bounds (`0` to `1` on the axis perpendicular to [orientation](#orientation)). #### Default [#default-7] ```ts 0.5 ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`path`](/pixi-vn/index/interfaces/MaskTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`power`](/pixi-vn/index/interfaces/MaskTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/MaskTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeat`](/pixi-vn/index/interfaces/MaskTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/MaskTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/MaskTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/MaskTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/MaskTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/MaskTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/MaskTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/MaskTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`startTime`](/pixi-vn/index/interfaces/MaskTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/MaskTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `MaskTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-36] `MaskTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/MaskTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`times`](/pixi-vn/index/interfaces/MaskTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`type`](/pixi-vn/index/interfaces/MaskTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`velocity`](/pixi-vn/index/interfaces/MaskTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/MaskTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`when`](/pixi-vn/index/interfaces/MaskTransitionProps#when) # Interface: SpriteBaseMemory (/pixi-vn/index/interfaces/SpriteBaseMemory) Defined in: [src/canvas/interfaces/memory/SpriteMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/SpriteMemory.ts#L7) Interface for the canvas base memory ## Extends [#extends] * `SpriteOptions` * [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) * [`ListenerExtensionMemory`](/pixi-vn/index/interfaces/ListenerExtensionMemory) * [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) ## Extended by [#extended-by] * [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory) * [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory) * [`SpriteMemory`](/pixi-vn/index/interfaces/SpriteMemory) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `SpriteOptions.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `SpriteOptions.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `SpriteOptions.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `SpriteOptions.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `SpriteOptions.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `SpriteOptions.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `SpriteOptions.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] `SpriteOptions.alpha` *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] `SpriteOptions.anchor` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] `SpriteOptions.angle` *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] `SpriteOptions.autoGarbageCollect` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] `SpriteOptions.blendMode` *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] `SpriteOptions.boundsArea` *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] `SpriteOptions.cacheAsTexture` *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] `SpriteOptions.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] `SpriteOptions.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] `SpriteOptions.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] `SpriteOptions.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] `SpriteOptions.cursor` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] `SpriteOptions.eventMode` *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] `SpriteOptions.filters` *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] `SpriteOptions.height` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] `SpriteOptions.hitArea` *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-24] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`index`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] `SpriteOptions.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] `SpriteOptions.interactiveChildren` *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] `SpriteOptions.isRenderGroup` *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-28] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`label`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from `SpriteOptions.mask` *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-29] `SpriteOptions.onclick` *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-30] `SpriteOptions.oncontextmenu` *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-31] [`ListenerExtensionMemory`](/pixi-vn/index/interfaces/ListenerExtensionMemory).[`onEvents`](/pixi-vn/index/interfaces/ListenerExtensionMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] `SpriteOptions.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-33] `SpriteOptions.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-34] `SpriteOptions.onglobaltouchmove` *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-35] `SpriteOptions.onmousedown` *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-36] `SpriteOptions.onmouseenter` *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-37] `SpriteOptions.onmouseleave` *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-38] `SpriteOptions.onmousemove` *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-39] `SpriteOptions.onmouseout` *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-40] `SpriteOptions.onmouseover` *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-41] `SpriteOptions.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-42] `SpriteOptions.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-43] `SpriteOptions.onpointercancel` *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-44] `SpriteOptions.onpointerdown` *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-45] `SpriteOptions.onpointerenter` *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-46] `SpriteOptions.onpointerleave` *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-47] `SpriteOptions.onpointermove` *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-48] `SpriteOptions.onpointerout` *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-49] `SpriteOptions.onpointerover` *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-50] `SpriteOptions.onpointertap` *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-51] `SpriteOptions.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-52] `SpriteOptions.onpointerupoutside` *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-53] `SpriteOptions.onRender` *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-54] `SpriteOptions.onrightclick` *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-55] `SpriteOptions.onrightdown` *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-56] `SpriteOptions.onrightup` *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-57] `SpriteOptions.onrightupoutside` *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-58] `SpriteOptions.ontap` *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-59] `SpriteOptions.ontouchcancel` *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-60] `SpriteOptions.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-61] `SpriteOptions.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-62] `SpriteOptions.ontouchmove` *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-63] `SpriteOptions.ontouchstart` *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-64] `SpriteOptions.onwheel` *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-65] `SpriteOptions.origin` *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-66] `SpriteOptions.parent` *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-67] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`parentLabel`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#parentlabel) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-69] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-70] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-71] `SpriteOptions.pivot` *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-72] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-73] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`pixivnId`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#pixivnid) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-74] `SpriteOptions.position` *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-75] `SpriteOptions.renderable` *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-76] `SpriteOptions.rotation` *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-77] `SpriteOptions.roundPixels` *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-78] `SpriteOptions.scale` *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-79] `SpriteOptions.setMask` *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-80] `SpriteOptions.skew` *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-81] `SpriteOptions.sortableChildren` *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-82] `SpriteOptions.sortDirty` *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-83] `SpriteOptions.tabIndex` *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-84] `SpriteOptions.texture` *** ### textureData? [#texturedata] > `optional` **textureData?**: [`AssetMemory`](/pixi-vn/index/interfaces/AssetMemory) Defined in: [src/canvas/interfaces/memory/SpriteMemory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/SpriteMemory.ts#L12) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-85] `SpriteOptions.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-86] `SpriteOptions.visible` *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-87] `SpriteOptions.width` *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-88] `SpriteOptions.x` *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-89] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-90] `SpriteOptions.y` *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-91] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-92] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`zIndex`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#zindex) # Interface: SpriteMemory (/pixi-vn/index/interfaces/SpriteMemory) Defined in: [src/canvas/interfaces/memory/SpriteMemory.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/SpriteMemory.ts#L18) Interface for the canvas sprite memory ## Extends [#extends] * [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessible`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleHint`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleText`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleTitle`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`accessibleType`](/pixi-vn/index/interfaces/SpriteBaseMemory#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`align`](/pixi-vn/index/interfaces/SpriteBaseMemory#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`alpha`](/pixi-vn/index/interfaces/SpriteBaseMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`anchor`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`angle`](/pixi-vn/index/interfaces/SpriteBaseMemory#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/SpriteBaseMemory#autogarbagecollect) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`blendMode`](/pixi-vn/index/interfaces/SpriteBaseMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`boundsArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/SpriteBaseMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`children`](/pixi-vn/index/interfaces/SpriteBaseMemory#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullable`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullableChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cullArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`cursor`](/pixi-vn/index/interfaces/SpriteBaseMemory#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`eventMode`](/pixi-vn/index/interfaces/SpriteBaseMemory#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`filters`](/pixi-vn/index/interfaces/SpriteBaseMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`height`](/pixi-vn/index/interfaces/SpriteBaseMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`hitArea`](/pixi-vn/index/interfaces/SpriteBaseMemory#hitarea) *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-24] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`index`](/pixi-vn/index/interfaces/SpriteBaseMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`interactive`](/pixi-vn/index/interfaces/SpriteBaseMemory#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`interactiveChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/SpriteBaseMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-28] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`label`](/pixi-vn/index/interfaces/SpriteBaseMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`mask`](/pixi-vn/index/interfaces/SpriteBaseMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-29] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onclick`](/pixi-vn/index/interfaces/SpriteBaseMemory#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-30] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`oncontextmenu`](/pixi-vn/index/interfaces/SpriteBaseMemory#oncontextmenu) *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-31] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onEvents`](/pixi-vn/index/interfaces/SpriteBaseMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobalmousemove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-33] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobalpointermove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-34] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onglobaltouchmove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-35] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmousedown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-36] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseenter`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-37] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseleave`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-38] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmousemove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-39] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseout`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-40] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseover`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-41] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-42] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onmouseupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-43] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointercancel`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-44] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerdown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-45] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerenter`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-46] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerleave`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-47] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointermove`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-48] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerout`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-49] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerover`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-50] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointertap`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-51] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-52] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onpointerupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-53] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onRender`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-54] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightclick`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-55] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightdown`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-56] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightup`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-57] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onrightupoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-58] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontap`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-59] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchcancel`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-60] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchend`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-61] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchendoutside`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-62] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchmove`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-63] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`ontouchstart`](/pixi-vn/index/interfaces/SpriteBaseMemory#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-64] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`onwheel`](/pixi-vn/index/interfaces/SpriteBaseMemory#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-65] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-66] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-67] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`parentLabel`](/pixi-vn/index/interfaces/SpriteBaseMemory#parentlabel) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentagePosition`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-69] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentageX`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-70] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`percentageY`](/pixi-vn/index/interfaces/SpriteBaseMemory#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-71] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pivot`](/pixi-vn/index/interfaces/SpriteBaseMemory#pivot) *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-72] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/SpriteBaseMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-73] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`pixivnId`](/pixi-vn/index/interfaces/SpriteBaseMemory#pixivnid) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-74] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`position`](/pixi-vn/index/interfaces/SpriteBaseMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-75] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`renderable`](/pixi-vn/index/interfaces/SpriteBaseMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-76] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`rotation`](/pixi-vn/index/interfaces/SpriteBaseMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-77] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`roundPixels`](/pixi-vn/index/interfaces/SpriteBaseMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-78] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`scale`](/pixi-vn/index/interfaces/SpriteBaseMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-79] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`setMask`](/pixi-vn/index/interfaces/SpriteBaseMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-80] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`skew`](/pixi-vn/index/interfaces/SpriteBaseMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-81] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`sortableChildren`](/pixi-vn/index/interfaces/SpriteBaseMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-82] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`sortDirty`](/pixi-vn/index/interfaces/SpriteBaseMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-83] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`tabIndex`](/pixi-vn/index/interfaces/SpriteBaseMemory#tabindex) *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-84] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`texture`](/pixi-vn/index/interfaces/SpriteBaseMemory#texture) *** ### textureData? [#texturedata] > `optional` **textureData?**: [`AssetMemory`](/pixi-vn/index/interfaces/AssetMemory) Defined in: [src/canvas/interfaces/memory/SpriteMemory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/SpriteMemory.ts#L12) #### Inherited from [#inherited-from-85] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`textureData`](/pixi-vn/index/interfaces/SpriteBaseMemory#texturedata) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-86] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`tint`](/pixi-vn/index/interfaces/SpriteBaseMemory#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-87] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`visible`](/pixi-vn/index/interfaces/SpriteBaseMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-88] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`width`](/pixi-vn/index/interfaces/SpriteBaseMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-89] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`x`](/pixi-vn/index/interfaces/SpriteBaseMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-90] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`xAlign`](/pixi-vn/index/interfaces/SpriteBaseMemory#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-91] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`y`](/pixi-vn/index/interfaces/SpriteBaseMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-92] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`yAlign`](/pixi-vn/index/interfaces/SpriteBaseMemory#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-93] [`SpriteBaseMemory`](/pixi-vn/index/interfaces/SpriteBaseMemory).[`zIndex`](/pixi-vn/index/interfaces/SpriteBaseMemory#zindex) # Interface: SpriteOptions (/pixi-vn/index/interfaces/SpriteOptions) Defined in: [src/canvas/interfaces/canvas-options.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L15) ## Extends [#extends] * `Omit`\<`PixiSpriteOptions`, `"on"`> * [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) ## Extended by [#extended-by] * [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `Omit.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `Omit.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `Omit.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `Omit.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `Omit.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `Omit.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `Omit.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`anchor`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`angle`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#autogarbagecollect) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] `Omit.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] `Omit.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] `Omit.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] `Omit.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`cursor`](/pixi-vn/index/classes/VideoSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`eventMode`](/pixi-vn/index/classes/VideoSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`filters`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`height`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`hitArea`](/pixi-vn/index/classes/VideoSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-24] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactive`](/pixi-vn/index/classes/VideoSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-25] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactiveChildren`](/pixi-vn/index/classes/VideoSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-26] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`mask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onclick`](/pixi-vn/index/classes/VideoSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`oncontextmenu`](/pixi-vn/index/classes/VideoSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalmousemove`](/pixi-vn/index/classes/VideoSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalpointermove`](/pixi-vn/index/classes/VideoSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-32] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/VideoSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousedown`](/pixi-vn/index/classes/VideoSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseenter`](/pixi-vn/index/classes/VideoSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseleave`](/pixi-vn/index/classes/VideoSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousemove`](/pixi-vn/index/classes/VideoSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseout`](/pixi-vn/index/classes/VideoSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseover`](/pixi-vn/index/classes/VideoSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseup`](/pixi-vn/index/classes/VideoSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseupoutside`](/pixi-vn/index/classes/VideoSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointercancel`](/pixi-vn/index/classes/VideoSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerdown`](/pixi-vn/index/classes/VideoSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerenter`](/pixi-vn/index/classes/VideoSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerleave`](/pixi-vn/index/classes/VideoSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointermove`](/pixi-vn/index/classes/VideoSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerout`](/pixi-vn/index/classes/VideoSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerover`](/pixi-vn/index/classes/VideoSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointertap`](/pixi-vn/index/classes/VideoSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerup`](/pixi-vn/index/classes/VideoSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerupoutside`](/pixi-vn/index/classes/VideoSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-51] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightclick`](/pixi-vn/index/classes/VideoSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightdown`](/pixi-vn/index/classes/VideoSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightup`](/pixi-vn/index/classes/VideoSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightupoutside`](/pixi-vn/index/classes/VideoSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontap`](/pixi-vn/index/classes/VideoSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchcancel`](/pixi-vn/index/classes/VideoSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchend`](/pixi-vn/index/classes/VideoSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchendoutside`](/pixi-vn/index/classes/VideoSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchmove`](/pixi-vn/index/classes/VideoSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchstart`](/pixi-vn/index/classes/VideoSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onwheel`](/pixi-vn/index/classes/VideoSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-63] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-64] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-68] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-69] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`position`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-70] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-71] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-72] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`roundPixels`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-73] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`scale`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-74] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-75] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`skew`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-76] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-77] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-78] `Omit.tabIndex` *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-79] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`texture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#texture) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-80] `Omit.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-81] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`visible`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-82] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`width`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-83] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`x`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-84] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-85] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`y`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-87] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) # Interface: StepLabelProps (/pixi-vn/index/interfaces/StepLabelProps) Defined in: [src/narration/interfaces/StepLabelProps.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StepLabelProps.ts#L17) StepLabelPropsType is the type of the props that will be passed to the StepLabel. You can override this interface to add your own props. ## Default [#default] ```ts {} ``` ## Example [#example] ```ts // pixi-vn.d.ts declare module '@drincs/pixi-vn' { interface StepLabelProps { navigate: (route: string) => void, [key: string]: any } } ``` # Interface: StepLabelResult (/pixi-vn/index/interfaces/StepLabelResult) Defined in: [src/narration/interfaces/StepLabelResult.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StepLabelResult.ts#L18) StepLabelResultType is the return type of the StepLabel function. It can be useful for returning to the information calling function to perform other operations that cannot be performed within the StepLabel. You can override this interface to add your own return types. ## Default [#default] ```ts {} ``` ## Example [#example] ```ts // pixi-vn.d.ts declare module '@drincs/pixi-vn' { interface StepLabelResult { newRoute?: string, [key: string]: any } } ``` # Interface: StorageExternalStoreHandler (/pixi-vn/index/interfaces/StorageExternalStoreHandler) Defined in: [src/storage/interfaces/StorageExternalStoreHandler.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageExternalStoreHandler.ts#L3) ## Properties [#properties] ### onClearOldTempVariable? [#onclearoldtempvariable] \> `optional` **onClearOldTempVariable?**: (`key`) => `void` Defined in: [src/storage/interfaces/StorageExternalStoreHandler.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageExternalStoreHandler.ts#L13) Triggered when a temp variable is removed by [StorageRegistry.clearOldTempVariables](/pixi-vn/index/namespaces/StorageRegistry/functions/clearOldTempVariables). The key is provided without any storage prefix. #### Parameters [#parameters] ##### key [#key] `string` #### Returns [#returns] `void` *** ### onRemoveVariable? [#onremovevariable] \> `optional` **onRemoveVariable?**: (`key`) => `void` Defined in: [src/storage/interfaces/StorageExternalStoreHandler.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageExternalStoreHandler.ts#L18) Triggered when [StorageRegistry.removeVariable](/pixi-vn/index/namespaces/StorageRegistry/functions/removeVariable) is called. The key is provided without any storage prefix. #### Parameters [#parameters-1] ##### key [#key-1] `string` #### Returns [#returns-1] `void` *** ### onSetVariable? [#onsetvariable] \> `optional` **onSetVariable?**: (`key`, `value`) => `void` Defined in: [src/storage/interfaces/StorageExternalStoreHandler.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageExternalStoreHandler.ts#L8) Triggered when [StorageRegistry.setVariable](/pixi-vn/index/namespaces/StorageRegistry/functions/setVariable) is called. The key is provided without any storage prefix. #### Parameters [#parameters-2] ##### key [#key-2] `string` ##### value [#value] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) #### Returns [#returns-2] `void` # Interface: StorageFlagsInterface (/pixi-vn/index/interfaces/StorageFlagsInterface) Defined in: [src/storage/interfaces/StorageFlagsInterface.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageFlagsInterface.ts#L1) ## Methods [#methods] ### get() [#get] \> **get**(`key`): `boolean` Defined in: [src/storage/interfaces/StorageFlagsInterface.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageFlagsInterface.ts#L13) Get the value of a flag #### Parameters [#parameters] ##### key [#key] `string` The name of the flag #### Returns [#returns] `boolean` The value of the flag *** ### set() [#set] \> **set**(`key`, `value`): `void` Defined in: [src/storage/interfaces/StorageFlagsInterface.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageFlagsInterface.ts#L7) Set a flag to true or false. #### Parameters [#parameters-1] ##### key [#key-1] `string` The name of the flag ##### value [#value] `boolean` The value of the flag. #### Returns [#returns-1] `void` # Interface: StorageGameState (/pixi-vn/index/interfaces/StorageGameState) Defined in: [src/storage/interfaces/StorageGameState.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageGameState.ts#L11) Interface exported storage data ## Properties [#properties] ### ~~base?~~ [#base] \> `optional` **base?**: `StorageGameStateItem`\<[`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType)>\[] Defined in: [src/storage/interfaces/StorageGameState.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageGameState.ts#L15) #### Deprecated [#deprecated] *** ### ~~flags?~~ [#flags] \> `optional` **flags?**: `string`\[] Defined in: [src/storage/interfaces/StorageGameState.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageGameState.ts#L24) #### Deprecated [#deprecated-1] *** ### main [#main] \> **main**: `StorageGameStateItem`\<[`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType)>\[] Defined in: [src/storage/interfaces/StorageGameState.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageGameState.ts#L25) *** ### ~~temp?~~ [#temp] \> `optional` **temp?**: `StorageGameStateItem`\<[`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType)>\[] Defined in: [src/storage/interfaces/StorageGameState.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageGameState.ts#L19) #### Deprecated [#deprecated-2] *** ### tempDeadlines [#tempdeadlines] \> **tempDeadlines**: `StorageGameStateItem`\<`number`>\[] Defined in: [src/storage/interfaces/StorageGameState.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageGameState.ts#L20) # Interface: StorageManagerInterface (/pixi-vn/index/interfaces/StorageManagerInterface) Defined in: [src/storage/interfaces/StorageManagerInterface.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L8) ## Properties [#properties] ### base [#base] \> `readonly` **base**: `Map`\<`string`, [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType)> Defined in: [src/storage/interfaces/StorageManagerInterface.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L26) The internal storage. **Do not modify this directly.** ATTENTION: If you edit this directly, the [cache](#cache) will not be updated. You can use Keyv with Pixi’VN by creating a new instance of Keyv and passing the storage object as a parameter. ```ts import { storage } from '@drincs/pixi-vn' import Keyv from 'keyv'; const keyvStorage = new Keyv({ store: storage.base }); keyvStorage.get("myValue").then((value) => { console.log(value); }); ``` *** ### cache [#cache] \> `readonly` **cache**: `LRUCache`\<`string`, `any`, `unknown`> Defined in: [src/storage/interfaces/StorageManagerInterface.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L30) The internal cache. **Do not modify this directly.** *** ### flags [#flags] \> `readonly` **flags**: [`StorageFlagsInterface`](/pixi-vn/index/interfaces/StorageFlagsInterface) Defined in: [src/storage/interfaces/StorageManagerInterface.ts:93](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L93) Namespace for operations on flags. *** ### temp [#temp] \> `readonly` **temp**: [`StorageTempInterface`](/pixi-vn/index/interfaces/StorageTempInterface) Defined in: [src/storage/interfaces/StorageManagerInterface.ts:74](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L74) Namespace for operations on temporary storage variables, whose lifespan is expressed in number of opened labels. ## Accessors [#accessors] ### default [#default] #### Set Signature [#set-signature] \> **set** **default**(`value`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:36](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L36) Set the starting storage. The starting storage that will be used when the game starts. **If variables are defined inside it, they can be edited during the game, but if you delete them, they will be restored to the starting storage.** By default, the starting storage is empty. ##### Parameters [#parameters] ###### value [#value] \{\[`key`: `string`]: [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType); } ##### Returns [#returns] `void` ## Methods [#methods] ### clear() [#clear] \> **clear**(): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:132](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L132) Clear the storage and the oidsUsed #### Returns [#returns-1] `void` *** ### export() [#export] \> **export**(): `Promise`\<[`StorageGameState`](/pixi-vn/index/interfaces/StorageGameState)> Defined in: [src/storage/interfaces/StorageManagerInterface.ts:137](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L137) Export the storage to an object #### Returns [#returns-2] `Promise`\<[`StorageGameState`](/pixi-vn/index/interfaces/StorageGameState)> The object *** ### get() [#get] \> **get**\<`T`>(`key`): `T` | `undefined` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:49](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L49) Get a variable from the storage. If the variable is a temporary variable, it will return the temporary variable #### Type Parameters [#type-parameters] ##### T [#t] `T` = [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) #### Parameters [#parameters-1] ##### key [#key] `string` The key of the variable #### Returns [#returns-3] `T` | `undefined` The value of the variable. If the variable does not exist, it will return undefined *** ### ~~getFlag()~~ [#getflag] \> **getFlag**(`key`): `boolean` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:89](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L89) Get the value of a flag #### Parameters [#parameters-2] ##### key [#key-1] `string` The name of the flag #### Returns [#returns-4] `boolean` The value of the flag #### Deprecated [#deprecated] Use [flags](#flags).get instead. *** ### remove() [#remove] \> **remove**(`key`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:55](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L55) Remove a variable from the storage #### Parameters [#parameters-3] ##### key [#key-2] `string` The key of the variable #### Returns [#returns-5] `void` *** ### ~~removeTempVariable()~~ [#removetempvariable] \> **removeTempVariable**(`key`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:70](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L70) Remove a temporary variable #### Parameters [#parameters-4] ##### key [#key-3] `string` The key of the temporary variable #### Returns [#returns-6] `void` #### Deprecated [#deprecated-1] Use [temp](#temp).remove instead. *** ### restore() [#restore] \> **restore**(`data`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:142](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L142) Restore the storage from an object #### Parameters [#parameters-5] ##### data [#data] [`StorageGameState`](/pixi-vn/index/interfaces/StorageGameState) The object #### Returns [#returns-7] `void` *** ### set() [#set] \> **set**(`key`, `value`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L43) Set a variable in the storage #### Parameters [#parameters-6] ##### key [#key-4] `string` The key of the variable ##### value [#value-1] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The value of the variable. If undefined, the variable will be removed #### Returns [#returns-8] `void` *** ### ~~setFlag()~~ [#setflag] \> **setFlag**(`key`, `value`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:82](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L82) Set a flag to true or false. #### Parameters [#parameters-7] ##### key [#key-5] `string` The name of the flag ##### value [#value-2] `boolean` The value of the flag. #### Returns [#returns-9] `void` #### Deprecated [#deprecated-2] Use [flags](#flags).set instead. *** ### setStorageHandler() [#setstoragehandler] \> **setStorageHandler**(`value?`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:127](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L127) Configure the handler used to mirror game storage changes into an external reactive store. Call this at any time to start/stop mirroring. #### Parameters [#parameters-8] ##### value? [#value-3] [`StorageExternalStoreHandler`](/pixi-vn/index/interfaces/StorageExternalStoreHandler) The handler to set. If undefined, the handler will be removed. #### Returns [#returns-10] `void` #### Example [#example] ```ts import { Store } from '@tanstack/store' // Create a TanStack store that mirrors the game storage variables const gameStore = new Store>({}) storage.setStorageHandler({ onSetVariable: (key, value) => { gameStore.setState((state) => ({ ...state, [key]: value })) }, onRemoveVariable: (key) => { gameStore.setState((state) => { const next = { ...state } delete next[key] return next }) }, onClearOldTempVariable: (key) => { gameStore.setState((state) => { const next = { ...state } delete next[key] return next }) }, }) ``` *** ### ~~setTempVariable()~~ [#settempvariable] \> **setTempVariable**(`key`, `value`): `void` Defined in: [src/storage/interfaces/StorageManagerInterface.ts:64](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageManagerInterface.ts#L64) Set a variable in the temporary storage. The lifespan of the variable is the number of opened labels. To get the temporary variable, use [get](#get) #### Parameters [#parameters-9] ##### key [#key-6] `string` The key of the temporary variable ##### value [#value-4] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The value of the temporary variable. If undefined, the variable will be removed #### Returns [#returns-11] `void` #### Deprecated [#deprecated-3] Use [temp](#temp).set instead. # Interface: StorageTempInterface (/pixi-vn/index/interfaces/StorageTempInterface) Defined in: [src/storage/interfaces/StorageTempInterface.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageTempInterface.ts#L3) ## Properties [#properties] ### deadlines [#deadlines] \> `readonly` **deadlines**: `Map`\<`string`, `number`> Defined in: [src/storage/interfaces/StorageTempInterface.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageTempInterface.ts#L20) The deadlines of the temporary variables, expressed as the number of opened labels after which each variable will be removed. **Do not modify this directly.** ## Methods [#methods] ### remove() [#remove] \> **remove**(`key`): `void` Defined in: [src/storage/interfaces/StorageTempInterface.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageTempInterface.ts#L15) Remove a temporary variable #### Parameters [#parameters] ##### key [#key] `string` The key of the temporary variable #### Returns [#returns] `void` *** ### set() [#set] \> **set**(`key`, `value`): `void` Defined in: [src/storage/interfaces/StorageTempInterface.ts:10](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/interfaces/StorageTempInterface.ts#L10) Set a variable in the temporary storage. The lifespan of the variable is the number of opened labels. To get the temporary variable, use [StorageManagerInterface.get](/pixi-vn/index/interfaces/StorageManagerInterface#get) #### Parameters [#parameters-1] ##### key [#key-1] `string` The key of the temporary variable ##### value [#value] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) The value of the temporary variable. If undefined, the variable will be removed #### Returns [#returns-1] `void` # Interface: SwayEffectProps (/pixi-vn/index/interfaces/SwayEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:119](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L119) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), SwayEffectProps): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:130](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L130) The rotational drift (in degrees) away from the component's current angle, on the first repetition. #### Default [#default-1] ```ts 5 ``` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### axis? [#axis] \> `optional` **axis?**: `"horizontal"` | `"vertical"` Defined in: [src/canvas/interfaces/effect-props.ts:135](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L135) The axis the positional drift moves along. #### Default [#default-2] ```ts "horizontal" ``` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-3] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-4] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-5] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### distance? [#distance] \> `optional` **distance?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:124](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L124) The distance (in pixels) of the positional drift, on the first repetition. #### Default [#default-6] ```ts 10 ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-7] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### repetitions? [#repetitions] \> `optional` **repetitions?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:140](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L140) The number of repetitions. #### Default [#default-8] ```ts 3 ``` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-9] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: TextMemory (/pixi-vn/index/interfaces/TextMemory) Defined in: [src/canvas/interfaces/memory/TextMemory.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/TextMemory.ts#L9) Interface for the canvas text memory ## Extends [#extends] * `TextOptions` * [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) * [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) * [`ListenerExtensionMemory`](/pixi-vn/index/interfaces/ListenerExtensionMemory) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `TextOptions.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `TextOptions.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `TextOptions.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `TextOptions.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `TextOptions.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `TextOptions.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `TextOptions.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] `TextOptions.alpha` *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:136 The anchor point of the text that controls the origin point for positioning and rotation. Can be a number (same value for x/y) or a PointData object. * (0,0) is top-left * (0.5,0.5) is center * (1,1) is bottom-right ```ts // Set anchor to center const text = new Text({ text: 'Hello Pixi!', anchor: 0.5 // Same as { x: 0.5, y: 0.5 } }); // Set anchor to top-left const text2 = new Text({ text: 'Hello Pixi!', anchor: { x: 0, y: 0 } // Top-left corner }); // Set anchor to bottom-right const text3 = new Text({ text: 'Hello Pixi!', anchor: { x: 1, y: 1 } // Bottom-right corner }); ``` #### Default [#default-8] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-9] `TextOptions.anchor` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] `TextOptions.angle` *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] `TextOptions.autoGarbageCollect` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] `TextOptions.blendMode` *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] `TextOptions.boundsArea` *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] `TextOptions.cacheAsTexture` *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] `TextOptions.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] `TextOptions.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] `TextOptions.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] `TextOptions.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] `TextOptions.cursor` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] `TextOptions.eventMode` *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] `TextOptions.filters` *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] `TextOptions.height` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] `TextOptions.hitArea` *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-24] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`index`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] `TextOptions.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] `TextOptions.interactiveChildren` *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] `TextOptions.isRenderGroup` *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-28] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`label`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from `TextOptions.mask` *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-29] `TextOptions.onclick` *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-30] `TextOptions.oncontextmenu` *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-31] [`ListenerExtensionMemory`](/pixi-vn/index/interfaces/ListenerExtensionMemory).[`onEvents`](/pixi-vn/index/interfaces/ListenerExtensionMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] `TextOptions.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-33] `TextOptions.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-34] `TextOptions.onglobaltouchmove` *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-35] `TextOptions.onmousedown` *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-36] `TextOptions.onmouseenter` *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-37] `TextOptions.onmouseleave` *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-38] `TextOptions.onmousemove` *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-39] `TextOptions.onmouseout` *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-40] `TextOptions.onmouseover` *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-41] `TextOptions.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-42] `TextOptions.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-43] `TextOptions.onpointercancel` *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-44] `TextOptions.onpointerdown` *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-45] `TextOptions.onpointerenter` *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-46] `TextOptions.onpointerleave` *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-47] `TextOptions.onpointermove` *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-48] `TextOptions.onpointerout` *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-49] `TextOptions.onpointerover` *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-50] `TextOptions.onpointertap` *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-51] `TextOptions.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-52] `TextOptions.onpointerupoutside` *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-53] `TextOptions.onRender` *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-54] `TextOptions.onrightclick` *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-55] `TextOptions.onrightdown` *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-56] `TextOptions.onrightup` *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-57] `TextOptions.onrightupoutside` *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-58] `TextOptions.ontap` *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-59] `TextOptions.ontouchcancel` *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-60] `TextOptions.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-61] `TextOptions.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-62] `TextOptions.ontouchmove` *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-63] `TextOptions.ontouchstart` *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-64] `TextOptions.onwheel` *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-65] `TextOptions.origin` *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-66] `TextOptions.parent` *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-67] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`parentLabel`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#parentlabel) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-69] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-70] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-71] `TextOptions.pivot` *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-72] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-73] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`pixivnId`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#pixivnid) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-74] `TextOptions.position` *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-75] `TextOptions.renderable` *** ### resolution? [#resolution] > `optional` **resolution?**: `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:175 The resolution/device pixel ratio for rendering. Higher values result in sharper text at the cost of performance. Set to null for auto-resolution based on device. #### Example [#example-61] ```ts const text = new Text({ text: 'Hello Pixi!', resolution: 2 // High DPI for sharper text }); const autoResText = new Text({ text: 'Auto Resolution', resolution: null // Use device's pixel ratio }); ``` #### Default [#default-52] ```ts null ``` #### Inherited from [#inherited-from-76] `TextOptions.resolution` *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-77] `TextOptions.rotation` *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:225 Whether to round the x/y position to whole pixels. Enabling can prevent anti-aliasing of text edges but may cause slight position shifting. #### Example [#example-63] ````ts const text = new Text({ text: 'Rounded Text', roundPixels: true // Rounds position to whole pixels }); @default false #### Inherited from `TextOptions.roundPixels` *** ### scale? > `optional` **scale?**: `number` \| `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ```` #### Inherited from [#inherited-from-78] `TextOptions.scale` *** ### setMask? [#setmask] \> `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-79] `TextOptions.setMask` *** ### skew? [#skew] \> `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-64] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-80] `TextOptions.skew` *** ### sortableChildren? [#sortablechildren] \> `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-65] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-81] `TextOptions.sortableChildren` *** ### sortDirty? [#sortdirty] \> `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-82] `TextOptions.sortDirty` *** ### style? [#style] \> `optional` **style?**: `TextStyle` | `TextStyleOptions` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:213 The style configuration for the text. Can be a TextStyle instance or a configuration object. Supports canvas text styles, HTML text styles, and bitmap text styles. #### Example [#example-66] ````ts const text = new Text({ text: 'Styled Text', style: { fontSize: 24, fill: 0xff1010, // Red color fontFamily: 'Arial', align: 'center', // Center alignment stroke: { color: '#4a1850', width: 5 }, // Purple stroke dropShadow: { color: '#000000', // Black shadow blur: 4, // Shadow blur distance: 6 // Shadow distance } } }); const htmlText = new HTMLText({ text: 'HTML Styled Text', style: { fontSize: '20px', fill: 'blue', fontFamily: 'Verdana', } }); const bitmapText = new BitmapText({ text: 'Bitmap Styled Text', style: { fontName: 'Arial', fontSize: 32, } }) #### Inherited from `TextOptions.style` *** ### tabIndex? > `optional` **tabIndex?**: `number` Defined in: node\_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default ```ts 0 ```` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-83] `TextOptions.tabIndex` *** ### text? [#text] > `optional` **text?**: `TextString` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:157 The text content to display. Use '\n' for line breaks. Accepts strings, numbers, or objects with toString() method. #### Example [#example-68] ```ts const text = new Text({ text: 'Hello Pixi!', }); const multilineText = new Text({ text: 'Line 1\nLine 2\nLine 3', }); const numberText = new Text({ text: 12345, // Will be converted to '12345' }); const objectText = new Text({ text: { toString: () => 'Object Text' }, // Custom toString }); ``` #### Default [#default-56] ```ts '' ``` #### Inherited from [#inherited-from-84] `TextOptions.text` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-57] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-85] `TextOptions.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-58] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-86] `TextOptions.visible` *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-59] ```ts 0 ``` #### Inherited from [#inherited-from-87] `TextOptions.width` *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-88] `TextOptions.x` *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-89] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-90] `TextOptions.y` *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-91] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-92] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory).[`zIndex`](/pixi-vn/index/interfaces/CanvasBaseItemMemory#zindex) # Interface: TextOptions (/pixi-vn/index/interfaces/TextOptions) Defined in: [src/canvas/interfaces/canvas-options.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L18) ## Extends [#extends] * `Omit`\<`CanvasTextOptions`, `"on"`> * [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `Omit.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `Omit.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `Omit.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `Omit.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `Omit.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `Omit.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `Omit.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`align`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:136 The anchor point of the text that controls the origin point for positioning and rotation. Can be a number (same value for x/y) or a PointData object. * (0,0) is top-left * (0.5,0.5) is center * (1,1) is bottom-right ```ts // Set anchor to center const text = new Text({ text: 'Hello Pixi!', anchor: 0.5 // Same as { x: 0.5, y: 0.5 } }); // Set anchor to top-left const text2 = new Text({ text: 'Hello Pixi!', anchor: { x: 0, y: 0 } // Top-left corner }); // Set anchor to bottom-right const text3 = new Text({ text: 'Hello Pixi!', anchor: { x: 1, y: 1 } // Bottom-right corner }); ``` #### Default [#default-8] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-9] `Omit.anchor` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`angle`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#autogarbagecollect) *** ### autoGenerateMipmaps? [#autogeneratemipmaps] \> `optional` **autoGenerateMipmaps?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:62 Whether to generate mipmaps for the text texture. Improves rendering quality when the text is scaled down. #### Default [#default-9] ```ts undefined - Falls back to TextureSource.defaultOptions.autoGenerateMipmaps ``` #### Inherited from [#inherited-from-12] `Omit.autoGenerateMipmaps` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-10] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-13] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-14] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-15] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-16] `Omit.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-11] ```ts false ``` #### Inherited from [#inherited-from-17] `Omit.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-12] ```ts true ``` #### Inherited from [#inherited-from-18] `Omit.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-19] `Omit.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-14] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-20] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`cursor`](/pixi-vn/index/classes/VideoSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-21] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`eventMode`](/pixi-vn/index/classes/VideoSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-22] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`filters`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-15] ```ts 0 ``` #### Inherited from [#inherited-from-23] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`height`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-24] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`hitArea`](/pixi-vn/index/classes/VideoSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactive`](/pixi-vn/index/classes/VideoSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-16] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactiveChildren`](/pixi-vn/index/classes/VideoSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`mask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onclick`](/pixi-vn/index/classes/VideoSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-19] ```ts null ``` #### Inherited from [#inherited-from-30] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`oncontextmenu`](/pixi-vn/index/classes/VideoSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalmousemove`](/pixi-vn/index/classes/VideoSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalpointermove`](/pixi-vn/index/classes/VideoSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-22] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-33] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/VideoSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousedown`](/pixi-vn/index/classes/VideoSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseenter`](/pixi-vn/index/classes/VideoSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseleave`](/pixi-vn/index/classes/VideoSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousemove`](/pixi-vn/index/classes/VideoSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseout`](/pixi-vn/index/classes/VideoSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseover`](/pixi-vn/index/classes/VideoSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseup`](/pixi-vn/index/classes/VideoSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseupoutside`](/pixi-vn/index/classes/VideoSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointercancel`](/pixi-vn/index/classes/VideoSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerdown`](/pixi-vn/index/classes/VideoSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerenter`](/pixi-vn/index/classes/VideoSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerleave`](/pixi-vn/index/classes/VideoSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointermove`](/pixi-vn/index/classes/VideoSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerout`](/pixi-vn/index/classes/VideoSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerover`](/pixi-vn/index/classes/VideoSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointertap`](/pixi-vn/index/classes/VideoSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerup`](/pixi-vn/index/classes/VideoSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-51] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerupoutside`](/pixi-vn/index/classes/VideoSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-52] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightclick`](/pixi-vn/index/classes/VideoSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightdown`](/pixi-vn/index/classes/VideoSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightup`](/pixi-vn/index/classes/VideoSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightupoutside`](/pixi-vn/index/classes/VideoSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontap`](/pixi-vn/index/classes/VideoSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchcancel`](/pixi-vn/index/classes/VideoSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchend`](/pixi-vn/index/classes/VideoSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchendoutside`](/pixi-vn/index/classes/VideoSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchmove`](/pixi-vn/index/classes/VideoSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchstart`](/pixi-vn/index/classes/VideoSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-51] ```ts null ``` #### Inherited from [#inherited-from-63] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onwheel`](/pixi-vn/index/classes/VideoSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-64] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-65] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentagePosition`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageX`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`percentageY`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-69] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-70] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`position`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-52] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-71] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#renderable) *** ### resolution? [#resolution] > `optional` **resolution?**: `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:175 The resolution/device pixel ratio for rendering. Higher values result in sharper text at the cost of performance. Set to null for auto-resolution based on device. #### Example [#example-61] ```ts const text = new Text({ text: 'Hello Pixi!', resolution: 2 // High DPI for sharper text }); const autoResText = new Text({ text: 'Auto Resolution', resolution: null // Use device's pixel ratio }); ``` #### Default [#default-53] ```ts null ``` #### Inherited from [#inherited-from-72] `Omit.resolution` *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-73] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:225 Whether to round the x/y position to whole pixels. Enabling can prevent anti-aliasing of text edges but may cause slight position shifting. #### Example [#example-63] ````ts const text = new Text({ text: 'Rounded Text', roundPixels: true // Rounds position to whole pixels }); @default false #### Inherited from `Omit.roundPixels` *** ### scale? > `optional` **scale?**: `number` \| `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ```` #### Inherited from [#inherited-from-74] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`scale`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#scale) *** ### setMask? [#setmask] \> `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-75] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#setmask) *** ### skew? [#skew] \> `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-64] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-54] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-76] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`skew`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] \> `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-65] ```ts container.sortableChildren = true; ``` #### Default [#default-55] ```ts false ``` #### Inherited from [#inherited-from-77] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] \> `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-56] ```ts false @internal ``` #### Inherited from [#inherited-from-78] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### style? [#style] \> `optional` **style?**: `TextStyle` | `TextStyleOptions` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:213 The style configuration for the text. Can be a TextStyle instance or a configuration object. Supports canvas text styles, HTML text styles, and bitmap text styles. #### Example [#example-66] ````ts const text = new Text({ text: 'Styled Text', style: { fontSize: 24, fill: 0xff1010, // Red color fontFamily: 'Arial', align: 'center', // Center alignment stroke: { color: '#4a1850', width: 5 }, // Purple stroke dropShadow: { color: '#000000', // Black shadow blur: 4, // Shadow blur distance: 6 // Shadow distance } } }); const htmlText = new HTMLText({ text: 'HTML Styled Text', style: { fontSize: '20px', fill: 'blue', fontFamily: 'Verdana', } }); const bitmapText = new BitmapText({ text: 'Bitmap Styled Text', style: { fontName: 'Arial', fontSize: 32, } }) #### Inherited from `Omit.style` *** ### tabIndex? > `optional` **tabIndex?**: `number` Defined in: node\_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default ```ts 0 ```` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-79] `Omit.tabIndex` *** ### text? [#text] > `optional` **text?**: `TextString` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:157 The text content to display. Use '\n' for line breaks. Accepts strings, numbers, or objects with toString() method. #### Example [#example-68] ```ts const text = new Text({ text: 'Hello Pixi!', }); const multilineText = new Text({ text: 'Line 1\nLine 2\nLine 3', }); const numberText = new Text({ text: 12345, // Will be converted to '12345' }); const objectText = new Text({ text: { toString: () => 'Object Text' }, // Custom toString }); ``` #### Default [#default-57] ```ts '' ``` #### Inherited from [#inherited-from-80] `Omit.text` *** ### textureStyle? [#texturestyle] > `optional` **textureStyle?**: `TextureStyleOptions` | `TextureStyle` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:56 Optional texture style for the text texture. Only `scaleMode` is read (`nearest` or `linear`): the text gets a pooled texture with that scale mode. Every other field is ignored. #### Example [#example-69] ```ts const text = new Text({ text: 'Crisp Text', textureStyle: { scaleMode: 'nearest', // Pixel-perfect scaling } }); ``` #### Advanced [#advanced-3] #### Inherited from [#inherited-from-81] `Omit.textureStyle` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-70] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-82] `Omit.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-71] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-83] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`visible`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-72] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-84] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`width`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-73] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-85] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`x`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`xAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-74] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-87] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`y`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-88] [`AdditionalPositionsExtensionProps`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps).[`yAlign`](/pixi-vn/index/interfaces/AdditionalPositionsExtensionProps#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-75] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-89] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) # Interface: Ticker (/pixi-vn/index/interfaces/Ticker) Defined in: [src/tickers/interfaces/Ticker.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L5) ## Type Parameters [#type-parameters] ### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) ## Properties [#properties] ### alias [#alias] \> `readonly` **alias**: `string` Defined in: [src/tickers/interfaces/Ticker.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L21) Get the alias of the ticker class. This variable is used in the system to get the ticker class by id, [RegisteredTickers.getInstance](/pixi-vn/index/namespaces/RegisteredTickers/functions/getInstance) *** ### args [#args] \> **args**: `TArgs` Defined in: [src/tickers/interfaces/Ticker.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L9) Arguments to pass to the ticker *** ### canvasElementAliases [#canvaselementaliases] \> **canvasElementAliases**: `string`\[] Defined in: [src/tickers/interfaces/Ticker.ts:29](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L29) The aliases of the canvas elements that are connected to this ticker *** ### complete [#complete] \> **complete**: (`options?`) => `void` | `Promise`\<`void`> Defined in: [src/tickers/interfaces/Ticker.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L33) Completes the animation and applies the final state. #### Parameters [#parameters] ##### options? [#options] ###### ignoreTickerSteps? [#ignoretickersteps] `boolean` #### Returns [#returns] `void` | `Promise`\<`void`> *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: [src/tickers/interfaces/Ticker.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L13) Duration in seconds to run the ticker *** ### id [#id] \> `readonly` **id**: `string` Defined in: [src/tickers/interfaces/Ticker.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L25) The id of the ticker. Must be unique for each ticker instance. *** ### pause [#pause] \> **pause**: () => `void` Defined in: [src/tickers/interfaces/Ticker.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L45) Pauses the animation. #### Returns [#returns-1] `void` *** ### paused [#paused] \> `readonly` **paused**: `boolean` Defined in: [src/tickers/interfaces/Ticker.ts:54](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L54) Checks if the ticker is paused. #### Returns [#returns-2] true if the ticker is paused, false otherwise. *** ### play [#play] \> **play**: () => `void` Defined in: [src/tickers/interfaces/Ticker.ts:49](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L49) Plays the animation. #### Returns [#returns-3] `void` *** ### priority? [#priority] \> `optional` **priority?**: `UPDATE_PRIORITY` Defined in: [src/tickers/interfaces/Ticker.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L17) Priority of the ticker *** ### start [#start] \> **start**: () => `void` Defined in: [src/tickers/interfaces/Ticker.ts:41](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L41) Starts the ticker. This will start the ticker and begin the animation. #### Returns [#returns-4] `void` *** ### stop [#stop] \> **stop**: () => `void` Defined in: [src/tickers/interfaces/Ticker.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/Ticker.ts#L37) Stops the animation at its current state, and prevents it from resuming when the animation is played again. #### Returns [#returns-5] `void` # Interface: TickerArgs (/pixi-vn/index/interfaces/TickerArgs) Defined in: [src/tickers/interfaces/TickerArgs.ts:2](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerArgs.ts#L2) # Interface: TickerHistory (/pixi-vn/index/interfaces/TickerHistory) Defined in: [src/tickers/interfaces/TickerInfo.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L19) ## Type Parameters [#type-parameters] ### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) ## Properties [#properties] ### args [#args] \> **args**: `TArgs` Defined in: [src/tickers/interfaces/TickerInfo.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L21) *** ### canvasElementAliases [#canvaselementaliases] \> **canvasElementAliases**: `string`\[] Defined in: [src/tickers/interfaces/TickerInfo.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L25) The aliases of the canvas elements that are connected to this ticker *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: [src/tickers/interfaces/TickerInfo.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L27) *** ### id [#id] \> **id**: `string` Defined in: [src/tickers/interfaces/TickerInfo.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L20) *** ### paused? [#paused] \> `optional` **paused?**: `boolean` Defined in: [src/tickers/interfaces/TickerInfo.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L28) *** ### priority? [#priority] \> `optional` **priority?**: `UPDATE_PRIORITY` Defined in: [src/tickers/interfaces/TickerInfo.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L26) # Interface: TickerInfo (/pixi-vn/index/interfaces/TickerInfo) Defined in: [src/tickers/interfaces/TickerInfo.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L8) TickerHistory is a class that contains the name of a class and the arguments that were used to create it. ## Type Parameters [#type-parameters] ### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) ## Properties [#properties] ### createdByTicketSteps? [#createdbyticketsteps] \> `optional` **createdByTicketSteps?**: `object` Defined in: [src/tickers/interfaces/TickerInfo.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L12) If this ticker was created by steps #### canvasElementAlias [#canvaselementalias] \> **canvasElementAlias**: `string` #### id [#id] \> **id**: `string` *** ### ticker [#ticker] \> **ticker**: [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> Defined in: [src/tickers/interfaces/TickerInfo.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerInfo.ts#L16) # Interface: TickerProgrationExponential (/pixi-vn/index/interfaces/TickerProgrationExponential) Defined in: [src/tickers/interfaces/TickerProgrationType.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L14) ## Properties [#properties] ### limit? [#limit] \> `optional` **limit?**: `number` Defined in: [src/tickers/interfaces/TickerProgrationType.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L22) The limit of the effect *** ### percentage [#percentage] \> **percentage**: `number` Defined in: [src/tickers/interfaces/TickerProgrationType.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L18) The percentage of the speed to increase every frame. if the percentage is 0.1, the speed will increase by 10% every frame. *** ### type [#type] \> **type**: `"exponential"` Defined in: [src/tickers/interfaces/TickerProgrationType.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L23) # Interface: TickerProgrationLinear (/pixi-vn/index/interfaces/TickerProgrationLinear) Defined in: [src/tickers/interfaces/TickerProgrationType.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L3) ## Properties [#properties] ### amt [#amt] \> **amt**: `number` Defined in: [src/tickers/interfaces/TickerProgrationType.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L7) The amount of the speed to increase every frame. *** ### limit? [#limit] \> `optional` **limit?**: `number` Defined in: [src/tickers/interfaces/TickerProgrationType.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L11) The limit of the effect *** ### type [#type] \> **type**: `"linear"` Defined in: [src/tickers/interfaces/TickerProgrationType.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L12) # Interface: TickerTimeoutHistory (/pixi-vn/index/interfaces/TickerTimeoutHistory) Defined in: [src/tickers/interfaces/TickerTimeoutHistory.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerTimeoutHistory.ts#L1) ## Properties [#properties] ### aliases [#aliases] \> **aliases**: `string`\[] Defined in: [src/tickers/interfaces/TickerTimeoutHistory.ts:2](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerTimeoutHistory.ts#L2) *** ### canBeDeletedBeforeEnd [#canbedeletedbeforeend] \> **canBeDeletedBeforeEnd**: `boolean` Defined in: [src/tickers/interfaces/TickerTimeoutHistory.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerTimeoutHistory.ts#L4) *** ### ticker [#ticker] \> **ticker**: `string` Defined in: [src/tickers/interfaces/TickerTimeoutHistory.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerTimeoutHistory.ts#L3) # Interface: TickerValue (/pixi-vn/index/interfaces/TickerValue) Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:67 A Ticker class that runs an update loop that other objects listen to. Used for managing animation frames and timing in a PixiJS application. It provides a way to add listeners that will be called on each frame, allowing for smooth animations and updates. ## Time Units [#time-units] * `deltaTime`: Dimensionless scalar (typically \~1.0 at 60 FPS) for frame-independent animations * `deltaMS`: Milliseconds elapsed (capped and speed-scaled) for time-based calculations * `elapsedMS`: Raw milliseconds elapsed (uncapped, unscaled) for measurements * `lastTime`: Timestamp in milliseconds since epoch (performance.now() format) Animation frames are requested only when necessary, e.g., when the ticker is started and the emitter has listeners. ## Example [#example] ```ts // Basic ticker usage with different time units const ticker = new Ticker(); ticker.add((ticker) => { // Frame-independent animation using dimensionless deltaTime sprite.rotation += 0.1 * ticker.deltaTime; // Time-based animation using deltaMS (milliseconds) sprite.x += (100 / 1000) * ticker.deltaMS; // 100 pixels per second }); ticker.start(); // Control update priority ticker.add( (ticker) => { // High priority updates run first physics.update(ticker.deltaTime); }, undefined, UPDATE_PRIORITY.HIGH ); // One-time updates ticker.addOnce(() => { console.log('Runs on next frame only'); }); ``` ## See [#see] * TickerPlugin For use with Application * [UPDATE_PRIORITY](/pixi-vn/index/variables/UPDATE_PRIORITY) For priority constants * TickerCallback For listener function type ## Standard [#standard] ## Properties [#properties] ### autoStart [#autostart] \> **autoStart**: `boolean` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:118 Whether or not this ticker should invoke the method [start](#start) automatically when a listener is added. #### Example [#example-1] ```ts // Default behavior (manual start) const ticker = new Ticker(); ticker.autoStart = false; ticker.add(() => { // Won't run until ticker.start() is called }); // Auto-start behavior const autoTicker = new Ticker(); autoTicker.autoStart = true; autoTicker.add(() => { // Runs immediately when added }); ``` #### Default [#default] ```ts false ``` #### See [#see-1] * [Ticker#start](#start) For manually starting the ticker * [Ticker#stop](#stop) For manually stopping the ticker *** ### deltaMS [#deltams] \> **deltaMS**: `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:160 Scalar time elapsed in milliseconds from last frame to this frame. Provides precise timing for animations and updates. This value is capped by setting [minFPS](#minfps) and is scaled with [speed](#speed). If the platform supports DOMHighResTimeStamp, this value will have a precision of 1 µs. Defaults to target frame time \> \[!NOTE] The cap may be exceeded by scaling. #### Example [#example-2] ```ts // Animation timing ticker.add((ticker) => { // Use millisecond timing for precise animations const progress = (ticker.deltaMS / animationDuration); sprite.alpha = Math.min(1, progress); }); ``` #### Default [#default-1] ```ts 16.66 ``` *** ### deltaTime [#deltatime] \> **deltaTime**: `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:135 Scalar representing the delta time factor. This is a dimensionless value representing the fraction of a frame at the target framerate. At 60 FPS, this value is typically around 1.0. This is NOT in milliseconds - it's a scalar multiplier for frame-independent animations. For actual milliseconds, use [Ticker#deltaMS](#deltams). #### Example [#example-3] ```ts // Frame-independent animation using deltaTime scalar ticker.add((ticker) => { // Rotate sprite by 0.1 radians per frame, scaled by deltaTime sprite.rotation += 0.1 * ticker.deltaTime; }); ``` *** ### elapsedMS [#elapsedms] \> **elapsedMS**: `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:173 Time elapsed in milliseconds from the last frame to this frame. This value is not capped or scaled and provides raw timing information. Unlike [Ticker#deltaMS](#deltams), this value is unmodified by speed scaling or FPS capping. #### Example [#example-4] ```ts ticker.add((ticker) => { console.log(`Raw frame time: ${ticker.elapsedMS}ms`); }); ``` *** ### lastTime [#lasttime] \> **lastTime**: `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:188 The last time update was invoked, in milliseconds since epoch. Similar to performance.now() timestamp format. Used internally for calculating time deltas between frames. #### Example [#example-5] ```ts ticker.add((ticker) => { const currentTime = performance.now(); const timeSinceLastFrame = currentTime - ticker.lastTime; console.log(`Time since last frame: ${timeSinceLastFrame}ms`); }); ``` *** ### speed [#speed] \> **speed**: `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:208 Factor of current [deltaTime](#deltatime). Used to scale time for slow motion or fast-forward effects. #### Example [#example-6] ```ts // Basic speed adjustment ticker.speed = 0.5; // Half speed (slow motion) ticker.speed = 2.0; // Double speed (fast forward) // Temporary speed changes function slowMotion() { const normalSpeed = ticker.speed; ticker.speed = 0.2; setTimeout(() => { ticker.speed = normalSpeed; }, 1000); } ``` *** ### started [#started] \> **started**: `boolean` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:229 Whether or not this ticker has been started. `true` if [start](#start) has been called. `false` if [Stop](#stop) has been called. While `false`, this value may change to `true` in the event of [autoStart](#autostart) being `true` and a listener is added. #### Example [#example-7] ```ts // Check ticker state const ticker = new Ticker(); console.log(ticker.started); // false // Start and verify ticker.start(); console.log(ticker.started); // true ``` ## Accessors [#accessors] ### count [#count] #### Get Signature [#get-signature] \> **get** **count**(): `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:397 The number of listeners on this ticker, calculated by walking through linked list. ##### Example [#example-8] ```ts // Check number of active listeners const ticker = new Ticker(); console.log(ticker.count); // 0 // Add some listeners ticker.add(() => {}); ticker.add(() => {}); console.log(ticker.count); // 2 // Check after cleanup ticker.destroy(); console.log(ticker.count); // 0 ``` ##### See [#see-2] * [Ticker#add](#add) For adding listeners * [Ticker#remove](#remove) For removing listeners ##### Returns [#returns] `number` *** ### FPS [#fps] #### Get Signature [#get-signature-1] \> **get** **FPS**(): `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:479 The frames per second at which this ticker is running. The default is approximately 60 in most modern browsers. \> \[!NOTE] This does not factor in the value of \> [speed](#speed), which is specific \> to scaling [deltaTime](#deltatime). ##### Example [#example-9] ```ts // Basic FPS monitoring ticker.add(() => { console.log(`Current FPS: ${Math.round(ticker.FPS)}`); }); ``` ##### Returns [#returns-1] `number` *** ### maxFPS [#maxfps] #### Get Signature [#get-signature-2] \> **get** **maxFPS**(): `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:535 Manages the minimum amount of milliseconds required to elapse between invoking [update](#update). This will effect the measured value of [FPS](#fps). If it is set to `0`, then there is no limit; PixiJS will render as many frames as it can. Otherwise it will be at least `minFPS`. If `maxFPS` is set below the current `minFPS`, `minFPS` is automatically lowered to match. This keeps the two limits consistent. ##### Example [#example-10] ```ts // Cap the frame rate const ticker = new Ticker(); ticker.maxFPS = 60; // Never go above 60 FPS // Use with minFPS for frame rate clamping ticker.minFPS = 30; ticker.maxFPS = 60; // maxFPS below minFPS pushes minFPS down ticker.maxFPS = 20; // minFPS is now also 20 ``` ##### Default [#default-2] ```ts 0 ``` ##### Returns [#returns-2] `number` #### Set Signature [#set-signature] \> **set** **maxFPS**(`fps`): `void` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:536 ##### Parameters [#parameters] ###### fps [#fps-1] `number` ##### Returns [#returns-3] `void` *** ### minFPS [#minfps] #### Get Signature [#get-signature-3] \> **get** **minFPS**(): `number` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:507 Manages the maximum amount of milliseconds allowed to elapse between invoking [update](#update). This value is used to cap [deltaTime](#deltatime), but does not effect the measured value of [FPS](#fps). When setting this property it is clamped to a value between `0` and `Ticker.targetFPMS * 1000` (typically 60). If `maxFPS` is currently set (non-zero) and `minFPS` is set above it, `maxFPS` is automatically raised to match. This keeps the two limits consistent. ##### Example [#example-11] ```ts // Set minimum acceptable frame rate const ticker = new Ticker(); ticker.minFPS = 30; // Never go below 30 FPS // Use with maxFPS for frame rate clamping ticker.minFPS = 30; ticker.maxFPS = 60; // minFPS above maxFPS pushes maxFPS up ticker.minFPS = 50; // maxFPS is raised to 50 ``` ##### Default [#default-3] ```ts 10 ``` ##### Returns [#returns-4] `number` #### Set Signature [#set-signature-1] \> **set** **minFPS**(`fps`): `void` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:508 ##### Parameters [#parameters-1] ###### fps [#fps-2] `number` ##### Returns [#returns-5] `void` ## Methods [#methods] ### add() [#add] \> **add**\<`T`>(`fn`, `context?`, `priority?`): `this` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:296 Register a handler for tick events. #### Type Parameters [#type-parameters] ##### T [#t] `T` = `any` #### Parameters [#parameters-2] ##### fn [#fn] `TickerCallback`\<`T`> The listener function to add. Receives the Ticker instance as parameter ##### context? [#context] `T` The context for the listener ##### priority? [#priority] `number` The priority of the listener #### Returns [#returns-6] `this` #### Example [#example-12] ```ts // Access time properties through the ticker parameter ticker.add((ticker) => { // Use deltaTime (dimensionless scalar) for frame-independent animations sprite.rotation += 0.1 * ticker.deltaTime; // Use deltaMS (milliseconds) for time-based calculations const progress = ticker.deltaMS / animationDuration; // Use elapsedMS for raw timing measurements console.log(`Raw frame time: ${ticker.elapsedMS}ms`); }); ``` *** ### addOnce() [#addonce] \> **addOnce**\<`T`>(`fn`, `context?`, `priority?`): `this` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:332 Add a handler for the tick event which is only executed once on the next frame. #### Type Parameters [#type-parameters-1] ##### T [#t-1] `T` = `any` #### Parameters [#parameters-3] ##### fn [#fn-1] `TickerCallback`\<`T`> The listener function to be added for one update ##### context? [#context-1] `T` The listener context ##### priority? [#priority-1] `number` The priority for emitting (default: UPDATE_PRIORITY.NORMAL) #### Returns [#returns-7] `this` This instance of a ticker #### Example [#example-13] ```ts // Basic one-time update ticker.addOnce(() => { console.log('Runs next frame only'); }); // With specific context const game = { init(ticker) { this.loadResources(); console.log('Game initialized'); } }; ticker.addOnce(game.init, game); // With priority ticker.addOnce( () => { // High priority one-time setup physics.init(); }, undefined, UPDATE_PRIORITY.HIGH ); ``` #### See [#see-3] * [Ticker#add](#add) For continuous updates * [Ticker#remove](#remove) For removing handlers *** ### destroy() [#destroy] \> **destroy**(): `void` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:439 Destroy the ticker and don't use after this. Calling this method removes all references to internal events. #### Returns [#returns-8] `void` #### Example [#example-14] ```ts // Clean up with active listeners const ticker = new Ticker(); ticker.add(() => {}); ticker.destroy(); // Removes all listeners ``` #### See [#see-4] * [Ticker#stop](#stop) For stopping without destroying * [Ticker#remove](#remove) For removing specific listeners *** ### remove() [#remove] \> **remove**\<`T`>(`fn`, `context?`): `this` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:375 Removes any handlers matching the function and context parameters. If no handlers are left after removing, then it cancels the animation frame. #### Type Parameters [#type-parameters-2] ##### T [#t-2] `T` = `any` #### Parameters [#parameters-4] ##### fn [#fn-2] `TickerCallback`\<`T`> The listener function to be removed ##### context? [#context-2] `T` The listener context to be removed #### Returns [#returns-9] `this` This instance of a ticker #### Example [#example-15] ```ts // Basic removal const onTick = () => { sprite.rotation += 0.1; }; ticker.add(onTick); ticker.remove(onTick); // Remove with context const game = { update(ticker) { this.physics.update(ticker.deltaTime); } }; ticker.add(game.update, game); ticker.remove(game.update, game); // Remove all matching handlers // (if same function was added multiple times) ticker.add(onTick); ticker.add(onTick); ticker.remove(onTick); // Removes all instances ``` #### See [#see-5] * [Ticker#add](#add) For adding handlers * [Ticker#addOnce](#addonce) For one-time handlers *** ### start() [#start] \> **start**(): `void` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:413 Starts the ticker. If the ticker has listeners a new animation frame is requested at this point. #### Returns [#returns-10] `void` #### Example [#example-16] ```ts // Basic manual start const ticker = new Ticker(); ticker.add(() => { // Animation code here }); ticker.start(); ``` #### See [#see-6] * [Ticker#stop](#stop) For stopping the ticker * [Ticker#autoStart](#autostart) For automatic starting * [Ticker#started](#started) For checking ticker state *** ### stop() [#stop] \> **stop**(): `void` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:426 Stops the ticker. If the ticker has requested an animation frame it is canceled at this point. #### Returns [#returns-11] `void` #### Example [#example-17] ```ts // Basic stop const ticker = new Ticker(); ticker.stop(); ``` #### See [#see-7] * [Ticker#start](#start) For starting the ticker * [Ticker#started](#started) For checking ticker state * [Ticker#destroy](#destroy) For cleaning up the ticker *** ### update() [#update] \> **update**(`currentTime?`): `void` Defined in: node_modules/pixi.js/lib/ticker/Ticker.d.ts:463 Triggers an update. An update entails setting the current [elapsedMS](#elapsedms), the current [deltaTime](#deltatime), invoking all listeners with current deltaTime, and then finally setting [lastTime](#lasttime) with the value of currentTime that was provided. This method will be called automatically by animation frame callbacks if the ticker instance has been started and listeners are added. #### Parameters [#parameters-5] ##### currentTime? [#currenttime] `number` The current time of execution (defaults to performance.now()) #### Returns [#returns-12] `void` #### Example [#example-18] ```ts // Basic manual update const ticker = new Ticker(); ticker.update(performance.now()); ``` #### See [#see-8] * [Ticker#deltaTime](#deltatime) For frame delta value * [Ticker#elapsedMS](#elapsedms) For raw elapsed time # Interface: TickersSequence (/pixi-vn/index/interfaces/TickersSequence) Defined in: [src/tickers/interfaces/TickersSequence.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersSequence.ts#L26) The steps of the tickers ## Properties [#properties] ### currentStepNumber [#currentstepnumber] \> **currentStepNumber**: `number` Defined in: [src/tickers/interfaces/TickersSequence.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersSequence.ts#L30) The step number *** ### steps [#steps] \> **steps**: `TickersStep`\<`any`>\[] Defined in: [src/tickers/interfaces/TickersSequence.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickersSequence.ts#L34) The steps of the tickers # Interface: TvInOutProps (/pixi-vn/index/interfaces/TvInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:331](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L331) Shared by every `xIn` transition that can replace an existing component (same alias): whether the replaced component leaves with its own out animation, started together with the new component's in. ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### brightness? [#brightness] \> `optional` **brightness?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:341](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L341) How bright the collapsed line glows (`1` = no change). #### Default [#default-1] ```ts 3 ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### lineThickness? [#linethickness] \> `optional` **lineThickness?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:336](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L336) The height of the collapsed bright line, as a fraction of the component's own height. #### Default [#default-4] ```ts 0.02 ``` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### scanlines? [#scanlines] \> `optional` **scanlines?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:346](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L346) Whether CRT scanlines/noise are shown during the transition. #### Default [#default-6] ```ts true ``` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Interface: TwistInOutProps (/pixi-vn/index/interfaces/TwistInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:260](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L260) Shared options for the filter-based reveal/conceal transitions ([GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps), TwistInOutProps, [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps), [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps), [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps), [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps)). ## Extends [#extends] * [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `FilterFadeTransitionProps.aliasToRemoveAfter` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:267](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L267) How far (degrees) the swirl is wound up - where `twistIn` starts and `twistOut` ends. Negate the angle to reverse the rotation. During replacement the old component uses the opposite angle, so it winds up in the same rotational sense as the new component unwinds. #### Default [#default-1] ```ts 540 ``` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounce`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-6] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`damping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`driver`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`duration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`ease`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#elapsed) *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L235) Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn/index/interfaces/BlurInOutProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`fadeComponent`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#fadecomponent) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-15] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`from`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`inherit`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`isSync`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`mass`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`max`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`min`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#modifytarget) *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: [src/canvas/interfaces/transition-props.ts:277](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L277) The center of the swirl, normalized to the component's own bounds (`0` to `1` on each axis). #### Default [#default-5] ```ts { x: 0.5, y: 0.5 } ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`path`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`power`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#power) *** ### radius? [#radius] \> `optional` **radius?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:272](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L272) The radius (pixels) of the swirl. Defaults to half the component's diagonal, so the whole component swirls. *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeat`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`startTime`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-35] `FilterFadeTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-36] `FilterFadeTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`times`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`type`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`velocity`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`when`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#when) # Interface: UnresolvedAsset (/pixi-vn/index/interfaces/UnresolvedAsset) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:216 An asset that has not been resolved yet. This is the initial format used when adding assets to the Assets system before they are processed into a [ResolvedAsset](/pixi-vn/index/interfaces/ResolvedAsset). ## Example [#example] ```ts // Basic unresolved asset const asset: UnresolvedAsset = { alias: 'hero', src: 'hero.png' }; // Multiple aliases and formats const asset: UnresolvedAsset = { alias: ['hero', 'player'], src: 'hero.{webp,png}', data: { scaleMode: 'nearest', } }; // Asset with multiple sources and formats const asset: UnresolvedAsset = { alias: 'background', src: [ 'bg@2x.webp', 'bg@1x.webp', 'bg@2x.png', 'bg@1x.png', ] }; // With specific loader const asset: UnresolvedAsset = { alias: 'config', src: 'data.txt', parser: 'text' }; ``` ## Remarks [#remarks] * Used as input format when adding assets to the system * Can specify multiple aliases for the same asset * Supports format patterns for browser compatibility * Can include loader-specific data and options ## See [#see] * [ResolvedAsset](/pixi-vn/index/interfaces/ResolvedAsset) For the resolved asset format * Assets.add For adding unresolved assets ## Standard [#standard] ## Type Parameters [#type-parameters] ### T [#t] `T` = `any` ## Indexable [#indexable] \> \[`key`: `string`]: `any` ## Properties [#properties] ### alias? [#alias] \> `optional` **alias?**: `ArrayOr`\<`string`> Defined in: node_modules/pixi.js/lib/assets/types.d.ts:218 Aliases associated with asset *** ### data? [#data] \> `optional` **data?**: `T` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:65 Optional data passed to the asset loader. Can include texture settings, parser options, or other asset-specific data. *** ### format? [#format] \> `optional` **format?**: `string` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:67 File format of the asset, usually the file extension. Used to determine which loader parser to use. *** ### ~~loadParser?~~ [#loadparser] \> `optional` **loadParser?**: [`LoadParserName`](/pixi-vn/index/type-aliases/LoadParserName) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:71 #### Deprecated [#deprecated] Use `parser` instead. *** ### parser? [#parser] \> `optional` **parser?**: `AssetParser` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:73 Override to specify which parser should load this asset. Useful when file extensions don't match the content type. *** ### src? [#src] \> `optional` **src?**: [`AssetSrc`](/pixi-vn/index/type-aliases/AssetSrc) Defined in: node_modules/pixi.js/lib/assets/types.d.ts:220 The URL or relative path to the asset # Interface: VideoSpriteMemory (/pixi-vn/index/interfaces/VideoSpriteMemory) Defined in: [src/canvas/interfaces/memory/VideoSpriteMemory.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/VideoSpriteMemory.ts#L6) The memory of the video. It uses for save the state of the video. ## Extends [#extends] * [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`accessible`](/pixi-vn/index/interfaces/ImageSpriteMemory#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`accessibleChildren`](/pixi-vn/index/interfaces/ImageSpriteMemory#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`accessibleHint`](/pixi-vn/index/interfaces/ImageSpriteMemory#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/ImageSpriteMemory#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`accessibleText`](/pixi-vn/index/interfaces/ImageSpriteMemory#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`accessibleTitle`](/pixi-vn/index/interfaces/ImageSpriteMemory#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`accessibleType`](/pixi-vn/index/interfaces/ImageSpriteMemory#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`align`](/pixi-vn/index/interfaces/ImageSpriteMemory#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/ImageSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`anchor`](/pixi-vn/index/interfaces/ImageSpriteMemory#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`angle`](/pixi-vn/index/interfaces/ImageSpriteMemory#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/ImageSpriteMemory#autogarbagecollect) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/ImageSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/ImageSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/ImageSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`children`](/pixi-vn/index/interfaces/ImageSpriteMemory#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`cullable`](/pixi-vn/index/interfaces/ImageSpriteMemory#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`cullableChildren`](/pixi-vn/index/interfaces/ImageSpriteMemory#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`cullArea`](/pixi-vn/index/interfaces/ImageSpriteMemory#cullarea) *** ### currentTime [#currenttime] \> **currentTime**: `number` Defined in: [src/canvas/interfaces/memory/VideoSpriteMemory.ts:9](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/VideoSpriteMemory.ts#L9) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`cursor`](/pixi-vn/index/interfaces/ImageSpriteMemory#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`eventMode`](/pixi-vn/index/interfaces/ImageSpriteMemory#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`filters`](/pixi-vn/index/interfaces/ImageSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`height`](/pixi-vn/index/interfaces/ImageSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`hitArea`](/pixi-vn/index/interfaces/ImageSpriteMemory#hitarea) *** ### index? [#index] \> `optional` **index?**: `number` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L11) The index of the container in its parent, if it has one #### Inherited from [#inherited-from-24] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`index`](/pixi-vn/index/interfaces/ImageSpriteMemory#index) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`interactive`](/pixi-vn/index/interfaces/ImageSpriteMemory#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`interactiveChildren`](/pixi-vn/index/interfaces/ImageSpriteMemory#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/ImageSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-28] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`label`](/pixi-vn/index/interfaces/ImageSpriteMemory#label) *** ### loadIsStarted [#loadisstarted] \> **loadIsStarted**: `boolean` Defined in: [src/canvas/interfaces/memory/ImageSpriteMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/ImageSpriteMemory.ts#L7) #### Inherited from [#inherited-from-29] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`loadIsStarted`](/pixi-vn/index/interfaces/ImageSpriteMemory#loadisstarted) *** ### loop [#loop] \> **loop**: `boolean` Defined in: [src/canvas/interfaces/memory/VideoSpriteMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/VideoSpriteMemory.ts#L7) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`mask`](/pixi-vn/index/interfaces/ImageSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-30] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onclick`](/pixi-vn/index/interfaces/ImageSpriteMemory#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-31] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`oncontextmenu`](/pixi-vn/index/interfaces/ImageSpriteMemory#oncontextmenu) *** ### onEvents? [#onevents] > `optional` **onEvents?**: [`OnEventsHandlers`](/pixi-vn/index/interfaces/OnEventsHandlers) Defined in: [src/canvas/components/ListenerExtension.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L30) #### Inherited from [#inherited-from-32] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onEvents`](/pixi-vn/index/interfaces/ImageSpriteMemory#onevents) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-33] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onglobalmousemove`](/pixi-vn/index/interfaces/ImageSpriteMemory#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-34] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onglobalpointermove`](/pixi-vn/index/interfaces/ImageSpriteMemory#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-35] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onglobaltouchmove`](/pixi-vn/index/interfaces/ImageSpriteMemory#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-36] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmousedown`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-37] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmouseenter`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmouseleave`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-39] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmousemove`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-40] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmouseout`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-41] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmouseover`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-42] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmouseup`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-43] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onmouseupoutside`](/pixi-vn/index/interfaces/ImageSpriteMemory#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-44] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointercancel`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-45] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointerdown`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-46] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointerenter`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-47] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointerleave`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-48] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointermove`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-49] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointerout`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-50] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointerover`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-51] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointertap`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-52] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointerup`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-53] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onpointerupoutside`](/pixi-vn/index/interfaces/ImageSpriteMemory#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-54] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/ImageSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-55] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onrightclick`](/pixi-vn/index/interfaces/ImageSpriteMemory#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-56] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onrightdown`](/pixi-vn/index/interfaces/ImageSpriteMemory#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-57] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onrightup`](/pixi-vn/index/interfaces/ImageSpriteMemory#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-58] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onrightupoutside`](/pixi-vn/index/interfaces/ImageSpriteMemory#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-59] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`ontap`](/pixi-vn/index/interfaces/ImageSpriteMemory#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-60] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`ontouchcancel`](/pixi-vn/index/interfaces/ImageSpriteMemory#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-61] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`ontouchend`](/pixi-vn/index/interfaces/ImageSpriteMemory#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-62] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`ontouchendoutside`](/pixi-vn/index/interfaces/ImageSpriteMemory#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-63] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`ontouchmove`](/pixi-vn/index/interfaces/ImageSpriteMemory#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-64] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`ontouchstart`](/pixi-vn/index/interfaces/ImageSpriteMemory#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-65] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`onwheel`](/pixi-vn/index/interfaces/ImageSpriteMemory#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-66] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`origin`](/pixi-vn/index/interfaces/ImageSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-67] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`parent`](/pixi-vn/index/interfaces/ImageSpriteMemory#parent) *** ### parentLabel? [#parentlabel] > `optional` **parentLabel?**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L15) The label of the parent container, if it has one #### Inherited from [#inherited-from-68] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`parentLabel`](/pixi-vn/index/interfaces/ImageSpriteMemory#parentlabel) *** ### paused [#paused] > **paused**: `boolean` Defined in: [src/canvas/interfaces/memory/VideoSpriteMemory.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/VideoSpriteMemory.ts#L8) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-69] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`percentagePosition`](/pixi-vn/index/interfaces/ImageSpriteMemory#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-70] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`percentageX`](/pixi-vn/index/interfaces/ImageSpriteMemory#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-71] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`percentageY`](/pixi-vn/index/interfaces/ImageSpriteMemory#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-72] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/ImageSpriteMemory#pivot) *** ### pixivnFilters? [#pixivnfilters] > `optional` **pixivnFilters?**: `FilterMemory`\[] Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L25) The filters applied to this element, if any - kept separate from the real, live `Filter[]` `.filters` (inherited from the PixiJS options types this memory interface also extends) since a memory object is serialized data, not construction options. Only filters registered with filterDecorator/RegisteredFilters can be saved - any other `Filter` instance found on `.filters` is skipped (with a warning) when exporting. #### Inherited from [#inherited-from-73] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`pixivnFilters`](/pixi-vn/index/interfaces/ImageSpriteMemory#pixivnfilters) *** ### pixivnId [#pixivnid] > **pixivnId**: `string` Defined in: [src/canvas/interfaces/memory/CanvasBaseItemMemory.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/CanvasBaseItemMemory.ts#L7) #### Inherited from [#inherited-from-74] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`pixivnId`](/pixi-vn/index/interfaces/ImageSpriteMemory#pixivnid) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-75] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`position`](/pixi-vn/index/interfaces/ImageSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-76] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/ImageSpriteMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-77] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/ImageSpriteMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-78] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`roundPixels`](/pixi-vn/index/interfaces/ImageSpriteMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-79] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`scale`](/pixi-vn/index/interfaces/ImageSpriteMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-80] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/ImageSpriteMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-81] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`skew`](/pixi-vn/index/interfaces/ImageSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-82] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/ImageSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-83] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/ImageSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-84] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`tabIndex`](/pixi-vn/index/interfaces/ImageSpriteMemory#tabindex) *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-85] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`texture`](/pixi-vn/index/interfaces/ImageSpriteMemory#texture) *** ### textureData? [#texturedata] > `optional` **textureData?**: [`AssetMemory`](/pixi-vn/index/interfaces/AssetMemory) Defined in: [src/canvas/interfaces/memory/SpriteMemory.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/memory/SpriteMemory.ts#L12) #### Inherited from [#inherited-from-86] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`textureData`](/pixi-vn/index/interfaces/ImageSpriteMemory#texturedata) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-87] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`tint`](/pixi-vn/index/interfaces/ImageSpriteMemory#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-88] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`visible`](/pixi-vn/index/interfaces/ImageSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-89] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`width`](/pixi-vn/index/interfaces/ImageSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-90] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`x`](/pixi-vn/index/interfaces/ImageSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-91] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`xAlign`](/pixi-vn/index/interfaces/ImageSpriteMemory#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-92] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`y`](/pixi-vn/index/interfaces/ImageSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-93] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`yAlign`](/pixi-vn/index/interfaces/ImageSpriteMemory#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-94] [`ImageSpriteMemory`](/pixi-vn/index/interfaces/ImageSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/ImageSpriteMemory#zindex) # Interface: VideoSpriteOptions (/pixi-vn/index/interfaces/VideoSpriteOptions) Defined in: [src/canvas/interfaces/canvas-options.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L24) ## Extends [#extends] * [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`accessible`](/pixi-vn/index/interfaces/ImageSpriteOptions#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`accessibleChildren`](/pixi-vn/index/interfaces/ImageSpriteOptions#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`accessibleHint`](/pixi-vn/index/interfaces/ImageSpriteOptions#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`accessiblePointerEvents`](/pixi-vn/index/interfaces/ImageSpriteOptions#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`accessibleText`](/pixi-vn/index/interfaces/ImageSpriteOptions#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`accessibleTitle`](/pixi-vn/index/interfaces/ImageSpriteOptions#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`accessibleType`](/pixi-vn/index/interfaces/ImageSpriteOptions#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L13) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`align`](/pixi-vn/index/interfaces/ImageSpriteOptions#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For toggling visibility * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render control #### Inherited from [#inherited-from-8] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`alpha`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`anchor`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`angle`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`autoGarbageCollect`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#autogarbagecollect) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#tint](/pixi-vn/index/classes/VideoSprite#tint) For color adjustments #### Inherited from [#inherited-from-12] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`blendMode`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`boundsArea`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`cacheAsTexture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding children * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing children #### Inherited from [#inherited-from-15] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`children`](/pixi-vn/index/interfaces/ImageSpriteOptions#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`cullable`](/pixi-vn/index/interfaces/ImageSpriteOptions#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`cullableChildren`](/pixi-vn/index/interfaces/ImageSpriteOptions#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`cullArea`](/pixi-vn/index/interfaces/ImageSpriteOptions#cullarea) *** ### currentTime? [#currenttime] \> `optional` **currentTime?**: `number` Defined in: [src/canvas/interfaces/canvas-options.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L27) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`cursor`](/pixi-vn/index/classes/VideoSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`eventMode`](/pixi-vn/index/classes/VideoSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`filters`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`height`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`hitArea`](/pixi-vn/index/classes/VideoSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn/index/classes/VideoSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-24] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactive`](/pixi-vn/index/classes/VideoSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-25] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`interactiveChildren`](/pixi-vn/index/classes/VideoSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-26] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`isRenderGroup`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`label`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#label) *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: [src/canvas/interfaces/canvas-options.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L25) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`mask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onclick`](/pixi-vn/index/classes/VideoSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`oncontextmenu`](/pixi-vn/index/classes/VideoSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalmousemove`](/pixi-vn/index/classes/VideoSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobalpointermove`](/pixi-vn/index/classes/VideoSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-32] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onglobaltouchmove`](/pixi-vn/index/classes/VideoSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousedown`](/pixi-vn/index/classes/VideoSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseenter`](/pixi-vn/index/classes/VideoSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseleave`](/pixi-vn/index/classes/VideoSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmousemove`](/pixi-vn/index/classes/VideoSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseout`](/pixi-vn/index/classes/VideoSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseover`](/pixi-vn/index/classes/VideoSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseup`](/pixi-vn/index/classes/VideoSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onmouseupoutside`](/pixi-vn/index/classes/VideoSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointercancel`](/pixi-vn/index/classes/VideoSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerdown`](/pixi-vn/index/classes/VideoSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerenter`](/pixi-vn/index/classes/VideoSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerleave`](/pixi-vn/index/classes/VideoSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointermove`](/pixi-vn/index/classes/VideoSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerout`](/pixi-vn/index/classes/VideoSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerover`](/pixi-vn/index/classes/VideoSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointertap`](/pixi-vn/index/classes/VideoSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerup`](/pixi-vn/index/classes/VideoSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onpointerupoutside`](/pixi-vn/index/classes/VideoSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-51] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`onRender`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightclick`](/pixi-vn/index/classes/VideoSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightdown`](/pixi-vn/index/classes/VideoSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightup`](/pixi-vn/index/classes/VideoSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onrightupoutside`](/pixi-vn/index/classes/VideoSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontap`](/pixi-vn/index/classes/VideoSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchcancel`](/pixi-vn/index/classes/VideoSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchend`](/pixi-vn/index/classes/VideoSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchendoutside`](/pixi-vn/index/classes/VideoSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchmove`](/pixi-vn/index/classes/VideoSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`ontouchstart`](/pixi-vn/index/classes/VideoSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`VideoSprite`](/pixi-vn/index/classes/VideoSprite).[`onwheel`](/pixi-vn/index/classes/VideoSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-63] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`origin`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * [Container#addChild](/pixi-vn/index/classes/Container#addchild) For adding to a parent * [Container#removeChild](/pixi-vn/index/classes/Container#removechild) For removing from parent #### Inherited from [#inherited-from-64] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`parent`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#parent) *** ### paused? [#paused] > `optional` **paused?**: `boolean` Defined in: [src/canvas/interfaces/canvas-options.ts:26](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/canvas-options.ts#L26) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L43) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`percentagePosition`](/pixi-vn/index/interfaces/ImageSpriteOptions#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L53) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`percentageX`](/pixi-vn/index/interfaces/ImageSpriteOptions#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L63) is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`percentageY`](/pixi-vn/index/interfaces/ImageSpriteOptions#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-68] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`pivot`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-69] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`position`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For skipping transform updates * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-70] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`renderable`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-71] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`rotation`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-72] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`roundPixels`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-73] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`scale`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-74] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`setMask`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-75] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`skew`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-76] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortableChildren`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-77] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`sortDirty`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-78] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`tabIndex`](/pixi-vn/index/interfaces/ImageSpriteOptions#tabindex) *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-79] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`texture`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#texture) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency * [Container#visible](/pixi-vn/index/classes/VideoSprite#visible) For visibility control #### Inherited from [#inherited-from-80] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`tint`](/pixi-vn/index/interfaces/ImageSpriteOptions#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * [Container#renderable](/pixi-vn/index/classes/VideoSprite#renderable) For render-only control * [Container#alpha](/pixi-vn/index/classes/VideoSprite#alpha) For transparency #### Inherited from [#inherited-from-81] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`visible`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-82] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`width`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-83] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`x`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L23) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-84] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`xAlign`](/pixi-vn/index/interfaces/ImageSpriteOptions#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-85] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`y`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: [src/canvas/components/AdditionalPositionsExtension.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AdditionalPositionsExtension.ts#L33) is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] [`ImageSpriteOptions`](/pixi-vn/index/interfaces/ImageSpriteOptions).[`yAlign`](/pixi-vn/index/interfaces/ImageSpriteOptions#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn/index/classes/VideoSprite#sortablechildren) For enabling sorting * [Container#sortChildren](/pixi-vn/index/classes/Container#sortchildren) For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-87] [`AnimatedSpriteMemory`](/pixi-vn/index/interfaces/AnimatedSpriteMemory).[`zIndex`](/pixi-vn/index/interfaces/AnimatedSpriteMemory#zindex) # Interface: VignettePulseEffectProps (/pixi-vn/index/interfaces/VignettePulseEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:299](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L299) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), [WiggleEffectProps](/pixi-vn/index/interfaces/WiggleEffectProps), [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### blur? [#blur] \> `optional` **blur?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:320](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L320) How soft the transition from the clear center to the dark edges is (`0` = a hard edge). #### Default [#default-1] ```ts 0.5 ``` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-4] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### pulses? [#pulses] \> `optional` **pulses?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:309](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L309) The number of pulses. #### Default [#default-6] ```ts 1 ``` *** ### radius? [#radius] \> `optional` **radius?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:315](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L315) How far the darkening reaches in from the corners, from `0` (none) to `1` (the whole element) - `0.5` darkens roughly the outer half. #### Default [#default-7] ```ts 0.5 ``` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:304](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L304) The peak vignette opacity of the first, largest pulse. #### Default [#default-9] ```ts 1 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: WarpInOutProps (/pixi-vn/index/interfaces/WarpInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:279](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L279) Shared options for the filter-based reveal/conceal transitions ([GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps), [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps), WarpInOutProps, [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps), [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps), [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps)). ## Extends [#extends] * [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `FilterFadeTransitionProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounce`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`damping`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`driver`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`duration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`ease`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#elapsed) *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:235](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L235) Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn/index/interfaces/BlurInOutProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`fadeComponent`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#fadecomponent) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-15] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`from`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`inherit`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`isSync`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`mass`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`max`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`min`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#modifytarget) *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: [src/canvas/interfaces/transition-props.ts:289](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L289) The point the streaks radiate from, normalized to the component's own bounds. #### Default [#default-4] ```ts { x: 0.5, y: 0.5 } ``` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`path`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`power`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeat`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`startTime`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-5] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#stiffness) *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:284](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L284) The zoom-blur strength `warpIn` starts from and `warpOut` ends at. #### Default [#default-6] ```ts 0.6 ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-35] `FilterFadeTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-36] `FilterFadeTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`times`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`type`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`velocity`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`FilterFadeTransitionProps`](/pixi-vn/index/interfaces/FilterFadeTransitionProps).[`when`](/pixi-vn/index/interfaces/FilterFadeTransitionProps#when) # Interface: WiggleEffectProps (/pixi-vn/index/interfaces/WiggleEffectProps) Defined in: [src/canvas/interfaces/effect-props.ts:88](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L88) Shared options for the generic, repeated articulated-animation effects ([BounceEffectProps](/pixi-vn/index/interfaces/BounceEffectProps), [HopEffectProps](/pixi-vn/index/interfaces/HopEffectProps), WiggleEffectProps, [NodEffectProps](/pixi-vn/index/interfaces/NodEffectProps), [SwayEffectProps](/pixi-vn/index/interfaces/SwayEffectProps)): a number of cycles, each one shrinking towards rest by [decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). ## Extends [#extends] * [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `DecayingEffectProps.aliasToRemoveAfter` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:93](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L93) The peak rotation (in degrees) away from the component's current angle, on the first repetition. #### Default [#default-1] ```ts 15 ``` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-1] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`autoplay`](/pixi-vn/index/interfaces/DecayingEffectProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounce`](/pixi-vn/index/interfaces/DecayingEffectProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceDamping`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`bounceStiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-5] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`completeOnContinue`](/pixi-vn/index/interfaces/DecayingEffectProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`damping`](/pixi-vn/index/interfaces/DecayingEffectProps#damping) *** ### decay? [#decay] \> `optional` **decay?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L35) How much each successive cycle shrinks relative to the previous one (`1` = no decay/constant amplitude, `0` = the second cycle onward has no amplitude at all). #### Default [#default-4] ```ts 0.5 ``` #### Inherited from [#inherited-from-7] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`decay`](/pixi-vn/index/interfaces/DecayingEffectProps#decay) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delay`](/pixi-vn/index/interfaces/DecayingEffectProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`delayChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`driver`](/pixi-vn/index/interfaces/DecayingEffectProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`duration`](/pixi-vn/index/interfaces/DecayingEffectProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`ease`](/pixi-vn/index/interfaces/DecayingEffectProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`elapsed`](/pixi-vn/index/interfaces/DecayingEffectProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`from`](/pixi-vn/index/interfaces/DecayingEffectProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`inherit`](/pixi-vn/index/interfaces/DecayingEffectProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`isSync`](/pixi-vn/index/interfaces/DecayingEffectProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`mass`](/pixi-vn/index/interfaces/DecayingEffectProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`max`](/pixi-vn/index/interfaces/DecayingEffectProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`min`](/pixi-vn/index/interfaces/DecayingEffectProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`modifyTarget`](/pixi-vn/index/interfaces/DecayingEffectProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`path`](/pixi-vn/index/interfaces/DecayingEffectProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`power`](/pixi-vn/index/interfaces/DecayingEffectProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`reduceMotion`](/pixi-vn/index/interfaces/DecayingEffectProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeat`](/pixi-vn/index/interfaces/DecayingEffectProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatDelay`](/pixi-vn/index/interfaces/DecayingEffectProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`repeatType`](/pixi-vn/index/interfaces/DecayingEffectProps#repeattype) *** ### repetitions? [#repetitions] \> `optional` **repetitions?**: `number` Defined in: [src/canvas/interfaces/effect-props.ts:98](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/effect-props.ts#L98) The number of repetitions. #### Default [#default-6] ```ts 3 ``` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restDelta`](/pixi-vn/index/interfaces/DecayingEffectProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`restSpeed`](/pixi-vn/index/interfaces/DecayingEffectProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`skipAnimations`](/pixi-vn/index/interfaces/DecayingEffectProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerChildren`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`staggerDirection`](/pixi-vn/index/interfaces/DecayingEffectProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`startTime`](/pixi-vn/index/interfaces/DecayingEffectProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`stiffness`](/pixi-vn/index/interfaces/DecayingEffectProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-34] `DecayingEffectProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-35] `DecayingEffectProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`timeConstant`](/pixi-vn/index/interfaces/DecayingEffectProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`times`](/pixi-vn/index/interfaces/DecayingEffectProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`type`](/pixi-vn/index/interfaces/DecayingEffectProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`velocity`](/pixi-vn/index/interfaces/DecayingEffectProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`visualDuration`](/pixi-vn/index/interfaces/DecayingEffectProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] [`DecayingEffectProps`](/pixi-vn/index/interfaces/DecayingEffectProps).[`when`](/pixi-vn/index/interfaces/DecayingEffectProps#when) # Interface: WipeInOutProps (/pixi-vn/index/interfaces/WipeInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:87](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L87) Shared options for the mask-based reveal/conceal transitions (WipeInOutProps, [IrisInOutProps](/pixi-vn/index/interfaces/IrisInOutProps), [SplitInOutProps](/pixi-vn/index/interfaces/SplitInOutProps)). ## Extends [#extends] * [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `MaskTransitionProps.aliasToRemoveAfter` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: [src/canvas/interfaces/transition-props.ts:94](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L94) The angle (in degrees) the wipe boundary sweeps towards. `0` is left-to-right, `90` is bottom-to-top, `180` is right-to-left, `270` is top-to-bottom, and any other value produces a diagonal wipe. #### Default [#default-1] ```ts 0 ``` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/MaskTransitionProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`autoplay`](/pixi-vn/index/interfaces/MaskTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounce`](/pixi-vn/index/interfaces/MaskTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounceDamping`](/pixi-vn/index/interfaces/MaskTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`bounceStiffness`](/pixi-vn/index/interfaces/MaskTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-6] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`completeOnContinue`](/pixi-vn/index/interfaces/MaskTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`damping`](/pixi-vn/index/interfaces/MaskTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`delay`](/pixi-vn/index/interfaces/MaskTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`delayChildren`](/pixi-vn/index/interfaces/MaskTransitionProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: [src/canvas/interfaces/transition-props.ts:100](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L100) A convenience shorthand for [angle](#angle): `"right"` (`0`), `"up"` (`90`), `"left"` (`180`), `"down"` (`270`). Ignored if `angle` is also set. #### Default [#default-4] ```ts "right" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`driver`](/pixi-vn/index/interfaces/MaskTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`duration`](/pixi-vn/index/interfaces/MaskTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`ease`](/pixi-vn/index/interfaces/MaskTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`elapsed`](/pixi-vn/index/interfaces/MaskTransitionProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`from`](/pixi-vn/index/interfaces/MaskTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`inherit`](/pixi-vn/index/interfaces/MaskTransitionProps#inherit) *** ### invert? [#invert] \> `optional` **invert?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L85) If true, the effect is inverted: a "reveal" mask conceals instead, and vice versa. #### Default [#default-5] ```ts false ``` #### Inherited from [#inherited-from-16] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`invert`](/pixi-vn/index/interfaces/MaskTransitionProps#invert) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-17] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`isSync`](/pixi-vn/index/interfaces/MaskTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`mass`](/pixi-vn/index/interfaces/MaskTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`max`](/pixi-vn/index/interfaces/MaskTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`min`](/pixi-vn/index/interfaces/MaskTransitionProps#min) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-21] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`modifyTarget`](/pixi-vn/index/interfaces/MaskTransitionProps#modifytarget) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`path`](/pixi-vn/index/interfaces/MaskTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`power`](/pixi-vn/index/interfaces/MaskTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`reduceMotion`](/pixi-vn/index/interfaces/MaskTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeat`](/pixi-vn/index/interfaces/MaskTransitionProps#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeatDelay`](/pixi-vn/index/interfaces/MaskTransitionProps#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`repeatType`](/pixi-vn/index/interfaces/MaskTransitionProps#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`restDelta`](/pixi-vn/index/interfaces/MaskTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`restSpeed`](/pixi-vn/index/interfaces/MaskTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`skipAnimations`](/pixi-vn/index/interfaces/MaskTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`staggerChildren`](/pixi-vn/index/interfaces/MaskTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`staggerDirection`](/pixi-vn/index/interfaces/MaskTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-33] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`startTime`](/pixi-vn/index/interfaces/MaskTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`stiffness`](/pixi-vn/index/interfaces/MaskTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-35] `MaskTransitionProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-36] `MaskTransitionProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`timeConstant`](/pixi-vn/index/interfaces/MaskTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-38] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`times`](/pixi-vn/index/interfaces/MaskTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`type`](/pixi-vn/index/interfaces/MaskTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-40] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`velocity`](/pixi-vn/index/interfaces/MaskTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`visualDuration`](/pixi-vn/index/interfaces/MaskTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`MaskTransitionProps`](/pixi-vn/index/interfaces/MaskTransitionProps).[`when`](/pixi-vn/index/interfaces/MaskTransitionProps#when) # Interface: ZoomInOutProps (/pixi-vn/index/interfaces/ZoomInOutProps) Defined in: [src/canvas/interfaces/transition-props.ts:46](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L46) Shared by every `xIn` transition that can replace an existing component (same alias): whether the replaced component leaves with its own out animation, started together with the new component's in. ## Extends [#extends] * `BaseTransitionProps` * [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps) * `AnimationOptions` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L25) If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`OldComponentOutProps`](/pixi-vn/index/interfaces/OldComponentOutProps).[`animateOldComponentOut`](/pixi-vn/index/interfaces/OldComponentOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2212 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2035 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2109 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2101 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/canvas/interfaces/transition-props.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L11) If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2055 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2343 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2151 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: [src/canvas/interfaces/transition-props.ts:54](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/interfaces/transition-props.ts#L54) The direction of the zoom effect. #### Default [#default-3] ```ts "right" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2197 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2211 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2182 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2196 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2214 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2221 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:1955 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2064 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2121 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2115 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2091 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters] ##### v [#v] `number` #### Returns [#returns] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2240 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-21] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2078 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-22] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2353 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-23] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1966 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-24] `AnimationOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1985 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-25] `AnimationOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:1978 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-26] `AnimationOptions.repeatType` *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2003 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-27] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1995 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2229 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-29] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2164 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-30] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2173 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2213 #### Inherited from [#inherited-from-32] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2046 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-5] ```ts 100 @public ``` #### Inherited from [#inherited-from-33] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-34] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2085 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-36] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2183 #### Inherited from [#inherited-from-37] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2205 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-38] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:1988 #### Inherited from [#inherited-from-39] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2023 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-40] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2142 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-41] `AnimationOptions.when` # Function: calculateAlignByPosition() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculateAlignByPosition) \> **calculateAlignByPosition**(`type`, `position`, `value`, `pivot`, `negativeScale`, `anchor?`): `number` Defined in: [src/canvas/functions/canvas-property-utility.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L42) ## Parameters [#parameters] ### type [#type] `"width"` | `"height"` ### position [#position] `number` ### value [#value] `number` ### pivot [#pivot] `number` ### negativeScale [#negativescale] `boolean` ### anchor? [#anchor] `number` = `0` ## Returns [#returns] `number` # Function: calculatePercentagePositionByPosition() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculatePercentagePositionByPosition) \> **calculatePercentagePositionByPosition**(`type`, `position`): `number` Defined in: [src/canvas/functions/canvas-property-utility.ts:88](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L88) ## Parameters [#parameters] ### type [#type] `"width"` | `"height"` ### position [#position] `number` ## Returns [#returns] `number` # Function: calculatePositionByAlign() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculatePositionByAlign) \> **calculatePositionByAlign**(`type`, `align`, `value`, `pivot`, `negativeScale`, `anchor?`): `number` Defined in: [src/canvas/functions/canvas-property-utility.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L5) ## Parameters [#parameters] ### type [#type] `"width"` | `"height"` ### align [#align] `number` ### value [#value] `number` ### pivot [#pivot] `number` ### negativeScale [#negativescale] `boolean` ### anchor? [#anchor] `number` = `0` ## Returns [#returns] `number` # Function: calculatePositionByPercentagePosition() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculatePositionByPercentagePosition) \> **calculatePositionByPercentagePosition**(`type`, `percentage`): `number` Defined in: [src/canvas/functions/canvas-property-utility.ts:77](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L77) ## Parameters [#parameters] ### type [#type] `"width"` | `"height"` ### percentage [#percentage] `number` ## Returns [#returns] `number` # Function: getPointBySuperPoint() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getPointBySuperPoint) \> **getPointBySuperPoint**(`superPoint`, `angle`): `object` Defined in: [src/canvas/functions/canvas-property-utility.ts:175](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L175) ## Parameters [#parameters] ### superPoint [#superpoint] #### x [#x] `number` #### y [#y] `number` ### angle [#angle] `number` ## Returns [#returns] `object` ### x [#x-1] \> **x**: `number` ### y [#y-1] \> **y**: `number` # Function: getSuperHeight() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getSuperHeight) \> **getSuperHeight**(`canvasElement`): `number` Defined in: [src/canvas/functions/canvas-property-utility.ts:246](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L246) ## Parameters [#parameters] ### canvasElement [#canvaselement] `Container` ## Returns [#returns] `number` # Function: getSuperPoint() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getSuperPoint) \> **getSuperPoint**(`point`, `angle`): `object` Defined in: [src/canvas/functions/canvas-property-utility.ts:99](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L99) ## Parameters [#parameters] ### point [#point] #### x [#x] `number` #### y [#y] `number` ### angle [#angle] `number` ## Returns [#returns] `object` ### x [#x-1] \> **x**: `number` ### y [#y-1] \> **y**: `number` # Function: getSuperWidth() (/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getSuperWidth) \> **getSuperWidth**(`canvasElement`): `number` Defined in: [src/canvas/functions/canvas-property-utility.ts:227](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-property-utility.ts#L227) ## Parameters [#parameters] ### canvasElement [#canvaselement] `Container` ## Returns [#returns] `number` # CanvasPropertyUtility (/pixi-vn/index/namespaces/CanvasPropertyUtility) ## Functions [#functions] * [calculateAlignByPosition](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculateAlignByPosition) * [calculatePercentagePositionByPosition](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculatePercentagePositionByPosition) * [calculatePositionByAlign](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculatePositionByAlign) * [calculatePositionByPercentagePosition](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/calculatePositionByPercentagePosition) * [getPointBySuperPoint](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getPointBySuperPoint) * [getSuperHeight](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getSuperHeight) * [getSuperPoint](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getSuperPoint) * [getSuperWidth](/pixi-vn/index/namespaces/CanvasPropertyUtility/functions/getSuperWidth) # Function: addOnError() (/pixi-vn/index/namespaces/Game/functions/addOnError) \> **addOnError**(`value`): () => `void` Defined in: [src/index.ts:484](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L484) Register an error handler. Multiple handlers can be registered; they will be executed in registration order. You can also check if the error is an instance of [PixiError](/pixi-vn/index/classes/PixiError) to handle specific errors related to Pixi’VN. ## Parameters [#parameters] ### value [#value] [`OnErrorHandler`](/pixi-vn/index/type-aliases/OnErrorHandler) ## Returns [#returns] () => `void` ## Example [#example] ```ts // Register a synchronous error handler Game.addOnError((error, props) => { props.notify("An error occurred") // send a notification to GlitchTip, Sentry, etc... }) // Register an error handler for Pixi’VN specific errors Game.addOnError((error, { notify }) => { if (error instanceof PixiError) { // ... } }); // Register an asynchronous error handler Game.addOnError(async (error, props) => { await logErrorToServer(error) props.notify("An error occurred") }) // Register an error handler with step restoration/rollback Game.addOnError(async (error, props) => { // Restore the game state to the previous step await stepHistory.back(props) props.notify("An error occurred, returning to previous step") }) ``` # Function: addOnExportGameState() (/pixi-vn/index/namespaces/Game/functions/addOnExportGameState) \> **addOnExportGameState**(`handler`): () => `void` Defined in: [src/index.ts:289](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L289) Register a handler that runs every time [exportGameState](/pixi-vn/index/namespaces/Game/functions/exportGameState) is called. It receives the complete save-state object and can mutate it (add or update properties) before it is returned. Handlers may be async; they are awaited sequentially in registration order, and an error thrown by a handler is propagated to the [exportGameState](/pixi-vn/index/namespaces/Game/functions/exportGameState) caller. Combine it with TypeScript module augmentation of the `GameState` interface to type the custom properties. ## Parameters [#parameters] ### handler [#handler] [`OnExportGameStateHandler`](/pixi-vn/index/type-aliases/OnExportGameStateHandler) The handler to register. ## Returns [#returns] A function that removes the handler (same as [removeOnExportGameState](/pixi-vn/index/namespaces/Game/functions/removeOnExportGameState)). () => `void` ## Example [#example] ```ts declare module "@drincs/pixi-vn" { interface GameState { myLibraryData?: { score: number }; } } Game.addOnExportGameState(async (state) => { state.myLibraryData = { score: await getScore() }; }); ``` # Function: addOnPreContinue() (/pixi-vn/index/namespaces/Game/functions/addOnPreContinue) \> **addOnPreContinue**(`handler`): `void` Defined in: [src/index.ts:616](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L616) Register a handler to run immediately before a narration "continue" operation. Handlers are executed in registration order and may be async. Use `{@link addOnPreContinue}` / `{@link removeOnPreContinue}` to manage them programmatically. ## Parameters [#parameters] ### handler [#handler] () => `void` | `Promise`\<`void`> ## Returns [#returns] `void` # Function: addOnRestoreGameState() (/pixi-vn/index/namespaces/Game/functions/addOnRestoreGameState) \> **addOnRestoreGameState**(`handler`, `options?`): () => `void` Defined in: [src/index.ts:330](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L330) Register a handler that runs every time [restoreGameState](/pixi-vn/index/namespaces/Game/functions/restoreGameState) is called. It receives the exact save-state object passed to [restoreGameState](/pixi-vn/index/namespaces/Game/functions/restoreGameState), so an external library can read back the data it added through [addOnExportGameState](/pixi-vn/index/namespaces/Game/functions/addOnExportGameState). Handlers may be async; handlers with the same timing are awaited sequentially in registration order, and an error thrown by a handler is propagated to the [restoreGameState](/pixi-vn/index/namespaces/Game/functions/restoreGameState) caller. ## Parameters [#parameters] ### handler [#handler] [`OnRestoreGameStateHandler`](/pixi-vn/index/type-aliases/OnRestoreGameStateHandler) The handler to register. ### options? [#options] [`OnRestoreGameStateOptions`](/pixi-vn/index/interfaces/OnRestoreGameStateOptions) = `{}` `timing`: `"before"` (default) runs the handler before any built-in module is restored; `"after"` runs it once the built-in restoration and navigation have completed. ## Returns [#returns] A function that removes the handler (same as [removeOnRestoreGameState](/pixi-vn/index/namespaces/Game/functions/removeOnRestoreGameState)). () => `void` ## Example [#example] ```ts Game.addOnRestoreGameState((state) => { myLibrary.load(state.myLibraryData); }); Game.addOnRestoreGameState( (state) => { myLibrary.refreshUi(); }, { timing: "after" }, ); ``` # Function: clear() (/pixi-vn/index/namespaces/Game/functions/clear) \> **clear**(): `void` Defined in: [src/index.ts:248](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L248) Clear all game data. This function is used to reset the game. ## Returns [#returns] `void` # Function: exportGameState() (/pixi-vn/index/namespaces/Game/functions/exportGameState) \> **exportGameState**(): `Promise`\<[`GameState`](/pixi-vn/index/interfaces/GameState)> Defined in: [src/index.ts:368](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L368) Get all the game data. It can be used to save the game. Handlers registered with [addOnExportGameState](/pixi-vn/index/namespaces/Game/functions/addOnExportGameState) run on the result before it is returned. ## Returns [#returns] `Promise`\<[`GameState`](/pixi-vn/index/interfaces/GameState)> The game data # Function: init() (/pixi-vn/index/namespaces/Game/functions/init) ## Call Signature [#call-signature] \> **init**(`element`, `options`, `devtoolsOptions?`): `Promise`\<`void`> Defined in: [src/index.ts:89](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L89) Initialize the Game and PixiJS Application and the interface div. This method should be called before any other method. ### Parameters [#parameters] #### element [#element] `HTMLElement` The html element where I will put the canvas. Example: document.body #### options [#options] `Partial`\<[`ApplicationOptions`](/pixi-vn/index/interfaces/ApplicationOptions)> & `object` Equivalent to the options you can use when initializing a [PixiJS Application](https://pixijs.com/8.x/guides/components/application). Additionally, it supports the following options: * `id`: The id of the canvas element. * `navigate`: The route navigate function. * `resizeMode`: The resize mode of the canvas. #### devtoolsOptions? [#devtoolsoptions] `Devtools` Equivalent to the options you can use when initializing the [PixiJS Devtools](https://pixi-vn.com/start/canvas#use-pixijs-devtools-with-pixivn). ### Returns [#returns] `Promise`\<`void`> ### Example [#example] ```ts const body = document.body if (!body) { throw new Error('body element not found') } await Game.initialize(body, { navigate: (path) => { // navigate to the path }, width: 1920, height: 1080, backgroundColor: "#303030" resizeMode: "contain" }) ``` ## Call Signature [#call-signature-1] \> **init**(): `Promise`\<`void`> Defined in: [src/index.ts:119](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L119) Initialize only the GameUnifier, and not the PixiJS Application and the interface div. This method can be used if you want to use only the GameUnifier features, such as save/load game, without initializing the canvas. ### Returns [#returns-1] `Promise`\<`void`> # Function: jsonToGameState() (/pixi-vn/index/namespaces/Game/functions/jsonToGameState) \> **jsonToGameState**(`json`): [`GameState`](/pixi-vn/index/interfaces/GameState) Defined in: [src/index.ts:432](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L432) Convert a JSON string to a save data ## Parameters [#parameters] ### json [#json] `string` The JSON string ## Returns [#returns] [`GameState`](/pixi-vn/index/interfaces/GameState) The save data # Function: onEnd() (/pixi-vn/index/namespaces/Game/functions/onEnd) \> **onEnd**(`value`): `void` Defined in: [src/index.ts:445](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L445) Function to be executed at the end of the game. It should be set in the game initialization. ## Parameters [#parameters] ### value [#value] [`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType) ## Returns [#returns] `void` ## Example [#example] ```ts Game.onEnd(async (props) => { props.navigate("/end") }) ``` # Function: onLabelClosing() (/pixi-vn/index/namespaces/Game/functions/onLabelClosing) \> **onLabelClosing**(`value`): `void` Defined in: [src/index.ts:587](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L587) Is a function that will be executed every time the current label is about to close because it naturally ran out of steps and control is returning to the label that called it. By default (when this is not set), the label closes immediately, exactly like before this hook existed. If you set it, you take control: call `defaultClose()` yourself whenever you actually want the label to close — right away, or later (e.g. on a subsequent player action in your template). Until `defaultClose()` is called, the label stays open and narration does not continue into the parent label. This does not fire for a `jump` or a choice's `closeCurrentLabel` option - those close the current label as part of starting a new one, so [onLabelStarting](/pixi-vn/index/namespaces/Game/functions/onLabelStarting) already covers deferring them. ## Parameters [#parameters] ### value [#value] (`labelId`, `props`, `defaultClose`) => [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> ## Returns [#returns] `void` ## Example [#example] ```ts Game.onLabelClosing((labelId, props, defaultClose) => { pendingLabelClose = defaultClose; // keep it for later, don't run it now }) ``` # Function: onLabelStarting() (/pixi-vn/index/namespaces/Game/functions/onLabelStarting) \> **onLabelStarting**(`value`): `void` Defined in: [src/index.ts:553](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L553) Is a function that will be executed every time a label is about to be started, either via `narration.call`, `narration.jump`, or a choice of type `"call"` / `"jump"`. By default (when this is not set), the label starts immediately, exactly like before this hook existed. If you set it, you take control: call `defaultStart()` yourself whenever you actually want the label to run — right away, or later (e.g. on a subsequent player action in your template). Until `defaultStart()` is called, nothing about the label happens: it is not added to the history and no step of it runs. ## Parameters [#parameters] ### value [#value] (`labelId`, `props`, `options`, `defaultStart`) => [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> ## Returns [#returns] `void` ## Example [#example] ```ts Game.onLabelStarting((labelId, props, options, defaultStart) => { pendingLabelStart = defaultStart; // keep it for later, don't run it now }) ``` # Function: onLoadingLabel() (/pixi-vn/index/namespaces/Game/functions/onLoadingLabel) \> **onLoadingLabel**(`value`): `void` Defined in: [src/index.ts:521](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L521) Is a function that will be executed in [onStepStart](/pixi-vn/index/namespaces/Game/functions/onStepStart) if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the [narrationUtils.narration](/pixi-vn/index/variables/narration).openedLabels. It is useful for example to make sure all images used have been cached ## Parameters [#parameters] ### value [#value] (`stepId`, `label`) => `void` | `Promise`\<`void`> ## Returns [#returns] `void` ## Example [#example] ```ts Game.onLoadingLabel(async (stepId, label) => { await Assets.load('path/to/image1.png') await Assets.load('path/to/image2.png') }) ``` # Function: onNavigate() (/pixi-vn/index/namespaces/Game/functions/onNavigate) \> **onNavigate**(`value`): `void` Defined in: [src/index.ts:607](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L607) Function to be executed when navigation is requested. ## Parameters [#parameters] ### value [#value] (`path`) => `void` | `Promise`\<`void`> ## Returns [#returns] `void` ## Example [#example] ```ts Game.onNavigate(async (path) => { // custom navigation logic window.history.pushState({}, "title", path) }) ``` # Function: onStepEnd() (/pixi-vn/index/namespaces/Game/functions/onStepEnd) \> **onStepEnd**(`value`): `void` Defined in: [src/index.ts:532](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L532) Is a function that will be executed when the step ends. ## Parameters [#parameters] ### value [#value] (`stepId`, `label`) => `void` | `Promise`\<`void`> ## Returns [#returns] `void` # Function: onStepStart() (/pixi-vn/index/namespaces/Game/functions/onStepStart) \> **onStepStart**(`value`): `void` Defined in: [src/index.ts:500](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L500) Is a function that will be executed before any step is executed. ## Parameters [#parameters] ### value [#value] (`stepId`, `label`) => `void` | `Promise`\<`void`> ## Returns [#returns] `void` # Function: removeOnError() (/pixi-vn/index/namespaces/Game/functions/removeOnError) \> **removeOnError**(`handler`): `void` Defined in: [src/index.ts:491](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L491) Remove a previously registered error handler. ## Parameters [#parameters] ### handler [#handler] [`OnErrorHandler`](/pixi-vn/index/type-aliases/OnErrorHandler) ## Returns [#returns] `void` # Function: removeOnExportGameState() (/pixi-vn/index/namespaces/Game/functions/removeOnExportGameState) \> **removeOnExportGameState**(`handler`): `void` Defined in: [src/index.ts:299](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L299) Remove a handler previously registered with [addOnExportGameState](/pixi-vn/index/namespaces/Game/functions/addOnExportGameState). Other handlers stay registered. ## Parameters [#parameters] ### handler [#handler] [`OnExportGameStateHandler`](/pixi-vn/index/type-aliases/OnExportGameStateHandler) The handler to remove. ## Returns [#returns] `void` # Function: removeOnPreContinue() (/pixi-vn/index/namespaces/Game/functions/removeOnPreContinue) \> **removeOnPreContinue**(`handler`): `void` Defined in: [src/index.ts:619](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L619) ## Parameters [#parameters] ### handler [#handler] () => `void` | `Promise`\<`void`> ## Returns [#returns] `void` # Function: removeOnRestoreGameState() (/pixi-vn/index/namespaces/Game/functions/removeOnRestoreGameState) \> **removeOnRestoreGameState**(`handler`): `void` Defined in: [src/index.ts:343](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L343) Remove a handler previously registered with [addOnRestoreGameState](/pixi-vn/index/namespaces/Game/functions/addOnRestoreGameState), whatever its timing. Other handlers stay registered. ## Parameters [#parameters] ### handler [#handler] [`OnRestoreGameStateHandler`](/pixi-vn/index/type-aliases/OnRestoreGameStateHandler) The handler to remove. ## Returns [#returns] `void` # Function: restoreGameState() (/pixi-vn/index/namespaces/Game/functions/restoreGameState) \> **restoreGameState**(`data`): `Promise`\<`void`> Defined in: [src/index.ts:394](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L394) Load the save data. Handlers registered with [addOnRestoreGameState](/pixi-vn/index/namespaces/Game/functions/addOnRestoreGameState) run before and/or after the built-in restoration, according to their `timing`. ## Parameters [#parameters] ### data [#data] [`GameState`](/pixi-vn/index/interfaces/GameState) The save data object to restore the game state from. ## Returns [#returns] `Promise`\<`void`> # Function: start() (/pixi-vn/index/namespaces/Game/functions/start) \> **start**\<`T`>(`label`, `props`): `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/index.ts:419](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L419) Start the game with a label. This function will clear all the game data and start the narration from the specified label. ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` = \{ } ## Parameters [#parameters] ### label [#label] `string` | [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `T`, `number`> The label to start the game with. It can be a string or a LabelAbstract instance. If it is a string, it will be used as the id of the label to start. If it is a LabelAbstract instance, it will be used directly. If the label is not found, an error will be thrown. ### props [#props] [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> The properties to pass to the label. It will be passed to the [StepLabelType](/pixi-vn/index/type-aliases/StepLabelType) of the label when it is executed. ## Returns [#returns] `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> The result of the label execution. It can be a [StepLabelResultType](/pixi-vn/index/type-aliases/StepLabelResultType) or a Promise that resolves to a [StepLabelResultType](/pixi-vn/index/type-aliases/StepLabelResultType). # Game (/pixi-vn/index/namespaces/Game) ## Variables [#variables] * [testing](/pixi-vn/index/namespaces/Game/variables/testing) * [worker](/pixi-vn/index/namespaces/Game/variables/worker) ## Functions [#functions] * [addOnError](/pixi-vn/index/namespaces/Game/functions/addOnError) * [addOnExportGameState](/pixi-vn/index/namespaces/Game/functions/addOnExportGameState) * [addOnPreContinue](/pixi-vn/index/namespaces/Game/functions/addOnPreContinue) * [addOnRestoreGameState](/pixi-vn/index/namespaces/Game/functions/addOnRestoreGameState) * [clear](/pixi-vn/index/namespaces/Game/functions/clear) * [exportGameState](/pixi-vn/index/namespaces/Game/functions/exportGameState) * [init](/pixi-vn/index/namespaces/Game/functions/init) * [jsonToGameState](/pixi-vn/index/namespaces/Game/functions/jsonToGameState) * [onEnd](/pixi-vn/index/namespaces/Game/functions/onEnd) * [onLabelClosing](/pixi-vn/index/namespaces/Game/functions/onLabelClosing) * [onLabelStarting](/pixi-vn/index/namespaces/Game/functions/onLabelStarting) * [onLoadingLabel](/pixi-vn/index/namespaces/Game/functions/onLoadingLabel) * [onNavigate](/pixi-vn/index/namespaces/Game/functions/onNavigate) * [onStepEnd](/pixi-vn/index/namespaces/Game/functions/onStepEnd) * [onStepStart](/pixi-vn/index/namespaces/Game/functions/onStepStart) * [removeOnError](/pixi-vn/index/namespaces/Game/functions/removeOnError) * [removeOnExportGameState](/pixi-vn/index/namespaces/Game/functions/removeOnExportGameState) * [removeOnPreContinue](/pixi-vn/index/namespaces/Game/functions/removeOnPreContinue) * [removeOnRestoreGameState](/pixi-vn/index/namespaces/Game/functions/removeOnRestoreGameState) * [restoreGameState](/pixi-vn/index/namespaces/Game/functions/restoreGameState) * [start](/pixi-vn/index/namespaces/Game/functions/start) # Variable: testing (/pixi-vn/index/namespaces/Game/variables/testing) \> `const` **testing**: `object` Defined in: [src/index.ts:680](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L680) Lets an AI agent (or any external script/browser console) drive and inspect a running game through `window`, without needing to know the app's own UI wiring. Not enabled by default — something must opt in, typically only in development. Two pieces are needed: * `enable()`/`disable()` turn the `window` bridge on/off — the `@drincs/pixi-vn/vite` plugin's `testing` option does this automatically while its dev server is running, with no extra code. * `setProps(props)` keeps the live app props (`navigate`/`t`/`toast`/etc.) available to every action — call it unconditionally from wherever your app builds those props (e.g. at the end of a `useGameProps()`-style hook), since every action needs up-to-date props whether or not testing happens to be enabled right now. * `setActions(actions)` is optional: if the app wraps `narration`/`stepHistory` in its own functions to handle UI-only concerns (a loading indicator, blocking while a menu is open, refreshing cached interface data, ...), it can register those functions so `continue()`, `goBack()`, `selectChoice()`, `start()`, `jump()` and `call()` drive the game through them instead of calling `narration`/`stepHistory` directly — same as a real player action would. See the `pixi-vn-testing` skill for the full guide (activation patterns, the complete command surface, and cookbook snippets for a browser-driven test session). ## Type Declaration [#type-declaration] ### disable [#disable] \> **disable**: () => `void` Disables a session started with `enable`: removes the error handler and, if it's still the current value, deletes `window[windowKey]`. No-op if testing isn't enabled. #### Returns [#returns] `void` ### enable [#enable] \> **enable**: \<`T`>(`options?`) => [`GameTestingAPI`](/pixi-vn/index/interfaces/GameTestingAPI)\<*typeof* [`Game`](/pixi-vn/index/namespaces/Game), `T`> Enables the testing API: builds it, attaches it to `window[windowKey]` (default `"pixiVN"`), and returns it. Calling this again replaces the previous session. #### Type Parameters [#type-parameters] ##### T [#t] `T` *extends* `object` = \{ } #### Parameters [#parameters] ##### options? [#options] ###### windowKey? [#windowkey] `string` The property name to attach the API under on `window`. #### Returns [#returns-1] [`GameTestingAPI`](/pixi-vn/index/interfaces/GameTestingAPI)\<*typeof* [`Game`](/pixi-vn/index/namespaces/Game), `T`> #### Default [#default] ```ts "pixiVN" ``` ### isEnabled [#isenabled] \> **isEnabled**: () => `boolean` Whether a testing session is currently active. #### Returns [#returns-2] `boolean` ### setActions [#setactions] \> **setActions**: \<`T`>(`actions`) => `void` Registers the app's own narration functions so [GameTestingAPI](/pixi-vn/index/interfaces/GameTestingAPI)'s `continue`, `goBack`, `selectChoice`, `start`, `jump` and `call` call them instead of going straight to `narration`/`stepHistory` — useful when the app wraps those with UI-only concerns (e.g. a loading indicator, blocking while a menu is open, refreshing cached interface data) that a test session driving the game through `window` should also go through, exactly like a real player action would. Safe to call whether or not testing is currently `enable`d, and safe to call again to update the registered functions (e.g. when they close over fresh props). Persists across `disable`/`enable`, same as `setProps`. #### Type Parameters [#type-parameters-1] ##### T [#t-1] `T` *extends* `object` = \{ } #### Parameters [#parameters-1] ##### actions [#actions] [`GameTestingActions`](/pixi-vn/index/interfaces/GameTestingActions)\<`T`> The app's own narration functions to use in place of the defaults. Pass `{}` (or omit an action) to keep/restore the default behavior for that action. #### Returns [#returns-3] `void` ### setProps [#setprops] \> **setProps**: \<`T`>(`props`) => `void` Updates the live props every [GameTestingAPI](/pixi-vn/index/interfaces/GameTestingAPI) action merges `extraProps` on top of. Call this unconditionally from wherever your app builds its `StepLabelProps` (e.g. the end of a `useGameProps()`-style hook that already runs throughout the app) — it's a cheap assignment, safe to call whether or not testing is currently `enable`d. #### Type Parameters [#type-parameters-2] ##### T [#t-2] `T` *extends* `object` = \{ } #### Parameters [#parameters-2] ##### props [#props] [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> The app's current `StepLabelProps` (the same object your UI passes to `narration.continue`/`Game.start`). #### Returns [#returns-4] `void` # Variable: worker (/pixi-vn/index/namespaces/Game/variables/worker) \> `const` **worker**: `object` Defined in: [src/index.ts:654](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L654) Optional integration point for offloading Pixi'VN's own heavy, pure computations (state diffing/restoring/cloning for `stepHistory.back()`/`add()`/`export()`) to a Worker the game project provides. Pixi'VN never creates a Worker itself, decides on its own which eligible work actually goes through it, and falls back to computing the same thing synchronously on the main thread whenever none is registered - so projects that can't or don't want to use Workers (SSR, certain embeds, ...) are unaffected either way. The game project stays in control of the actual `new Worker(...)` call (bundler-specific URL/`type: "module"` handling, CSP, lifecycle) and only needs to point that worker's message handling at `handleGameWorkerMessage` from `@drincs/pixi-vn/worker`: ```ts // main thread import { Game } from "@drincs/pixi-vn"; const worker = new Worker(new URL("./game-worker.ts", import.meta.url), { type: "module" }); Game.worker.register(worker); // game-worker.ts import { handleGameWorkerMessage } from "@drincs/pixi-vn/worker"; self.onmessage = async (event) => { const response = await handleGameWorkerMessage(event.data); if (response) self.postMessage(response); }; ``` A third-party library built on top of Pixi'VN (one with `@drincs/pixi-vn` as a peer dependency) can share this same worker for its own heavy, pure computations instead of needing one of its own - see `registerGameWorkerHandler` (worker side) and `GameWorkerManager.custom` (main-thread side), both from `@drincs/pixi-vn/worker`. ## Type Declaration [#type-declaration] ### register [#register] \> **register**: (`worker`) => `void` #### Parameters [#parameters] ##### worker [#worker] `Worker` #### Returns [#returns] `void` ### unregister [#unregister] \> **unregister**: () => `void` #### Returns [#returns-1] `void` ### isAvailable [#isavailable] #### Get Signature [#get-signature] \> **get** **isAvailable**(): `boolean` ##### Returns [#returns-2] `boolean` # Function: add() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/add) \> **add**\<`M`, `T`>(`target`, `options?`): `void` Defined in: [src/canvas/decorators/canvas-element-decorator.ts:171](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L171) Register a canvas component in the game. ## Type Parameters [#type-parameters] ### M [#m] `M` *extends* [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) ### T [#t] `T` *extends* *typeof* [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem) ## Parameters [#parameters] ### target [#target] `T` The class of the canvas component. ### options? [#options] Options for the canvas component. #### copyProperty? [#copyproperty] (`component`, `memory`) => `void` | `Promise`\<`void`> Function to copy the properties of the canvas component. This function is used when to copy the properties of the canvas component into another instance of the same canvas component. This function is used into [canvas.copyCanvasElementProperty](/pixi-vn/index/interfaces/CanvasManagerInterface#copycanvaselementproperty) to copy the properties of the canvas component. #### getInstance? [#getinstance] (`canvasClass`, `memory`) => [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`M`> | `Promise`\<[`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`M`>> Function to get the instance of the canvas component. If not set, it will use the default constructor of the class. This function is used into [canvas.restore](/pixi-vn/index/interfaces/CanvasManagerInterface#restore) to restore the canvas. #### name? [#name] `string` Name of the canvas component. If the name is already registered, it will show a warning **Default** ```ts target.name ``` ## Returns [#returns] `void` # Function: copyProperty() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/copyProperty) \> **copyProperty**\<`M`>(`canvasId`, `component`, `source`): `Promise`\<`void`> Defined in: [src/canvas/decorators/canvas-element-decorator.ts:258](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L258) ## Type Parameters [#type-parameters] ### M [#m] `M` *extends* [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) ## Parameters [#parameters] ### canvasId [#canvasid] `string` ### component [#component] [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`M`> ### source [#source] [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) ## Returns [#returns] `Promise`\<`void`> # Function: get() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/get) \> **get**\<`T`>(`canvasId`): `T` | `undefined` Defined in: [src/canvas/decorators/canvas-element-decorator.ts:225](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L225) Get a canvas component by the id. ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* *typeof* [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem) ## Parameters [#parameters] ### canvasId [#canvasid] `string` The id of the canvas component. ## Returns [#returns] `T` | `undefined` The canvas component type. # Function: getInstance() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/getInstance) \> **getInstance**\<`M`, `T`>(`canvasId`, `memory`): `Promise`\<`T` | `undefined`> Defined in: [src/canvas/decorators/canvas-element-decorator.ts:238](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L238) ## Type Parameters [#type-parameters] ### M [#m] `M` *extends* [`CanvasBaseItemMemory`](/pixi-vn/index/interfaces/CanvasBaseItemMemory) ### T [#t] `T` *extends* [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`M`> ## Parameters [#parameters] ### canvasId [#canvasid] `string` ### memory [#memory] `M` ## Returns [#returns] `Promise`\<`T` | `undefined`> # Function: has() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/has) \> **has**(`id`): `boolean` Defined in: [src/canvas/decorators/canvas-element-decorator.ts:291](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L291) Check if a canvas component is registered. ## Parameters [#parameters] ### id [#id] `string` The id of the canvas component. ## Returns [#returns] `boolean` True if the canvas component is registered, false otherwise. # Function: keys() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/keys) \> **keys**(): `string`\[] Defined in: [src/canvas/decorators/canvas-element-decorator.ts:299](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L299) Get a list of all canvas component ids registered. ## Returns [#returns] `string`\[] An array of label ids. # Function: values() (/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/values) \> **values**(): *typeof* [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\[] Defined in: [src/canvas/decorators/canvas-element-decorator.ts:282](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/canvas-element-decorator.ts#L282) Get a list of all canvas components registered. ## Returns [#returns] *typeof* [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\[] An array of canvas components. # RegisteredCanvasComponents (/pixi-vn/index/namespaces/RegisteredCanvasComponents) ## Functions [#functions] * [add](/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/add) * [copyProperty](/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/copyProperty) * [get](/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/get) * [getInstance](/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/getInstance) * [has](/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/has) * [keys](/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/keys) * [values](/pixi-vn/index/namespaces/RegisteredCanvasComponents/functions/values) # Function: add() (/pixi-vn/index/namespaces/RegisteredCharacters/functions/add) \> **add**(...`characters`): `void` Defined in: [src/characters/decorators/RegisteredCharacters.ts:51](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/decorators/RegisteredCharacters.ts#L51) Is a function that saves the character. If the character already exists, it will be overwritten. ## Parameters [#parameters] ### characters [#characters] ...(`CharacterInterface` | `CharacterInterface`\[])\[] is the character(s) to save ## Returns [#returns] `void` ## Example [#example] ```ts export const liam = new CharacterBaseModel('liam', { name: 'Liam'}); export const alice = new CharacterBaseModel('alice', { name: 'Alice'}); RegisteredCharacters.add(liam, alice); RegisteredCharacters.add([liam, alice]); ``` # Function: clear() (/pixi-vn/index/namespaces/RegisteredCharacters/functions/clear) \> **clear**(): `void` Defined in: [src/characters/decorators/RegisteredCharacters.ts:98](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/decorators/RegisteredCharacters.ts#L98) Removes all registered characters. ## Returns [#returns] `void` # Function: get() (/pixi-vn/index/namespaces/RegisteredCharacters/functions/get) \> **get**\<`T`, `T2`>(`id`): `T` | `undefined` Defined in: [src/characters/decorators/RegisteredCharacters.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/decorators/RegisteredCharacters.ts#L20) is a function that returns the character by the id ## Type Parameters [#type-parameters] ### T [#t] `T` = `CharacterInterface` ### T2 [#t2] `T2` *extends* `string` = `string` ## Parameters [#parameters] ### id [#id] `T2` is the id of the character ## Returns [#returns] `T` | `undefined` the character ## Example [#example] ```ts const liam = RegisteredCharacters.get('liam'); ``` # Function: has() (/pixi-vn/index/namespaces/RegisteredCharacters/functions/has) \> **has**(`id`): `boolean` Defined in: [src/characters/decorators/RegisteredCharacters.ts:83](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/decorators/RegisteredCharacters.ts#L83) Check if a character is registered. ## Parameters [#parameters] ### id [#id] `string` is the id of the character ## Returns [#returns] `boolean` true if the character exists, false otherwise # Function: keys() (/pixi-vn/index/namespaces/RegisteredCharacters/functions/keys) \> **keys**(): `string`\[] Defined in: [src/characters/decorators/RegisteredCharacters.ts:91](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/decorators/RegisteredCharacters.ts#L91) Get a list of all character ids registered. ## Returns [#returns] `string`\[] An array of character ids. # Function: values() (/pixi-vn/index/namespaces/RegisteredCharacters/functions/values) \> **values**\<`T`>(): `T`\[] Defined in: [src/characters/decorators/RegisteredCharacters.ts:74](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/decorators/RegisteredCharacters.ts#L74) is a function that returns all characters ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `CharacterInterface` ## Returns [#returns] `T`\[] all characters ## Example [#example] ```ts const allCharacters = RegisteredCharacters.values(); ``` # RegisteredCharacters (/pixi-vn/index/namespaces/RegisteredCharacters) ## Functions [#functions] * [add](/pixi-vn/index/namespaces/RegisteredCharacters/functions/add) * [clear](/pixi-vn/index/namespaces/RegisteredCharacters/functions/clear) * [get](/pixi-vn/index/namespaces/RegisteredCharacters/functions/get) * [has](/pixi-vn/index/namespaces/RegisteredCharacters/functions/has) * [keys](/pixi-vn/index/namespaces/RegisteredCharacters/functions/keys) * [values](/pixi-vn/index/namespaces/RegisteredCharacters/functions/values) # Function: add() (/pixi-vn/index/namespaces/RegisteredEvents/functions/add) \> **add**(`fn`, `name`): `void` Defined in: [src/canvas/decorators/event-decorator.ts:43](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/event-decorator.ts#L43) Register a event in the game. ## Parameters [#parameters] ### fn [#fn] `SerializableEventHandler` The class of the event. ### name [#name] `string` Name of the event, by default it will use the class name. If the name is already registered, it will show a warning ## Returns [#returns] `void` # Function: get() (/pixi-vn/index/namespaces/RegisteredEvents/functions/get) \> **get**(`name`): `SerializableEventHandler` | `undefined` Defined in: [src/canvas/decorators/event-decorator.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/event-decorator.ts#L56) Get a event by the id. ## Parameters [#parameters] ### name [#name] `string` ## Returns [#returns] `SerializableEventHandler` | `undefined` The event type. # Function: has() (/pixi-vn/index/namespaces/RegisteredEvents/functions/has) \> **has**(`id`): `boolean` Defined in: [src/canvas/decorators/event-decorator.ts:85](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/event-decorator.ts#L85) Check if a event is registered. ## Parameters [#parameters] ### id [#id] `string` The id of the event. ## Returns [#returns] `boolean` True if the event is registered, false otherwise # Function: keys() (/pixi-vn/index/namespaces/RegisteredEvents/functions/keys) \> **keys**(): `string`\[] Defined in: [src/canvas/decorators/event-decorator.ts:93](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/event-decorator.ts#L93) Get a list of all event ids registered. ## Returns [#returns] `string`\[] An array of label ids. # Function: values() (/pixi-vn/index/namespaces/RegisteredEvents/functions/values) \> **values**(): `SerializableEventHandler`\[] Defined in: [src/canvas/decorators/event-decorator.ts:76](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/decorators/event-decorator.ts#L76) Get a list of all events registered. ## Returns [#returns] `SerializableEventHandler`\[] An array of events. # RegisteredEvents (/pixi-vn/index/namespaces/RegisteredEvents) ## Functions [#functions] * [add](/pixi-vn/index/namespaces/RegisteredEvents/functions/add) * [get](/pixi-vn/index/namespaces/RegisteredEvents/functions/get) * [has](/pixi-vn/index/namespaces/RegisteredEvents/functions/has) * [keys](/pixi-vn/index/namespaces/RegisteredEvents/functions/keys) * [values](/pixi-vn/index/namespaces/RegisteredEvents/functions/values) # Function: add() (/pixi-vn/index/namespaces/RegisteredLabels/functions/add) \> **add**(...`labels`): `void` Defined in: [src/narration/decorators/RegisteredLabels.ts:36](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/decorators/RegisteredLabels.ts#L36) Saves a label in the system ## Parameters [#parameters] ### labels [#labels] ...[`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, `any`, `number`>\[] The label(s) to be saved ## Returns [#returns] `void` # Function: clear() (/pixi-vn/index/namespaces/RegisteredLabels/functions/clear) \> **clear**(): `void` Defined in: [src/narration/decorators/RegisteredLabels.ts:70](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/decorators/RegisteredLabels.ts#L70) Removes all registered labels. ## Returns [#returns] `void` # Function: get() (/pixi-vn/index/namespaces/RegisteredLabels/functions/get) \> **get**\<`T`, `T2`>(`id`): `T` | `undefined` Defined in: [src/narration/decorators/RegisteredLabels.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/decorators/RegisteredLabels.ts#L21) Gets a label by its id ## Type Parameters [#type-parameters] ### T [#t] `T` = [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`> ### T2 [#t2] `T2` *extends* `string` = `string` ## Parameters [#parameters] ### id [#id] `T2` The id of the label ## Returns [#returns] `T` | `undefined` The label or undefined if it does not exist # Function: has() (/pixi-vn/index/namespaces/RegisteredLabels/functions/has) \> **has**(`id`): `boolean` Defined in: [src/narration/decorators/RegisteredLabels.ts:55](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/decorators/RegisteredLabels.ts#L55) Check if a label is registered ## Parameters [#parameters] ### id [#id] `string` The id of the label ## Returns [#returns] `boolean` True if the label is registered, false otherwise # Function: keys() (/pixi-vn/index/namespaces/RegisteredLabels/functions/keys) \> **keys**(): `string`\[] Defined in: [src/narration/decorators/RegisteredLabels.ts:63](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/decorators/RegisteredLabels.ts#L63) Get a list of all label ids registered. ## Returns [#returns] `string`\[] An array of label ids. # Function: values() (/pixi-vn/index/namespaces/RegisteredLabels/functions/values) \> **values**(): [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`>\[] Defined in: [src/narration/decorators/RegisteredLabels.ts:46](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/decorators/RegisteredLabels.ts#L46) Get a list of all labels registered. ## Returns [#returns] [`LabelAbstract`](/pixi-vn/index/classes/LabelAbstract)\<`any`, \{ }, `number`>\[] An array of labels. # RegisteredLabels (/pixi-vn/index/namespaces/RegisteredLabels) ## Functions [#functions] * [add](/pixi-vn/index/namespaces/RegisteredLabels/functions/add) * [clear](/pixi-vn/index/namespaces/RegisteredLabels/functions/clear) * [get](/pixi-vn/index/namespaces/RegisteredLabels/functions/get) * [has](/pixi-vn/index/namespaces/RegisteredLabels/functions/has) * [keys](/pixi-vn/index/namespaces/RegisteredLabels/functions/keys) * [values](/pixi-vn/index/namespaces/RegisteredLabels/functions/values) # Function: add() (/pixi-vn/index/namespaces/RegisteredTickers/functions/add) \> **add**(`target`, `name?`): `void` Defined in: [src/tickers/decorators/RegisteredTickers.ts:54](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/decorators/RegisteredTickers.ts#L54) Register a ticker in the game. ## Parameters [#parameters] ### target [#target] new (`args`, `options?`) => [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`> The class of the ticker. ### name? [#name] `string` Name of the ticker, by default it will use the class name. If the name is already registered, it will show a warning ## Returns [#returns] `void` # Function: get() (/pixi-vn/index/namespaces/RegisteredTickers/functions/get) \> **get**\<`T`>(`tickerId`): `T` | `undefined` Defined in: [src/tickers/decorators/RegisteredTickers.ts:83](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/decorators/RegisteredTickers.ts#L83) Get a ticker by the id. ## Type Parameters [#type-parameters] ### T [#t] `T` = [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`> ## Parameters [#parameters] ### tickerId [#tickerid] `string` ## Returns [#returns] `T` | `undefined` The ticker type. # Function: getInstance() (/pixi-vn/index/namespaces/RegisteredTickers/functions/getInstance) \> **getInstance**\<`TArgs`>(`tickerId`, `args`, `options?`): [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> | `undefined` Defined in: [src/tickers/decorators/RegisteredTickers.ts:107](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/decorators/RegisteredTickers.ts#L107) Get a ticker instance by the id. ## Type Parameters [#type-parameters] ### TArgs [#targs] `TArgs` *extends* [`TickerArgs`](/pixi-vn/index/interfaces/TickerArgs) ## Parameters [#parameters] ### tickerId [#tickerid] `string` The id of the ticker. ### args [#args] `TArgs` The arguments that you want to pass to the ticker. ### options? [#options] #### canvasElementAliases? [#canvaselementaliases] `string`\[] #### duration? [#duration] `number` #### id? [#id] `string` #### priority? [#priority] `UPDATE_PRIORITY` ## Returns [#returns] [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`TArgs`> | `undefined` The instance of the ticker # Function: has() (/pixi-vn/index/namespaces/RegisteredTickers/functions/has) \> **has**(`id`): `boolean` Defined in: [src/tickers/decorators/RegisteredTickers.ts:155](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/decorators/RegisteredTickers.ts#L155) Check if a ticker is registered. ## Parameters [#parameters] ### id [#id] `string` The id of the ticker. ## Returns [#returns] `boolean` True if the ticker is registered, false otherwise. # Function: keys() (/pixi-vn/index/namespaces/RegisteredTickers/functions/keys) \> **keys**(): `string`\[] Defined in: [src/tickers/decorators/RegisteredTickers.ts:163](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/decorators/RegisteredTickers.ts#L163) Get a list of all ticker ids registered. ## Returns [#returns] `string`\[] An array of label ids. # Function: values() (/pixi-vn/index/namespaces/RegisteredTickers/functions/values) \> **values**(): (new (`args`, `options?`) => [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`>)\[] Defined in: [src/tickers/decorators/RegisteredTickers.ts:136](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/decorators/RegisteredTickers.ts#L136) Get a list of all tickers registered. ## Returns [#returns] (new (`args`, `options?`) => [`Ticker`](/pixi-vn/index/interfaces/Ticker)\<`any`>)\[] An array of tickers. # RegisteredTickers (/pixi-vn/index/namespaces/RegisteredTickers) ## Functions [#functions] * [add](/pixi-vn/index/namespaces/RegisteredTickers/functions/add) * [get](/pixi-vn/index/namespaces/RegisteredTickers/functions/get) * [getInstance](/pixi-vn/index/namespaces/RegisteredTickers/functions/getInstance) * [has](/pixi-vn/index/namespaces/RegisteredTickers/functions/has) * [keys](/pixi-vn/index/namespaces/RegisteredTickers/functions/keys) * [values](/pixi-vn/index/namespaces/RegisteredTickers/functions/values) # SoundRegistry (/pixi-vn/index/namespaces/SoundRegistry) SoundRegistry is a singleton namespace that holds global state for the sound system. **DO NOT** import this module directly; use `sound`. ## Variables [#variables] * [bufferRegistry](/pixi-vn/index/namespaces/SoundRegistry/variables/bufferRegistry) * [channels](/pixi-vn/index/namespaces/SoundRegistry/variables/channels) * [mediaInstances](/pixi-vn/index/namespaces/SoundRegistry/variables/mediaInstances) * [systemPausedAliases](/pixi-vn/index/namespaces/SoundRegistry/variables/systemPausedAliases) * [transients](/pixi-vn/index/namespaces/SoundRegistry/variables/transients) # Variable: bufferRegistry (/pixi-vn/index/namespaces/SoundRegistry/variables/bufferRegistry) \> `const` **bufferRegistry**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`string`, `ToneAudioBuffer`> Defined in: [src/sound/SoundRegistry.ts:20](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/SoundRegistry.ts#L20) # Variable: channels (/pixi-vn/index/namespaces/SoundRegistry/variables/channels) \> `const` **channels**: `Map`\<`string`, [`AudioChannelInterface`](/pixi-vn/index/interfaces/AudioChannelInterface)> Defined in: [src/sound/SoundRegistry.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/SoundRegistry.ts#L12) # Variable: mediaInstances (/pixi-vn/index/namespaces/SoundRegistry/variables/mediaInstances) \> `const` **mediaInstances**: `Map`\<`string`, `MediaInstance`> Defined in: [src/sound/SoundRegistry.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/SoundRegistry.ts#L11) # Variable: systemPausedAliases (/pixi-vn/index/namespaces/SoundRegistry/variables/systemPausedAliases) \> `const` **systemPausedAliases**: `Set`\<`string`> Defined in: [src/sound/SoundRegistry.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/SoundRegistry.ts#L19) Aliases of [mediaInstances](/pixi-vn/index/namespaces/SoundRegistry/variables/mediaInstances) that were paused by `unsaved.pauseAll`. Used by `unsaved.resumeAll` to only resume the instances it paused, leaving any previously-paused instances untouched. # Variable: transients (/pixi-vn/index/namespaces/SoundRegistry/variables/transients) \> `const` **transients**: `Set`\<`Player`> Defined in: [src/sound/SoundRegistry.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/SoundRegistry.ts#L13) # Function: clearOldTempVariables() (/pixi-vn/index/namespaces/StorageRegistry/functions/clearOldTempVariables) \> **clearOldTempVariables**(`openedLabelsNumber`): `void` Defined in: [src/storage/StorageRegistry.ts:17](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L17) ## Parameters [#parameters] ### openedLabelsNumber [#openedlabelsnumber] `number` ## Returns [#returns] `void` # Function: getFlag() (/pixi-vn/index/namespaces/StorageRegistry/functions/getFlag) \> **getFlag**(`key`): `boolean` Defined in: [src/storage/StorageRegistry.ts:68](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L68) ## Parameters [#parameters] ### key [#key] `string` ## Returns [#returns] `boolean` # Function: getVariable() (/pixi-vn/index/namespaces/StorageRegistry/functions/getVariable) \> **getVariable**\<`T`>(`prefix`, `key`): `T` | `undefined` Defined in: [src/storage/StorageRegistry.ts:40](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L40) ## Type Parameters [#type-parameters] ### T [#t] `T` = [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) ## Parameters [#parameters] ### prefix [#prefix] `string` ### key [#key] `string` ## Returns [#returns] `T` | `undefined` # Function: removeVariable() (/pixi-vn/index/namespaces/StorageRegistry/functions/removeVariable) \> **removeVariable**(`prefix`, `key`): `void` Defined in: [src/storage/StorageRegistry.ts:48](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L48) ## Parameters [#parameters] ### prefix [#prefix] `string` ### key [#key] `string` ## Returns [#returns] `void` # Function: setExternalStoreHandler() (/pixi-vn/index/namespaces/StorageRegistry/functions/setExternalStoreHandler) \> **setExternalStoreHandler**(`handler?`): `void` Defined in: [src/storage/StorageRegistry.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L27) ## Parameters [#parameters] ### handler? [#handler] [`StorageExternalStoreHandler`](/pixi-vn/index/interfaces/StorageExternalStoreHandler) ## Returns [#returns] `void` # Function: setFlag() (/pixi-vn/index/namespaces/StorageRegistry/functions/setFlag) \> **setFlag**(`key`, `value`): `void` Defined in: [src/storage/StorageRegistry.ts:53](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L53) ## Parameters [#parameters] ### key [#key] `string` ### value [#value] `boolean` ## Returns [#returns] `void` # Function: setVariable() (/pixi-vn/index/namespaces/StorageRegistry/functions/setVariable) \> **setVariable**(`prefix`, `key`, `value`): `void` Defined in: [src/storage/StorageRegistry.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L31) ## Parameters [#parameters] ### prefix [#prefix] `string` ### key [#key] `string` ### value [#value] [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType) ## Returns [#returns] `void` # StorageRegistry (/pixi-vn/index/namespaces/StorageRegistry) StorageRegistry is a singleton namespace that holds global state for the storage system. **DO NOT** import this module directly; use `storage`. ## Variables [#variables] * [defaultStorage](/pixi-vn/index/namespaces/StorageRegistry/variables/defaultStorage) * [storage](/pixi-vn/index/namespaces/StorageRegistry/variables/storage) * [tempStorageDeadlines](/pixi-vn/index/namespaces/StorageRegistry/variables/tempStorageDeadlines) ## Functions [#functions] * [clearOldTempVariables](/pixi-vn/index/namespaces/StorageRegistry/functions/clearOldTempVariables) * [getFlag](/pixi-vn/index/namespaces/StorageRegistry/functions/getFlag) * [getVariable](/pixi-vn/index/namespaces/StorageRegistry/functions/getVariable) * [removeVariable](/pixi-vn/index/namespaces/StorageRegistry/functions/removeVariable) * [setExternalStoreHandler](/pixi-vn/index/namespaces/StorageRegistry/functions/setExternalStoreHandler) * [setFlag](/pixi-vn/index/namespaces/StorageRegistry/functions/setFlag) * [setVariable](/pixi-vn/index/namespaces/StorageRegistry/functions/setVariable) # Variable: defaultStorage (/pixi-vn/index/namespaces/StorageRegistry/variables/defaultStorage) \> `const` **defaultStorage**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`string`, `any`> Defined in: [src/storage/StorageRegistry.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L13) # Variable: storage (/pixi-vn/index/namespaces/StorageRegistry/variables/storage) \> `const` **storage**: [`CachedMap`](/pixi-vn/index/classes/CachedMap)\<`string`, `any`> Defined in: [src/storage/StorageRegistry.ts:12](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L12) # Variable: tempStorageDeadlines (/pixi-vn/index/namespaces/StorageRegistry/variables/tempStorageDeadlines) \> `const` **tempStorageDeadlines**: `Map`\<`string`, `number`> Defined in: [src/storage/StorageRegistry.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/StorageRegistry.ts#L14) # Function: addTickerTimeoutInfo() (/pixi-vn/index/namespaces/TickersManagerStatic/functions/addTickerTimeoutInfo) \> **addTickerTimeoutInfo**(`aliases`, `ticker`, `timeout`, `canBeDeletedBeforeEnd`): `void` Defined in: [src/tickers/TickersManagerStatic.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L56) ## Parameters [#parameters] ### aliases [#aliases] `string` | `string`\[] ### ticker [#ticker] `string` ### timeout [#timeout] `string` ### canBeDeletedBeforeEnd [#canbedeletedbeforeend] `boolean` ## Returns [#returns] `void` # Function: currentTickersSequence() (/pixi-vn/index/namespaces/TickersManagerStatic/functions/currentTickersSequence) \> **currentTickersSequence**(): `object` Defined in: [src/tickers/TickersManagerStatic.ts:34](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L34) ## Returns [#returns] `object` # Function: currentTickersWithoutCreatedBySteps() (/pixi-vn/index/namespaces/TickersManagerStatic/functions/currentTickersWithoutCreatedBySteps) \> **currentTickersWithoutCreatedBySteps**(): `object` Defined in: [src/tickers/TickersManagerStatic.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L13) ## Returns [#returns] `object` # Function: generateTickerId() (/pixi-vn/index/namespaces/TickersManagerStatic/functions/generateTickerId) \> **generateTickerId**(...`args`): `string` Defined in: [src/tickers/TickersManagerStatic.ts:49](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L49) ## Parameters [#parameters] ### args [#args] ...`any`\[] ## Returns [#returns] `string` # Function: removeTickerTimeout() (/pixi-vn/index/namespaces/TickersManagerStatic/functions/removeTickerTimeout) \> **removeTickerTimeout**(`timeout`): `void` Defined in: [src/tickers/TickersManagerStatic.ts:77](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L77) ## Parameters [#parameters] ### timeout [#timeout] `string` | `Timeout` ## Returns [#returns] `void` # Function: removeTickerTimeoutInfo() (/pixi-vn/index/namespaces/TickersManagerStatic/functions/removeTickerTimeoutInfo) \> **removeTickerTimeoutInfo**(`timeout`): `void` Defined in: [src/tickers/TickersManagerStatic.ts:71](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L71) ## Parameters [#parameters] ### timeout [#timeout] `string` | `Timeout` ## Returns [#returns] `void` # Function: removeTickerTimeoutsByAlias() (/pixi-vn/index/namespaces/TickersManagerStatic/functions/removeTickerTimeoutsByAlias) \> **removeTickerTimeoutsByAlias**(`alias`, `checkCanBeDeletedBeforeEnd`): `void` Defined in: [src/tickers/TickersManagerStatic.ts:84](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L84) ## Parameters [#parameters] ### alias [#alias] `string` ### checkCanBeDeletedBeforeEnd [#checkcanbedeletedbeforeend] `boolean` ## Returns [#returns] `void` # TickersManagerStatic (/pixi-vn/index/namespaces/TickersManagerStatic) Static, module-scoped ticker bookkeeping - moved out of `CanvasManagerStatic` (formerly `CanvasManagerStatic`'s "Edit Tickers Methods" section) so the `tickers` module can own its own state without importing `@drincs/pixi-vn/canvas`. ## Variables [#variables] * [\_currentTickers](/pixi-vn/index/namespaces/TickersManagerStatic/variables/currentTickers) * [\_currentTickersSequence](/pixi-vn/index/namespaces/TickersManagerStatic/variables/currentTickersSequence) * [\_currentTickersTimeouts](/pixi-vn/index/namespaces/TickersManagerStatic/variables/currentTickersTimeouts) * [\_tickersToCompleteOnStepEnd](/pixi-vn/index/namespaces/TickersManagerStatic/variables/tickersToCompleteOnStepEnd) ## Functions [#functions] * [addTickerTimeoutInfo](/pixi-vn/index/namespaces/TickersManagerStatic/functions/addTickerTimeoutInfo) * [currentTickersSequence](/pixi-vn/index/namespaces/TickersManagerStatic/functions/currentTickersSequence) * [currentTickersWithoutCreatedBySteps](/pixi-vn/index/namespaces/TickersManagerStatic/functions/currentTickersWithoutCreatedBySteps) * [generateTickerId](/pixi-vn/index/namespaces/TickersManagerStatic/functions/generateTickerId) * [removeTickerTimeout](/pixi-vn/index/namespaces/TickersManagerStatic/functions/removeTickerTimeout) * [removeTickerTimeoutInfo](/pixi-vn/index/namespaces/TickersManagerStatic/functions/removeTickerTimeoutInfo) * [removeTickerTimeoutsByAlias](/pixi-vn/index/namespaces/TickersManagerStatic/functions/removeTickerTimeoutsByAlias) # Variable: _currentTickers (/pixi-vn/index/namespaces/TickersManagerStatic/variables/currentTickers) \> `const` **\_currentTickers**: `Map`\<`string`, [`TickerInfo`](/pixi-vn/index/interfaces/TickerInfo)\<`any`>> Defined in: [src/tickers/TickersManagerStatic.ts:32](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L32) # Variable: _currentTickersSequence (/pixi-vn/index/namespaces/TickersManagerStatic/variables/currentTickersSequence) \> `const` **\_currentTickersSequence**: `Map`\<`string`, `Map`\<`string`, [`TickersSequence`](/pixi-vn/index/interfaces/TickersSequence)>> Defined in: [src/tickers/TickersManagerStatic.ts:33](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L33) # Variable: _currentTickersTimeouts (/pixi-vn/index/namespaces/TickersManagerStatic/variables/currentTickersTimeouts) \> `const` **\_currentTickersTimeouts**: `Map`\<`string`, [`TickerTimeoutHistory`](/pixi-vn/index/interfaces/TickerTimeoutHistory)> Defined in: [src/tickers/TickersManagerStatic.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L44) # Variable: _tickersToCompleteOnStepEnd (/pixi-vn/index/namespaces/TickersManagerStatic/variables/tickersToCompleteOnStepEnd) \> `const` **\_tickersToCompleteOnStepEnd**: `object` Defined in: [src/tickers/TickersManagerStatic.ts:45](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/TickersManagerStatic.ts#L45) ## Type Declaration [#type-declaration] ### stepAlias [#stepalias] \> **stepAlias**: `object`\[] ### tikersIds [#tikersids] \> **tikersIds**: `object`\[] # Function: blurPulseEffect() (/pixi-vn/index/namespaces/effects/functions/blurPulseEffect) \> **blurPulseEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:709](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L709) Pulse a blur on the canvas element: a repeated, decaying blur bump that settles back to no blur between and after each pulse ([BlurFilter](https://pixijs.io/filters/docs/BlurFilter.html)). ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`BlurPulseEffectProps`](/pixi-vn/index/interfaces/BlurPulseEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: bounceEffect() (/pixi-vn/index/namespaces/effects/functions/bounceEffect) \> **bounceEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:189](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L189) Bounce the canvas element: a one-directional displacement that repeatedly returns to rest, each bounce shrinking towards rest by [BounceEffectProps.decay](/pixi-vn/index/interfaces/DecayingEffectProps#decay). Like a dropped ball settling. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`BounceEffectProps`](/pixi-vn/index/interfaces/BounceEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: chromaticAberrationEffect() (/pixi-vn/index/namespaces/effects/functions/chromaticAberrationEffect) \> **chromaticAberrationEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:543](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L543) Chromatic-aberration the canvas element: the red and blue color channels split apart in opposite directions and snap back, in a decaying burst ([RGBSplitFilter](https://pixijs.io/filters/docs/RGBSplitFilter.html)). ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`ChromaticAberrationEffectProps`](/pixi-vn/index/interfaces/ChromaticAberrationEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: desaturateEffect() (/pixi-vn/index/namespaces/effects/functions/desaturateEffect) \> **desaturateEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:800](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L800) Desaturate the canvas element: color drains out to [DesaturateEffectProps.amount](/pixi-vn/index/interfaces/DesaturateEffectProps#amount) and recovers back to normal - a single dip, not a repeated oscillation ([AdjustmentFilter](https://pixijs.io/filters/docs/AdjustmentFilter.html)). ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`DesaturateEffectProps`](/pixi-vn/index/interfaces/DesaturateEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: glitchEffect() (/pixi-vn/index/namespaces/effects/functions/glitchEffect) \> **glitchEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:476](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L476) Glitch the canvas element: decaying, jittery bursts of digital-corruption slice displacement ([GlitchFilter](https://pixijs.io/filters/docs/GlitchFilter.html)) - each burst snaps, kicks back the other way and settles - with a matching red/blue channel split layered on top ([RGBSplitFilter](https://pixijs.io/filters/docs/RGBSplitFilter.html), see [GlitchEffectProps.rgbSplit](/pixi-vn/index/interfaces/GlitchEffectProps#rgbsplit)). Both filters are removed once done. Returns one ticker id per filter. Known cosmetic quirk: `GlitchFilter`'s own `destroy()` (called once this effect completes, to clean up its displacement texture) can log a harmless `PixiJS Warning: [BindGroup] a 'textureSource'/'textureSampler' was destroyed while still bound to a shader` in the console - this comes from `pixi-filters`' own implementation, not from this effect, doesn't affect the component's rendering or state, and every property is still correctly restored/detached. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`GlitchEffectProps`](/pixi-vn/index/interfaces/GlitchEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: glowPulseEffect() (/pixi-vn/index/namespaces/effects/functions/glowPulseEffect) \> **glowPulseEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:836](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L836) Pulse a glow on the canvas element: a repeated, decaying outward glow that settles back to no glow between and after each pulse ([GlowFilter](https://pixijs.io/filters/docs/GlowFilter.html)). ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`GlowPulseEffectProps`](/pixi-vn/index/interfaces/GlowPulseEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: hopEffect() (/pixi-vn/index/namespaces/effects/functions/hopEffect) \> **hopEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:258](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L258) Hop the canvas element: one deliberate displacement-and-return, optionally followed by smaller, decaying secondary hops. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`HopEffectProps`](/pixi-vn/index/interfaces/HopEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: nodEffect() (/pixi-vn/index/namespaces/effects/functions/nodEffect) \> **nodEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:327](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L327) Nod the canvas element: a decaying positional oscillation along one axis. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`NodEffectProps`](/pixi-vn/index/interfaces/NodEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: pulseEffect() (/pixi-vn/index/namespaces/effects/functions/pulseEffect) \> **pulseEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:222](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L222) Pulse the canvas element: a repeated, decaying scale bump away from its current scale and back. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`PulseEffectProps`](/pixi-vn/index/interfaces/PulseEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: punchEffect() (/pixi-vn/index/namespaces/effects/functions/punchEffect) \> **punchEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:414](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L414) Punch the canvas element: a single fast impulse (position, rotation, or scale) with a strong attack and a short, slightly overshooting recovery back to rest - unlike every other effect here, this is a one-shot impact, not a repeated oscillation. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`PunchEffectProps`](/pixi-vn/index/interfaces/PunchEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: radialBlurEffect() (/pixi-vn/index/namespaces/effects/functions/radialBlurEffect) \> **radialBlurEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:650](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L650) Radially blur the canvas element: a decaying burst of zoom-blur radiating from an origin point, settling back to no blur between and after each burst ([ZoomBlurFilter](https://pixijs.io/filters/docs/ZoomBlurFilter.html)). ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`RadialBlurEffectProps`](/pixi-vn/index/interfaces/RadialBlurEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: shakeEffect() (/pixi-vn/index/namespaces/effects/functions/shakeEffect) \> **shakeEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:107](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L107) Shake the canvas element. If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`ShakeEffectProps`](/pixi-vn/index/interfaces/ShakeEffectProps) = `{}` Animation options, matching the `options` of animate function. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. This parameter sets the ticker's priority. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: shockwaveEffect() (/pixi-vn/index/namespaces/effects/functions/shockwaveEffect) \> **shockwaveEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:583](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L583) Shockwave the canvas element: a single radial ripple distortion travels outward from an origin point and fades ([ShockwaveFilter](https://pixijs.io/filters/docs/ShockwaveFilter.html)) - a one-shot impact, not a repeated oscillation. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`ShockwaveEffectProps`](/pixi-vn/index/interfaces/ShockwaveEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: swayEffect() (/pixi-vn/index/namespaces/effects/functions/swayEffect) \> **swayEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:364](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L364) Sway the canvas element: a smooth, optionally combined positional and rotational drift around its current state - a gentler, slower cousin of [nodEffect](/pixi-vn/index/namespaces/effects/functions/nodEffect)/[wiggleEffect](/pixi-vn/index/namespaces/effects/functions/wiggleEffect). ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`SwayEffectProps`](/pixi-vn/index/interfaces/SwayEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: vignettePulseEffect() (/pixi-vn/index/namespaces/effects/functions/vignettePulseEffect) \> **vignettePulseEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:749](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L749) Pulse a vignette on the canvas element: the edges darken and recover, in a repeated, decaying pulse - built on [CRTFilter](https://pixijs.io/filters/docs/CRTFilter.html) with its scanline/noise features turned off, isolating just the vignette. The vignette darkens the corners of the element's own bounding rectangle, so it's meant for backgrounds and other full-frame images; on a sprite with transparent corners (a character, a shape) there's little to darken and it barely shows. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`VignettePulseEffectProps`](/pixi-vn/index/interfaces/VignettePulseEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # Function: wiggleEffect() (/pixi-vn/index/namespaces/effects/functions/wiggleEffect) \> **wiggleEffect**(`alias`, `options?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-effect.ts:297](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-effect.ts#L297) Wiggle the canvas element: a decaying rotation oscillation around its current angle. ## Parameters [#parameters] ### alias [#alias] `string` The alias to identify the component. ### options? [#options] [`WiggleEffectProps`](/pixi-vn/index/interfaces/WiggleEffectProps) = `{}` Animation options. ### priority? [#priority] `UPDATE_PRIORITY` The priority of the PixiJS ticker. ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> # effects (/pixi-vn/index/namespaces/effects) ## Functions [#functions] * [blurPulseEffect](/pixi-vn/index/namespaces/effects/functions/blurPulseEffect) * [bounceEffect](/pixi-vn/index/namespaces/effects/functions/bounceEffect) * [chromaticAberrationEffect](/pixi-vn/index/namespaces/effects/functions/chromaticAberrationEffect) * [desaturateEffect](/pixi-vn/index/namespaces/effects/functions/desaturateEffect) * [glitchEffect](/pixi-vn/index/namespaces/effects/functions/glitchEffect) * [glowPulseEffect](/pixi-vn/index/namespaces/effects/functions/glowPulseEffect) * [hopEffect](/pixi-vn/index/namespaces/effects/functions/hopEffect) * [nodEffect](/pixi-vn/index/namespaces/effects/functions/nodEffect) * [pulseEffect](/pixi-vn/index/namespaces/effects/functions/pulseEffect) * [punchEffect](/pixi-vn/index/namespaces/effects/functions/punchEffect) * [radialBlurEffect](/pixi-vn/index/namespaces/effects/functions/radialBlurEffect) * [shakeEffect](/pixi-vn/index/namespaces/effects/functions/shakeEffect) * [shockwaveEffect](/pixi-vn/index/namespaces/effects/functions/shockwaveEffect) * [swayEffect](/pixi-vn/index/namespaces/effects/functions/swayEffect) * [vignettePulseEffect](/pixi-vn/index/namespaces/effects/functions/vignettePulseEffect) * [wiggleEffect](/pixi-vn/index/namespaces/effects/functions/wiggleEffect) # Function: blurIn() (/pixi-vn/index/namespaces/transitions/functions/blurIn) \> **blurIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:1798](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1798) Show a image in the canvas with a blur effect: the image appears already blurred and sharpens into focus. A generic blur, not a "dream"/"flashback" transition specifically - combine it with [showWithFade](/pixi-vn/index/namespaces/transitions/functions/showWithFade) for that recipe. See [BlurInOutProps](/pixi-vn/index/interfaces/BlurInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`BlurInOutProps`](/pixi-vn/index/interfaces/BlurInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: blurOut() (/pixi-vn/index/namespaces/transitions/functions/blurOut) \> **blurOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:1862](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1862) Remove a image from the canvas with a blur effect: the image blurs out of focus before being removed. See [blurIn](/pixi-vn/index/namespaces/transitions/functions/blurIn) and [BlurInOutProps](/pixi-vn/index/interfaces/BlurInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`BlurInOutProps`](/pixi-vn/index/interfaces/BlurInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: flashIn() (/pixi-vn/index/namespaces/transitions/functions/flashIn) \> **flashIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:2062](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2062) Show a image in the canvas with a flash effect, with a configurable solid-color overlay (not limited to a white flash). White reads as a camera/explosion-like flash, black as a blink/cut, and arbitrary colors work for damage/magic/memory/UI transitions. See [FlashInOutProps](/pixi-vn/index/interfaces/FlashInOutProps). If `alias` has no existing component, the new image appears immediately and the overlay fades in and back out over it. If `alias` already has a component, the *current* content fades up to `color` first, is swapped for the new content at the exact moment the screen is a solid `color` (so the content change itself is invisible), and the new content then fades back down from `color` to normal - see flashReplace. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`FlashInOutProps`](/pixi-vn/index/interfaces/FlashInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: flashOut() (/pixi-vn/index/namespaces/transitions/functions/flashOut) \> **flashOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:2134](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2134) Remove a image from the canvas with a flash effect: a configurable solid-color overlay fades up to `color` and back down to normal, and the image is removed the instant that finishes - the removal itself is a hard cut, never an additional fade/dissolve. See [flashIn](/pixi-vn/index/namespaces/transitions/functions/flashIn) and [FlashInOutProps](/pixi-vn/index/interfaces/FlashInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`FlashInOutProps`](/pixi-vn/index/interfaces/FlashInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: glitchIn() (/pixi-vn/index/namespaces/transitions/functions/glitchIn) \> **glitchIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:2610](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2610) Show a image in the canvas with a glitch effect: the image materializes out of jittery bursts of digital-corruption slices with red/blue fringing, which settle as it appears. See [GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps). When replacing an existing component, waits for its out animation before starting the entrance. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`GlitchInOutProps`](/pixi-vn/index/interfaces/GlitchInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: glitchOut() (/pixi-vn/index/namespaces/transitions/functions/glitchOut) \> **glitchOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:2638](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2638) Remove a image from the canvas with a glitch effect: digital-corruption bursts build up until the image is removed. See [glitchIn](/pixi-vn/index/namespaces/transitions/functions/glitchIn) and [GlitchInOutProps](/pixi-vn/index/interfaces/GlitchInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`GlitchInOutProps`](/pixi-vn/index/interfaces/GlitchInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: irisIn() (/pixi-vn/index/namespaces/transitions/functions/irisIn) \> **irisIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:1502](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1502) Show a image in the canvas with an iris effect: the image is progressively revealed by an expanding radial mask. Moving [IrisInOutProps.origin](/pixi-vn/index/interfaces/IrisInOutProps#origin) off-center makes the same primitive useful as a focus/reveal effect (e.g. centered on a character). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`IrisInOutProps`](/pixi-vn/index/interfaces/IrisInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: irisOut() (/pixi-vn/index/namespaces/transitions/functions/irisOut) \> **irisOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:1585](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1585) Remove a image from the canvas with an iris effect: the image is progressively concealed by a contracting radial mask. See [irisIn](/pixi-vn/index/namespaces/transitions/functions/irisIn) and [IrisInOutProps](/pixi-vn/index/interfaces/IrisInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`IrisInOutProps`](/pixi-vn/index/interfaces/IrisInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: moveIn() (/pixi-vn/index/namespaces/transitions/functions/moveIn) \> **moveIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:752](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L752) Show a image in the canvas with a move effect. The image is moved from outside the canvas to the x and y position of the image. If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`MoveInOutProps`](/pixi-vn/index/interfaces/MoveInOutProps) & `object` = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: moveOut() (/pixi-vn/index/namespaces/transitions/functions/moveOut) \> **moveOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:891](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L891) Remove a image from the canvas with a move effect. The image is moved from the x and y position of the image to outside the canvas. If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`MoveInOutProps`](/pixi-vn/index/interfaces/MoveInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: noiseDissolveIn() (/pixi-vn/index/namespaces/transitions/functions/noiseDissolveIn) \> **noiseDissolveIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:2973](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2973) Show a image in the canvas with a noise dissolve: the image appears in organic, noise-shaped blotches (or a cloudy fade with `edge: "soft"`) - the classic visual-novel image dissolve. See [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`NoiseDissolveInOutProps`](/pixi-vn/index/interfaces/NoiseDissolveInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: noiseDissolveOut() (/pixi-vn/index/namespaces/transitions/functions/noiseDissolveOut) \> **noiseDissolveOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:3000](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L3000) Remove a image from the canvas with a noise dissolve: the image disappears in noise-shaped blotches and is then removed. See [noiseDissolveIn](/pixi-vn/index/namespaces/transitions/functions/noiseDissolveIn) and [NoiseDissolveInOutProps](/pixi-vn/index/interfaces/NoiseDissolveInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`NoiseDissolveInOutProps`](/pixi-vn/index/interfaces/NoiseDissolveInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: pinchIn() (/pixi-vn/index/namespaces/transitions/functions/pinchIn) \> **pinchIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:3175](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L3175) Show a image in the canvas with a pinch effect: the image emerges from a single point, deforming outward as it settles (or puffs out of it with `mode: "bulge"`). See [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`PinchInOutProps`](/pixi-vn/index/interfaces/PinchInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: pinchOut() (/pixi-vn/index/namespaces/transitions/functions/pinchOut) \> **pinchOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:3212](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L3212) Remove a image from the canvas with a pinch effect: the image is sucked into a single point (or puffs out with `mode: "bulge"`) and removed. See [pinchIn](/pixi-vn/index/namespaces/transitions/functions/pinchIn) and [PinchInOutProps](/pixi-vn/index/interfaces/PinchInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`PinchInOutProps`](/pixi-vn/index/interfaces/PinchInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: pixelateIn() (/pixi-vn/index/namespaces/transitions/functions/pixelateIn) \> **pixelateIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:1916](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1916) Show a image in the canvas with a pixelate effect: the image appears pixelated and resolves into focus. Useful for retro effects, digital transitions, censorship/stylization, or scene changes - not only "glitch" scenes. See [PixelateInOutProps](/pixi-vn/index/interfaces/PixelateInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`PixelateInOutProps`](/pixi-vn/index/interfaces/PixelateInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: pixelateOut() (/pixi-vn/index/namespaces/transitions/functions/pixelateOut) \> **pixelateOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:1981](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1981) Remove a image from the canvas with a pixelate effect: the image pixelates before being removed. See [pixelateIn](/pixi-vn/index/namespaces/transitions/functions/pixelateIn) and [PixelateInOutProps](/pixi-vn/index/interfaces/PixelateInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`PixelateInOutProps`](/pixi-vn/index/interfaces/PixelateInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: pushIn() (/pixi-vn/index/namespaces/transitions/functions/pushIn) \> **pushIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:1205](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1205) Show a image in the canvas with a push effect. The new image is pushed in from the inside of the canvas and the old image is pushed out to the outside of the canvas. If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`PushInOutProps`](/pixi-vn/index/interfaces/PushInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: pushOut() (/pixi-vn/index/namespaces/transitions/functions/pushOut) \> **pushOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:1342](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1342) Remove a image from the canvas with a push effect. The image is pushed out to the outside of the canvas. If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`PushInOutProps`](/pixi-vn/index/interfaces/PushInOutProps) = `...` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: removeWithDissolve() (/pixi-vn/index/namespaces/transitions/functions/removeWithDissolve) \> **removeWithDissolve**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:604](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L604) Remove a image from the canvas with a disolve effect. Disolve effect is a effect that the image is removed with a fade out. This function is equivalent to [removeWithFade](/pixi-vn/index/namespaces/transitions/functions/removeWithFade). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`ShowWithDissolveTransitionProps`](/pixi-vn/index/interfaces/ShowWithDissolveTransitionProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: removeWithFade() (/pixi-vn/index/namespaces/transitions/functions/removeWithFade) \> **removeWithFade**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:733](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L733) Remove a image from the canvas with a fade effect. Fade effect is a effect that the image is removed with a fade out. This function is equivalent to [removeWithDissolve](/pixi-vn/index/namespaces/transitions/functions/removeWithDissolve). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`ShowWithFadeTransitionProps`](/pixi-vn/index/interfaces/ShowWithFadeTransitionProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: rippleIn() (/pixi-vn/index/namespaces/transitions/functions/rippleIn) \> **rippleIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:2884](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2884) Show a image in the canvas with a ripple effect: the image fades in through a ring of water-like distortion spreading outward from an origin point - for dreams, magic or memories. See [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`RippleInOutProps`](/pixi-vn/index/interfaces/RippleInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: rippleOut() (/pixi-vn/index/namespaces/transitions/functions/rippleOut) \> **rippleOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:2921](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2921) Remove a image from the canvas with a ripple effect: a ring of water-like distortion spreads over the image as it fades out and is removed. See [rippleIn](/pixi-vn/index/namespaces/transitions/functions/rippleIn) and [RippleInOutProps](/pixi-vn/index/interfaces/RippleInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`RippleInOutProps`](/pixi-vn/index/interfaces/RippleInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: showWithDissolve() (/pixi-vn/index/namespaces/transitions/functions/showWithDissolve) \> **showWithDissolve**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:529](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L529) Show a image in the canvas with a disolve effect. Disolve effect is a effect that the image is shown with a fade in. If exist a image with the same alias, then the image is replaced and the first image is removed after the effect is done. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`ShowWithDissolveTransitionProps`](/pixi-vn/index/interfaces/ShowWithDissolveTransitionProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: showWithFade() (/pixi-vn/index/namespaces/transitions/functions/showWithFade) \> **showWithFade**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:644](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L644) Show a image in the canvas with a fade effect. Fade effect is a effect that the image is shown with a fade in. If exist a image with the same alias, the existing image is removed with a fade transition, and after the effect is done, the new image is shown with a fade transition. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`ShowWithFadeTransitionProps`](/pixi-vn/index/interfaces/ShowWithFadeTransitionProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: splitIn() (/pixi-vn/index/namespaces/transitions/functions/splitIn) \> **splitIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:1651](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1651) Show a image in the canvas with a split effect: two mask panels slide together from the edges to progressively reveal the image, meeting at the split line once fully shown. With `direction: "outward"`, the reveal grows from the split line towards the edges instead. During replacement, the old component's conceal follows the new component's reveal. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`SplitInOutProps`](/pixi-vn/index/interfaces/SplitInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: splitOut() (/pixi-vn/index/namespaces/transitions/functions/splitOut) \> **splitOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:1734](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1734) Remove a image from the canvas with a split effect: two mask panels retract apart toward the edges to progressively conceal the image. With `direction: "outward"`, the visible region shrinks from the edges towards the split line. See [splitIn](/pixi-vn/index/namespaces/transitions/functions/splitIn) and [SplitInOutProps](/pixi-vn/index/interfaces/SplitInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`SplitInOutProps`](/pixi-vn/index/interfaces/SplitInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: tvIn() (/pixi-vn/index/namespaces/transitions/functions/tvIn) \> **tvIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:3087](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L3087) Show a image in the canvas like an old TV turning on: a bright dot stretches into a glowing horizontal line, which then opens up into the full image, with CRT scanlines. The scale animates around the component's own anchor/pivot, so a centered anchor looks best. See [TvInOutProps](/pixi-vn/index/interfaces/TvInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`TvInOutProps`](/pixi-vn/index/interfaces/TvInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: tvOut() (/pixi-vn/index/namespaces/transitions/functions/tvOut) \> **tvOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:3116](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L3116) Remove a image from the canvas like an old TV turning off: the image collapses into a glowing horizontal line, then into a dot, and is removed. The scale animates around the component's own anchor/pivot, so a centered anchor looks best. See [tvIn](/pixi-vn/index/namespaces/transitions/functions/tvIn) and [TvInOutProps](/pixi-vn/index/interfaces/TvInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`TvInOutProps`](/pixi-vn/index/interfaces/TvInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: twistIn() (/pixi-vn/index/namespaces/transitions/functions/twistIn) \> **twistIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:2701](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2701) Show a image in the canvas with a twist effect: the image unwinds out of a swirl, like coming through a vortex or portal. See [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`TwistInOutProps`](/pixi-vn/index/interfaces/TwistInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: twistOut() (/pixi-vn/index/namespaces/transitions/functions/twistOut) \> **twistOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:2736](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2736) Remove a image from the canvas with a twist effect: the image winds up into a swirl before being removed. See [twistIn](/pixi-vn/index/namespaces/transitions/functions/twistIn) and [TwistInOutProps](/pixi-vn/index/interfaces/TwistInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`TwistInOutProps`](/pixi-vn/index/interfaces/TwistInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: warpIn() (/pixi-vn/index/namespaces/transitions/functions/warpIn) \> **warpIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:2794](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2794) Show a image in the canvas with a warp effect: the image arrives out of radial zoom-blur streaks, like dropping out of hyperspace. See [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps). When replacing an existing component, waits for its out animation before starting the entrance. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`WarpInOutProps`](/pixi-vn/index/interfaces/WarpInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: warpOut() (/pixi-vn/index/namespaces/transitions/functions/warpOut) \> **warpOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:2822](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L2822) Remove a image from the canvas with a warp effect: the image streaks away in a radial zoom blur before being removed. See [warpIn](/pixi-vn/index/namespaces/transitions/functions/warpIn) and [WarpInOutProps](/pixi-vn/index/interfaces/WarpInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`WarpInOutProps`](/pixi-vn/index/interfaces/WarpInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: wipeIn() (/pixi-vn/index/namespaces/transitions/functions/wipeIn) \> **wipeIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:1362](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1362) Show a image in the canvas with a wipe effect: the image is progressively revealed by a moving boundary. The direction/angle and inversion are all configurable, so the same primitive can produce horizontal, vertical, or diagonal reveals - see [WipeInOutProps](/pixi-vn/index/interfaces/WipeInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`WipeInOutProps`](/pixi-vn/index/interfaces/WipeInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: wipeOut() (/pixi-vn/index/namespaces/transitions/functions/wipeOut) \> **wipeOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:1441](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1441) Remove a image from the canvas with a wipe effect: the image is progressively concealed by a moving boundary. See [wipeIn](/pixi-vn/index/namespaces/transitions/functions/wipeIn) and [WipeInOutProps](/pixi-vn/index/interfaces/WipeInOutProps). ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`WipeInOutProps`](/pixi-vn/index/interfaces/WipeInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # Function: zoomIn() (/pixi-vn/index/namespaces/transitions/functions/zoomIn) \> **zoomIn**(`alias`, `component?`, `props?`, `priority?`): `Promise`\<`string`\[] | `undefined`> Defined in: [src/canvas/functions/canvas-transition.ts:962](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L962) Show a image in the canvas with a zoom effect. The image is zoomed in from the center of the canvas. If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### component? [#component] `TComponent` The imageUrl, array of imageUrl or the canvas component. If imageUrl is a video, then the [VideoSprite](/pixi-vn/index/classes/VideoSprite) is added to the canvas. If imageUrl is an array, then the [ImageContainer](/pixi-vn/index/classes/ImageContainer) is added to the canvas. If you don't provide the component, then the alias is used as the url. ### props? [#props] [`ZoomInOutProps`](/pixi-vn/index/interfaces/ZoomInOutProps) & `object` = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `Promise`\<`string`\[] | `undefined`> A promise that contains the ids of the tickers that are used in the effect. The promise is resolved when the image is loaded. # Function: zoomOut() (/pixi-vn/index/namespaces/transitions/functions/zoomOut) \> **zoomOut**(`alias`, `props?`, `priority?`): `string`\[] | `undefined` Defined in: [src/canvas/functions/canvas-transition.ts:1123](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-transition.ts#L1123) Remove a image from the canvas with a zoom effect. The image is zoomed out to the center of the canvas. If there is a/more ticker(s) with the same alias, then the ticker(s) is/are paused. ## Parameters [#parameters] ### alias [#alias] `string` The unique alias of the image. You can use this alias to refer to this image ### props? [#props] [`ZoomInOutProps`](/pixi-vn/index/interfaces/ZoomInOutProps) = `{}` The properties of the effect ### priority? [#priority] `UPDATE_PRIORITY` The priority of the effect ## Returns [#returns] `string`\[] | `undefined` The ids of the tickers that are used in the effect. # transitions (/pixi-vn/index/namespaces/transitions) ## Functions [#functions] * [blurIn](/pixi-vn/index/namespaces/transitions/functions/blurIn) * [blurOut](/pixi-vn/index/namespaces/transitions/functions/blurOut) * [flashIn](/pixi-vn/index/namespaces/transitions/functions/flashIn) * [flashOut](/pixi-vn/index/namespaces/transitions/functions/flashOut) * [glitchIn](/pixi-vn/index/namespaces/transitions/functions/glitchIn) * [glitchOut](/pixi-vn/index/namespaces/transitions/functions/glitchOut) * [irisIn](/pixi-vn/index/namespaces/transitions/functions/irisIn) * [irisOut](/pixi-vn/index/namespaces/transitions/functions/irisOut) * [moveIn](/pixi-vn/index/namespaces/transitions/functions/moveIn) * [moveOut](/pixi-vn/index/namespaces/transitions/functions/moveOut) * [noiseDissolveIn](/pixi-vn/index/namespaces/transitions/functions/noiseDissolveIn) * [noiseDissolveOut](/pixi-vn/index/namespaces/transitions/functions/noiseDissolveOut) * [pinchIn](/pixi-vn/index/namespaces/transitions/functions/pinchIn) * [pinchOut](/pixi-vn/index/namespaces/transitions/functions/pinchOut) * [pixelateIn](/pixi-vn/index/namespaces/transitions/functions/pixelateIn) * [pixelateOut](/pixi-vn/index/namespaces/transitions/functions/pixelateOut) * [pushIn](/pixi-vn/index/namespaces/transitions/functions/pushIn) * [pushOut](/pixi-vn/index/namespaces/transitions/functions/pushOut) * [removeWithDissolve](/pixi-vn/index/namespaces/transitions/functions/removeWithDissolve) * [removeWithFade](/pixi-vn/index/namespaces/transitions/functions/removeWithFade) * [rippleIn](/pixi-vn/index/namespaces/transitions/functions/rippleIn) * [rippleOut](/pixi-vn/index/namespaces/transitions/functions/rippleOut) * [showWithDissolve](/pixi-vn/index/namespaces/transitions/functions/showWithDissolve) * [showWithFade](/pixi-vn/index/namespaces/transitions/functions/showWithFade) * [splitIn](/pixi-vn/index/namespaces/transitions/functions/splitIn) * [splitOut](/pixi-vn/index/namespaces/transitions/functions/splitOut) * [tvIn](/pixi-vn/index/namespaces/transitions/functions/tvIn) * [tvOut](/pixi-vn/index/namespaces/transitions/functions/tvOut) * [twistIn](/pixi-vn/index/namespaces/transitions/functions/twistIn) * [twistOut](/pixi-vn/index/namespaces/transitions/functions/twistOut) * [warpIn](/pixi-vn/index/namespaces/transitions/functions/warpIn) * [warpOut](/pixi-vn/index/namespaces/transitions/functions/warpOut) * [wipeIn](/pixi-vn/index/namespaces/transitions/functions/wipeIn) * [wipeOut](/pixi-vn/index/namespaces/transitions/functions/wipeOut) * [zoomIn](/pixi-vn/index/namespaces/transitions/functions/zoomIn) * [zoomOut](/pixi-vn/index/namespaces/transitions/functions/zoomOut) # Type Alias: AllFederatedEventMap (/pixi-vn/index/type-aliases/AllFederatedEventMap) \> **AllFederatedEventMap** = `FederatedEventMap` & `GlobalFederatedEventMap` Defined in: node_modules/pixi.js/lib/events/FederatedEventMap.d.ts:56 The types for the events that can be emitted by a Container ## Advanced [#advanced] # Type Alias: AnimatedSpriteEventType (/pixi-vn/index/type-aliases/AnimatedSpriteEventType) \> **AnimatedSpriteEventType** = `"complete"` | `"loop"` | `"frameChange"` Defined in: [src/canvas/components/AnimatedSprite.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/AnimatedSprite.ts#L42) The events emitted by an [AnimatedSprite](/pixi-vn/index/classes/AnimatedSprite), in addition to the usual PixiJS container events: * `"complete"`: the animation reached its last frame and stopped (only with `loop: false`). The listener receives `(component)`. * `"loop"`: the animation restarted from the first frame (only with `loop: true`). The listener receives `(component)`. * `"frameChange"`: the current frame changed. The listener receives `(currentFrame, component)`. Listeners added with `.on(...)` are saved if they are registered with `eventDecorator`. They are not called while the frames are loaded or a save is restored. # Type Alias: AssetAliasIdType (/pixi-vn/index/type-aliases/AssetAliasIdType) \> **AssetAliasIdType** = \[keyof [`PixivnAssetAliasIds`](/pixi-vn/index/interfaces/PixivnAssetAliasIds)] *extends* \[`never`] ? `string` : keyof [`PixivnAssetAliasIds`](/pixi-vn/index/interfaces/PixivnAssetAliasIds) Defined in: [src/canvas/types/AssetAliasIdType.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/AssetAliasIdType.ts#L37) The type used wherever an asset alias is expected (e.g. `Assets.load`, `getTexture`). * **Default** — resolves to `string` so that existing code that passes arbitrary strings continues to compile without any changes. * **Augmented** — when [PixivnAssetAliasIds](/pixi-vn/index/interfaces/PixivnAssetAliasIds) has been extended via `declare module "@drincs/pixi-vn/canvas"`, this type resolves to the union of the declared keys, giving you compile-time safety against typos and unknown asset aliases. # Type Alias: AssetSrc (/pixi-vn/index/type-aliases/AssetSrc) \> **AssetSrc** = `ArrayOr`\<`string`> | `ArrayOr`\<[`ResolvedSrc`](/pixi-vn/index/interfaces/ResolvedSrc)> & `object` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:164 A valid asset source specification. This can be a URL string, a [ResolvedSrc](/pixi-vn/index/interfaces/ResolvedSrc), or an array of either. The source defines where and how to load an asset. ## Example [#example] ```ts // Single URL string const src: AssetSrc = 'images/sprite.png'; // Multiple format options const src: AssetSrc = ['sprite.webp', 'sprite.png']; // With format pattern const src: AssetSrc = 'sprite.{webp,png}'; // Resolved source with options const src: AssetSrc = { src: 'sprite.png', format: 'png', parser: 'texture', data: { scaleMode: 'nearest', } }; // Array of resolved sources const src: AssetSrc = [ { src: 'sprite@2x.webp', format: 'webp', }, { src: 'sprite.png', format: 'png', } ]; ``` ## Remarks [#remarks] When specifying multiple formats: * The format that is selected will depend on AssetInitOptions.texturePreference * Resolution is parsed from file names * Custom data can be passed to loaders ## See [#see] * [ResolvedSrc](/pixi-vn/index/interfaces/ResolvedSrc) For resolved source format * Assets.add For adding assets with sources ## Standard [#standard] # Type Alias: BundleIdType (/pixi-vn/index/type-aliases/BundleIdType) \> **BundleIdType** = \[keyof [`PixivnBundleIds`](/pixi-vn/index/interfaces/PixivnBundleIds)] *extends* \[`never`] ? `string` : keyof [`PixivnBundleIds`](/pixi-vn/index/interfaces/PixivnBundleIds) Defined in: [src/canvas/types/BundleIdType.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/BundleIdType.ts#L37) The type used wherever an asset bundle name is expected (e.g. `Assets.loadBundle`). * **Default** — resolves to `string` so that existing code that passes arbitrary strings continues to compile without any changes. * **Augmented** — when [PixivnBundleIds](/pixi-vn/index/interfaces/PixivnBundleIds) has been extended via `declare module "@drincs/pixi-vn/canvas"`, this type resolves to the union of the declared keys, giving you compile-time safety against typos and unknown bundle names. # Type Alias: CharacterIdType (/pixi-vn/index/type-aliases/CharacterIdType) \> **CharacterIdType** = \[keyof [`PixivnCharacterIds`](/pixi-vn/index/interfaces/PixivnCharacterIds)] *extends* \[`never`] ? `string` : keyof [`PixivnCharacterIds`](/pixi-vn/index/interfaces/PixivnCharacterIds) Defined in: [src/characters/types/CharacterIdType.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/characters/types/CharacterIdType.ts#L38) The type used wherever a character ID is expected (e.g. `RegisteredCharacters.get`, `RegisteredCharacters.has`, character constructors, …). * **Default** — resolves to `string` so that existing code that passes arbitrary strings continues to compile without any changes. * **Augmented** — when [PixivnCharacterIds](/pixi-vn/index/interfaces/PixivnCharacterIds) has been extended via `declare module "@drincs/pixi-vn/characters"`, this type resolves to the union of the declared keys, giving you compile-time safety against typos and unknown character IDs. # Type Alias: ColorType (/pixi-vn/index/type-aliases/ColorType) \> **ColorType** = `string` | `number` | `number`\[] | [`RgbColorType`](/pixi-vn/index/interfaces/RgbColorType) | [`RgbaColorType`](/pixi-vn/index/interfaces/RgbaColorType) | [`HslColorType`](/pixi-vn/index/interfaces/HslColorType) | [`HslaColorType`](/pixi-vn/index/interfaces/HslaColorType) | [`HsvColorType`](/pixi-vn/index/interfaces/HsvColorType) | [`HsvaColorType`](/pixi-vn/index/interfaces/HsvaColorType) Defined in: [src/canvas/types/ColorType.ts:39](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ColorType.ts#L39) A color, accepted wherever Pixi'VN takes one (e.g. [FlashInOutProps.color](/pixi-vn/index/interfaces/FlashInOutProps#color)): a hex number (`0xff0000`), a CSS-style string (`"#f00"`, `"red"`, `"rgb(255, 0, 0)"`, ...), an `[r, g, b]`/ `[r, g, b, a]` array, or one of the plain RGB(A)/HSL(A)/HSV(A) object shapes above. This is a JSON-serializable subset of `pixi.js`'s own `ColorSource` (which every value here is still assignable to, so it can be passed straight into `Graphics.fill()`/`tint`/etc. unchanged) - deliberately excluding `Float32Array`/`Uint8Array`/`Uint8ClampedArray` (which survive a `JSON.stringify`/`JSON.parse` round-trip but lose their typed-array-ness, coming back as a plain `{0: r, 1: g, ...}` object) and PixiJS's own `Color` class instance (not serializable at all). Both would break `createExportableElement()` (ticker args, saved game state, ...) the same way a live `Filter`/callback reference did elsewhere in the codebase. # Type Alias: CommonTickerProps (/pixi-vn/index/type-aliases/CommonTickerProps) \> **CommonTickerProps** = `object` Defined in: [src/tickers/types/CommonTickerProps.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L1) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string`\[] | `string` Defined in: [src/tickers/types/CommonTickerProps.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L6) An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: [src/tickers/types/CommonTickerProps.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L27) A boolean indicating whether the animation must complete before the next `step` of the game. If `true`, the game will force the animation to finish before proceeding. When true, calling `narration.continue()` forces the current content to complete before advancing to the next narrative step. #### Default [#default-1] ```ts false ``` *** ### startOnlyIfHaveTexture? [#startonlyifhavetexture] \> `optional` **startOnlyIfHaveTexture?**: `boolean` Defined in: [src/tickers/types/CommonTickerProps.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L11) If true, the effect only starts if the canvas element have a texture #### Default [#default-2] ```ts false ``` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string`\[] | `string` Defined in: [src/tickers/types/CommonTickerProps.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L16) If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-3] ```ts [] ``` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string`\[] | `string` Defined in: [src/tickers/types/CommonTickerProps.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/types/CommonTickerProps.ts#L21) A string containing the ticker ID to resume after the animation completes. #### Default [#default-4] ```ts [] ``` # Type Alias: ContainerChild (/pixi-vn/index/type-aliases/ContainerChild) \> **ContainerChild** = `PixiContainer` & [`CanvasBaseItem`](/pixi-vn/index/classes/CanvasBaseItem)\<`any`> Defined in: [src/canvas/types/ContainerChild.ts:4](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/types/ContainerChild.ts#L4) # Type Alias: ErrorCodeType (/pixi-vn/index/type-aliases/ErrorCodeType) \> **ErrorCodeType** = `"obsolete_save"` | `"unknown_element"` | `"unregistered_element"` | `"unregistered_asset"` | `"not_json_serializable"` | `"not_implemented"` | `"invalid_usage"` | `"unhandled_error"` Defined in: [src/core/ErrorCodeType.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/ErrorCodeType.ts#L1) # Type Alias: FilterTransitionConfig (/pixi-vn/index/type-aliases/FilterTransitionConfig) \> **FilterTransitionConfig** = `WipeFilterConfig` | `IrisFilterConfig` | `SplitFilterConfig` Defined in: [src/canvas/functions/canvas-filter-transition-utility.ts:47](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/canvas-filter-transition-utility.ts#L47) # Type Alias: GameStateHookTiming (/pixi-vn/index/type-aliases/GameStateHookTiming) \> **GameStateHookTiming** = `"before"` | `"after"` Defined in: [src/interfaces/GameStateHandlers.ts:22](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStateHandlers.ts#L22) When a [OnRestoreGameStateHandler](/pixi-vn/index/type-aliases/OnRestoreGameStateHandler) runs relative to the built-in restoration: * `"before"`: before any built-in module (history, narration, storage, canvas, sound) is restored. * `"after"`: after every built-in module has been restored and navigation has completed. # Type Alias: GameWorkerHandler (/pixi-vn/index/type-aliases/GameWorkerHandler) \> **GameWorkerHandler** = (`payload`) => `unknown` | `Promise`\<`unknown`> Defined in: [src/worker/GameWorkerHandlerRegistry.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/GameWorkerHandlerRegistry.ts#L1) ## Parameters [#parameters] ### payload [#payload] `unknown` ## Returns [#returns] `unknown` | `Promise`\<`unknown`> # Type Alias: GameWorkerRequest (/pixi-vn/index/type-aliases/GameWorkerRequest) \> **GameWorkerRequest** = \{ `diff`: `Difference`\[]; `id`: `number`; `state`: `object`; `type`: `"restore-diff"`; } | \{ `after`: `object`; `before`: `object`; `id`: `number`; `type`: `"diff"`; } | \{ `id`: `number`; `type`: `"clone"`; `value`: `object`; } | \{ `id`: `number`; `kind`: `string`; `payload`: `unknown`; `type`: `"custom"`; } Defined in: [src/worker/interfaces/GameWorkerMessage.ts:13](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/interfaces/GameWorkerMessage.ts#L13) Message protocol between the main thread and an optional GameWorker-registered Worker. Kept intentionally small: each request names one unit of work Pixi'VN (or a third-party library building on it, via `"custom"` - see `registerGameWorkerHandler`) knows how to hand off, and the worker replies with the same `id` so the caller can match the response. This protocol (and everything it carries) only ever deals with plain, structured-clone-safe data - never PixiJS/canvas/audio objects, which can't leave the main thread. ## Union Members [#union-members] ### Type Literal [#type-literal] \{ `diff`: `Difference`\[]; `id`: `number`; `state`: `object`; `type`: `"restore-diff"`; } #### diff [#diff] \> **diff**: `Difference`\[] #### id [#id] \> **id**: `number` #### state [#state] \> **state**: `object` The base state to apply `diff` to (not mutated). #### type [#type] \> **type**: `"restore-diff"` *** ### Type Literal [#type-literal-1] \{ `after`: `object`; `before`: `object`; `id`: `number`; `type`: `"diff"`; } #### after [#after] \> **after**: `object` #### before [#before] \> **before**: `object` The two states to compare (neither is mutated). #### id [#id-1] \> **id**: `number` #### type [#type-1] \> **type**: `"diff"` *** ### Type Literal [#type-literal-2] \{ `id`: `number`; `type`: `"clone"`; `value`: `object`; } #### id [#id-2] \> **id**: `number` #### type [#type-2] \> **type**: `"clone"` #### value [#value] \> **value**: `object` The value to deep-clone. *** ### Type Literal [#type-literal-3] \{ `id`: `number`; `kind`: `string`; `payload`: `unknown`; `type`: `"custom"`; } #### id [#id-3] \> **id**: `number` #### kind [#kind] \> **kind**: `string` Identifies which registered handler (see `registerGameWorkerHandler`) should run. #### payload [#payload] \> **payload**: `unknown` #### type [#type-3] \> **type**: `"custom"` # Type Alias: GameWorkerResponse (/pixi-vn/index/type-aliases/GameWorkerResponse) \> **GameWorkerResponse** = \{ `id`: `number`; `result`: `object`; `type`: `"restore-diff-result"`; } | \{ `id`: `number`; `result`: `Difference`\[]; `type`: `"diff-result"`; } | \{ `id`: `number`; `result`: `object`; `type`: `"clone-result"`; } | \{ `id`: `number`; `result`: `unknown`; `type`: `"custom-result"`; } | \{ `error`: `string`; `id`: `number`; `type`: `"error"`; } Defined in: [src/worker/interfaces/GameWorkerMessage.ts:42](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/worker/interfaces/GameWorkerMessage.ts#L42) # Type Alias: HistoryChoiceMenuOption (/pixi-vn/index/type-aliases/HistoryChoiceMenuOption) \> **HistoryChoiceMenuOption** = `object` Defined in: [src/narration/types/HistoryChoiceMenuOption.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/HistoryChoiceMenuOption.ts#L7) HistoryChoiceMenuOption is a type that contains the history information of a choice menu option. ## Properties [#properties] ### hidden [#hidden] \> **hidden**: `boolean` Defined in: [src/narration/types/HistoryChoiceMenuOption.ts:23](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/HistoryChoiceMenuOption.ts#L23) The choice is hidden *** ### isResponse [#isresponse] \> **isResponse**: `boolean` Defined in: [src/narration/types/HistoryChoiceMenuOption.ts:19](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/HistoryChoiceMenuOption.ts#L19) This choice is a response *** ### text [#text] \> **text**: `string` | `string`\[] Defined in: [src/narration/types/HistoryChoiceMenuOption.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/HistoryChoiceMenuOption.ts#L11) Text to be displayed in the menu *** ### type [#type] \> **type**: `CloseType` | [`LabelRunModeType`](/pixi-vn/index/type-aliases/LabelRunModeType) Defined in: [src/narration/types/HistoryChoiceMenuOption.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/HistoryChoiceMenuOption.ts#L15) Method used to open the label, or close the menu. # Type Alias: HistoryGoBackModeType (/pixi-vn/index/type-aliases/HistoryGoBackModeType) \> **HistoryGoBackModeType** = `"step"` | `"paragraph"` Defined in: [src/history/HistoryManagerStatic.ts:14](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/HistoryManagerStatic.ts#L14) How often a go-back-able checkpoint is recorded: * `"step"` (default): every single narration step, matching visual-novel-style games where the player may want to undo one line/sprite change at a time. * `"paragraph"`: only when a new paragraph starts (the number of opened labels changes), a choice is proposed, or an input is requested - matching book-style narrations where undoing mid-paragraph doesn't make sense to the player. # Type Alias: InputInfo (/pixi-vn/index/type-aliases/InputInfo) \> **InputInfo** = `object` Defined in: [src/narration/types/InputInfo.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/InputInfo.ts#L1) ## Properties [#properties] ### isRequired? [#isrequired] \> `optional` **isRequired?**: `boolean` Defined in: [src/narration/types/InputInfo.ts:2](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/InputInfo.ts#L2) *** ### type? [#type] \> `optional` **type?**: `string` Defined in: [src/narration/types/InputInfo.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/InputInfo.ts#L3) # Type Alias: LabelIdType (/pixi-vn/index/type-aliases/LabelIdType) \> **LabelIdType** = \[keyof [`PixivnLabelIds`](/pixi-vn/index/interfaces/PixivnLabelIds)] *extends* \[`never`] ? `string` : keyof [`PixivnLabelIds`](/pixi-vn/index/interfaces/PixivnLabelIds) Defined in: [src/narration/types/LabelIdType.ts:38](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/LabelIdType.ts#L38) The type used wherever a label ID is expected (e.g. `narration.call`, `narration.jump`, `newLabel`, choice options, …). * **Default** — resolves to `string` so that existing code that passes arbitrary strings continues to compile without any changes. * **Augmented** — when [PixivnLabelIds](/pixi-vn/index/interfaces/PixivnLabelIds) has been extended via `declare module "@drincs/pixi-vn/narration"`, this type resolves to the union of the declared keys, giving you compile-time safety against typos and unknown label IDs. # Type Alias: LabelRunModeType (/pixi-vn/index/type-aliases/LabelRunModeType) \> **LabelRunModeType** = `"call"` | `"jump"` Defined in: [src/narration/types/LabelRunModeType.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/LabelRunModeType.ts#L1) # Type Alias: LabelSteps (/pixi-vn/index/type-aliases/LabelSteps) \> **LabelSteps**\<`T`> = \[[`StepLabelType`](/pixi-vn/index/type-aliases/StepLabelType)\<`T`>, `...StepLabelType>[]`] Defined in: [src/narration/types/LabelSteps.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/LabelSteps.ts#L3) ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` # Type Alias: Layer (/pixi-vn/index/type-aliases/Layer) \> **Layer** = `PixiContainer`\<`ContainerChild`> Defined in: [src/canvas/components/Layer.ts:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/Layer.ts#L3) # Type Alias: ListenerEventArgs (/pixi-vn/index/type-aliases/ListenerEventArgs) \> **ListenerEventArgs**\<`T`, `Component`> = \[`...EventEmitter.ArgumentMap[Extract]`, `Component`] Defined in: [src/canvas/components/ListenerExtension.ts:24](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L24) The arguments received by a `.on(event, fn)` listener: the arguments of the event, followed by the component that emitted it. ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* [`ListenerEventName`](/pixi-vn/index/type-aliases/ListenerEventName) ### Component [#component] `Component` # Type Alias: ListenerEventName (/pixi-vn/index/type-aliases/ListenerEventName) \> **ListenerEventName** = keyof `ContainerEvents`\<`ContainerChild`> | keyof `CustomEvents` Defined in: [src/canvas/components/ListenerExtension.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/ListenerExtension.ts#L18) An event name accepted by `.on(...)`: a PixiJS container event (e.g. `"pointerdown"`) or any custom string/symbol event. # Type Alias: LoadParserName (deprecated) (/pixi-vn/index/type-aliases/LoadParserName) \> **LoadParserName** = `"loadJson"` | `"loadSvg"` | `"loadTextures"` | `"loadTxt"` | `"loadVideo"` | `"loadWebFont"` | `string` & `object` Defined in: node_modules/pixi.js/lib/assets/types.d.ts:12 ## Deprecated [#deprecated] Use AssetParser instead. ## Advanced [#advanced] # Type Alias: MotionAnimationOptions (/pixi-vn/index/type-aliases/MotionAnimationOptions) \> **MotionAnimationOptions** = `ValueAnimationWithDynamicDelay` & `ReduceMotionOption` | `ValueAnimationWithDynamicDelay` & `ReduceMotionOption` & `StyleTransitions` & `SVGPathTransitions` & `SVGForcedAttrTransitions` & `SVGTransitions` & `VariableTransitions` & `object` Defined in: node_modules/motion-dom/dist/index.d.ts:2355 # Type Alias: OnErrorHandler (/pixi-vn/index/type-aliases/OnErrorHandler) \> **OnErrorHandler** = (`error`, `props`) => `void` | `Promise`\<`void`> Defined in: [src/core/OnErrorHandler.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/core/OnErrorHandler.ts#L7) Type for on-error handlers. Handlers accept the error object and the step props; they may be synchronous or asynchronous. ## Parameters [#parameters] ### error [#error] `unknown` ### props [#props] `Partial`\<`StepLabelProps`> ## Returns [#returns] `void` | `Promise`\<`void`> # Type Alias: OnExportGameStateHandler (/pixi-vn/index/type-aliases/OnExportGameStateHandler) \> **OnExportGameStateHandler** = (`state`) => `void` | `Promise`\<`void`> Defined in: [src/interfaces/GameStateHandlers.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStateHandlers.ts#L8) Handler registered with `Game.addOnExportGameState`. It receives the complete save-state object built by `Game.exportGameState` and can mutate it (e.g. add custom properties declared through [GameState](/pixi-vn/index/interfaces/GameState) module augmentation) before it is returned to the caller. ## Parameters [#parameters] ### state [#state] [`GameState`](/pixi-vn/index/interfaces/GameState) ## Returns [#returns] `void` | `Promise`\<`void`> # Type Alias: OnRestoreGameStateHandler (/pixi-vn/index/type-aliases/OnRestoreGameStateHandler) \> **OnRestoreGameStateHandler** = (`state`) => `void` | `Promise`\<`void`> Defined in: [src/interfaces/GameStateHandlers.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/interfaces/GameStateHandlers.ts#L15) Handler registered with `Game.addOnRestoreGameState`. It receives the exact save-state object passed to `Game.restoreGameState`, so an external library can read back the data it added during export. ## Parameters [#parameters] ### state [#state] [`GameState`](/pixi-vn/index/interfaces/GameState) ## Returns [#returns] `void` | `Promise`\<`void`> # Type Alias: StepLabelPropsType (/pixi-vn/index/type-aliases/StepLabelPropsType) \> **StepLabelPropsType**\<`T`> = `StepLabelProps` & `T` Defined in: [src/narration/types/StepLabelType.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/StepLabelType.ts#L16) ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` = \{ } # Type Alias: StepLabelResultType (/pixi-vn/index/type-aliases/StepLabelResultType) \> **StepLabelResultType** = `StepLabelResult` | `void` | `string` Defined in: [src/narration/types/StepLabelType.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/StepLabelType.ts#L15) Result of a [StepLabelType](/pixi-vn/index/type-aliases/StepLabelType) execution. * `StepLabelResult`: a structured result consumed by the narration engine. * `void`: the step completed without returning an explicit result. * `string`: a simple token or message interpreted by higher-level logic. Prefer returning a well-typed [StepLabelResult](/pixi-vn/index/interfaces/StepLabelResult) for anything that needs to be consumed programmatically. Use plain strings only where a lightweight, convention-based signal is sufficient and clearly documented by the surrounding game logic. # Type Alias: StepLabelType (/pixi-vn/index/type-aliases/StepLabelType) \> **StepLabelType**\<`T`> = (`props`, `info`) => [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> Defined in: [src/narration/types/StepLabelType.ts:21](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/types/StepLabelType.ts#L21) StepLabel is a function that will be executed as the game continues. ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` = \{ } ## Parameters [#parameters] ### props [#props] [`StepLabelPropsType`](/pixi-vn/index/type-aliases/StepLabelPropsType)\<`T`> ### info [#info] #### labelId [#labelid] `string` The id of the label. ## Returns [#returns] [`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType) | `Promise`\<[`StepLabelResultType`](/pixi-vn/index/type-aliases/StepLabelResultType)> # Type Alias: StorageElementType (/pixi-vn/index/type-aliases/StorageElementType) \> **StorageElementType** = `StorageElementInternalType` | `Record`\<`string` | `number` | `symbol`, `StorageElementInternalType`> | \{\[`key`: `string` | `number` | `symbol`]: `StorageElementType`; } | [`StorageObjectType`](/pixi-vn/index/type-aliases/StorageObjectType)\[] | (`StorageElementPrimaryType` | `StorageElementInternalType` | `StorageElementType`)\[] | \{\[`key`: `string` | `number` | `symbol`]: `NonFunctionStorage`; } Defined in: [src/storage/types/StorageElementType.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/types/StorageElementType.ts#L25) StorageElementType are all the types that can be stored in the storage # Type Alias: StorageObjectType (/pixi-vn/index/type-aliases/StorageObjectType) \> **StorageObjectType** = `Record`\<`string` | `number` | `symbol`, [`StorageElementType`](/pixi-vn/index/type-aliases/StorageElementType)> Defined in: [src/storage/types/StorageElementType.ts:35](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/types/StorageElementType.ts#L35) StorageObjectType are all the types that can be stored in the storage # Type Alias: StoredChoiceInterface (/pixi-vn/index/type-aliases/StoredChoiceInterface) \> **StoredChoiceInterface** = [`ChoiceOptionInterface`](/pixi-vn/index/interfaces/ChoiceOptionInterface) | [`CloseChoiceOptionInterface`](/pixi-vn/index/interfaces/CloseChoiceOptionInterface) Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:30](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L30) # Type Alias: StoredIndexedChoiceInterface (/pixi-vn/index/type-aliases/StoredIndexedChoiceInterface) \> **StoredIndexedChoiceInterface** = [`StoredChoiceInterface`](/pixi-vn/index/type-aliases/StoredChoiceInterface) & `object` Defined in: [src/narration/interfaces/StoredChoiceInterface.ts:31](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/interfaces/StoredChoiceInterface.ts#L31) ## Type Declaration [#type-declaration] ### choiceIndex [#choiceindex] \> **choiceIndex**: `number` Is the index of the choice in the menu. It is used to identify the choice when it is selected. # Type Alias: TextureSourceLike (/pixi-vn/index/type-aliases/TextureSourceLike) \> **TextureSourceLike** = `TextureSource` | `TextureResourceOrOptions` | `string` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.d.ts:90 A texture source can be a string, an image, a video, a canvas, or a texture resource. ## Advanced [#advanced] ## See [#see] * TextureSource * TextureResourceOrOptions * Texture.from # Type Alias: TickerProgrationType (/pixi-vn/index/type-aliases/TickerProgrationType) \> **TickerProgrationType** = [`TickerProgrationLinear`](/pixi-vn/index/interfaces/TickerProgrationLinear) | [`TickerProgrationExponential`](/pixi-vn/index/interfaces/TickerProgrationExponential) Defined in: [src/tickers/interfaces/TickerProgrationType.ts:1](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/interfaces/TickerProgrationType.ts#L1) # Type Alias: VideoSpriteEventType (/pixi-vn/index/type-aliases/VideoSpriteEventType) \> **VideoSpriteEventType** = `"ended"` Defined in: [src/canvas/components/VideoSprite.ts:27](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/components/VideoSprite.ts#L27) The savable events of a [VideoSprite](/pixi-vn/index/classes/VideoSprite), in addition to the PixiJS container events: * `"ended"`: the video reached its end (the `ended` event of the `HTMLVideoElement`); the listener receives `(component)`. Looping videos never emit it. They are not emitted while the video is loaded or a save is restored. # Variable: Assets (/pixi-vn/index/variables/Assets) \> **Assets**: `AssetsClass` Defined in: [src/canvas/index.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/index.ts#L8) # Variable: CANVAS_APP_GAME_LAYER_ALIAS (/pixi-vn/index/variables/CANVAS_APP_GAME_LAYER_ALIAS) \> `const` **CANVAS_APP_GAME_LAYER_ALIAS**: `"__game_layer__"` = `"__game_layer__"` Defined in: [src/constants.ts:6](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/constants.ts#L6) Is a special alias to indicate the game layer. # Variable: Color (/pixi-vn/index/variables/Color) \> **Color**: *typeof* `Color` Defined in: [src/canvas/index.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/index.ts#L8) # Variable: DEFAULT_ANIMATED_SPRITE_FRAME_TIME (/pixi-vn/index/variables/DEFAULT_ANIMATED_SPRITE_FRAME_TIME) \> `const` **DEFAULT_ANIMATED_SPRITE_FRAME_TIME**: `100` = `100` Defined in: [src/canvas/functions/spritesheet-utility.ts:15](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/functions/spritesheet-utility.ts#L15) The duration (in milliseconds) of a frame that has no duration, when frame durations are used. It is the default frame duration of Aseprite. # Variable: PIXIVN_VERSION (/pixi-vn/index/variables/PIXIVN_VERSION) \> **PIXIVN_VERSION**: `string` = `"1.9.9"` Defined in: [package.json:3](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/package.json#L3) # Variable: Rectangle (/pixi-vn/index/variables/Rectangle) \> **Rectangle**: *typeof* `Rectangle` Defined in: [src/canvas/index.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/index.ts#L8) # Variable: SYSTEM_RESERVED_STORAGE_KEYS (/pixi-vn/index/variables/SYSTEM_RESERVED_STORAGE_KEYS) \> `const` **SYSTEM_RESERVED_STORAGE_KEYS**: `object` Defined in: [src/constants.ts:25](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/constants.ts#L25) ## Type Declaration [#type-declaration] ### ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY [#add_next_dialog_text_into_the_current_dialog_flag_key] \> **ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY**: `string` = `"___glue___"` This variable is used to add the next dialog text into the current dialog memory. This value was added to introduce Ink Glue functionality [https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#glue](https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#glue) ### ALL_CHOICES_MADE_KEY [#all_choices_made_key] \> **ALL_CHOICES_MADE_KEY**: `string` = `"choices:made"` The key of a list of all choices that have been made during the progression of the steps. ### CHARACTER_CATEGORY_KEY [#character_category_key] \> **CHARACTER_CATEGORY_KEY**: `string` = `"character"` The key of the characters memory ### CURRENT_DIALOGUE_MEMORY_KEY [#current_dialogue_memory_key] \> **CURRENT_DIALOGUE_MEMORY_KEY**: `string` = `"dialogue"` The key of the current dialogue memory ### CURRENT_INPUT_INFO_MEMORY_KEY [#current_input_info_memory_key] \> **CURRENT_INPUT_INFO_MEMORY_KEY**: `string` = `"input:info"` The key of the current input info ### CURRENT_INPUT_VALUE_MEMORY_KEY [#current_input_value_memory_key] \> **CURRENT_INPUT_VALUE_MEMORY_KEY**: `string` = `"input:value"` The key of the input memory. This value can be read by pixi-vn json importer ### CURRENT_MENU_OPTIONS_MEMORY_KEY [#current_menu_options_memory_key] \> **CURRENT_MENU_OPTIONS_MEMORY_KEY**: `string` = `"choice:options"` The key of the current menu options memory ### CURRENT_STEP_TIMES_COUNTER_KEY [#current_step_times_counter_key] \> **CURRENT_STEP_TIMES_COUNTER_KEY**: `string` = `"label:history"` The key of the current step times counter. This value was added to introduce Ink Sequences, cycles and other alternatives [https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#sequences-cycles-and-other-alternatives](https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#sequences-cycles-and-other-alternatives) ### LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY [#last_dialogue_added_in_step_memory_key] \> **LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY**: `string` = `"dialogue:step_counter"` The key of step counter of the current dialogue memory ### LAST_INPUT_ADDED_IN_STEP_MEMORY_KEY [#last_input_added_in_step_memory_key] \> **LAST_INPUT_ADDED_IN_STEP_MEMORY_KEY**: `string` = `"input:step_counter"` The key of the last input added in the step memory ### LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY [#last_menu_options_added_in_step_memory_key] \> **LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY**: `string` = `"choice:step_counter"` The key of the last menu options added in the step memory ### LAST_STEP_GLUED [#last_step_glued] \> **LAST_STEP_GLUED**: `string` = `"glue:last_step"` The key of the last dialogue step glued in the step memory ### OPENED_LABELS_COUNTER_KEY [#opened_labels_counter_key] \> **OPENED_LABELS_COUNTER_KEY**: `string` = `"label:opened"` The key of a list of all labels that have been opened during the progression of the steps. # Variable: TextStyle (/pixi-vn/index/variables/TextStyle) \> **TextStyle**: *typeof* `TextStyle` Defined in: [src/canvas/index.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/index.ts#L8) # Variable: Texture (/pixi-vn/index/variables/Texture) \> **Texture**: *typeof* `Texture` Defined in: [src/canvas/index.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/index.ts#L8) # Variable: UPDATE_PRIORITY (/pixi-vn/index/variables/UPDATE_PRIORITY) \> **UPDATE_PRIORITY**: *typeof* `UPDATE_PRIORITY` Defined in: [src/canvas/index.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/index.ts#L8) # Variable: canvas (/pixi-vn/index/variables/canvas) \> `const` **canvas**: [`CanvasManagerInterface`](/pixi-vn/index/interfaces/CanvasManagerInterface) Defined in: [src/canvas/index.ts:169](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/canvas/index.ts#L169) The global canvas manager instance. It handles the PixiJS application, the canvas elements (images, videos, text, containers), tickers, transitions, and the canvas state used for save/restore. # Variable: default (/pixi-vn/index/variables/default) \> **default**: `object` Defined in: [src/index.ts:683](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/index.ts#L683) ## Type Declaration [#type-declaration] ### canvas [#canvas] \> **canvas**: [`CanvasManagerInterface`](/pixi-vn/index/interfaces/CanvasManagerInterface) = `canvasUtils.canvas` ### CANVAS_APP_GAME_LAYER_ALIAS [#canvas_app_game_layer_alias] \> **CANVAS_APP_GAME_LAYER_ALIAS**: `string` Is a special alias to indicate the game layer. ### canvasUtils [#canvasutils] \> **canvasUtils**: `__module` ### characterUtils [#characterutils] \> **characterUtils**: `__module` ### Game [#game] \> **Game**: *typeof* [`Game`](/pixi-vn/index/namespaces/Game) ### GameUnifier [#gameunifier] \> **GameUnifier**: *typeof* [`GameUnifier`](/pixi-vn/index/classes/GameUnifier) ### history [#history] \> **history**: [`HistoryManagerInterface`](/pixi-vn/index/interfaces/HistoryManagerInterface) = `historyUtils.stepHistory` ### narration [#narration] \> **narration**: [`NarrationManagerInterface`](/pixi-vn/index/interfaces/NarrationManagerInterface) = `narrationUtils.narration` ### narrationUtils [#narrationutils] \> **narrationUtils**: `__module` ### PIXIVN_VERSION [#pixivn_version] \> **PIXIVN_VERSION**: `string` ### sound [#sound] \> **sound**: [`SoundManagerInterface`](/pixi-vn/index/interfaces/SoundManagerInterface) = `soundUtils.sound` ### soundUtils [#soundutils] \> **soundUtils**: `__module` ### storage [#storage] \> **storage**: [`StorageManagerInterface`](/pixi-vn/index/interfaces/StorageManagerInterface) = `storageUtils.storage` ### tickers [#tickers] \> **tickers**: [`CanvasTickersInterface`](/pixi-vn/index/interfaces/CanvasTickersInterface) Namespace for operations on tickers - the frame-by-frame animation primitive every Pixi'VN animation (`canvas.animate`, transitions, custom `TickerBase` subclasses) is built on. ### createExportableElement() [#createexportableelement] \> **createExportableElement**\<`T`>(`element`): `T` This function is used to create a deep copy of the element #### Type Parameters [#type-parameters] ##### T [#t] `T` #### Parameters [#parameters] ##### element [#element] `T` The element to be copied #### Returns [#returns] `T` The copied element #### Throws [#throws] when the element is not JSON serializable (e.g. contains functions or class instances). # Variable: narration (/pixi-vn/index/variables/narration) \> `const` **narration**: [`NarrationManagerInterface`](/pixi-vn/index/interfaces/NarrationManagerInterface) Defined in: [src/narration/index.ts:46](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/narration/index.ts#L46) The global narration manager instance. It runs the story flow: labels, steps, dialogues, choices, and the current narration state used for save/restore. # Variable: sound (/pixi-vn/index/variables/sound) \> `const` **sound**: [`SoundManagerInterface`](/pixi-vn/index/interfaces/SoundManagerInterface) Defined in: [src/sound/index.ts:28](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/sound/index.ts#L28) The singleton sound manager instance. Use this to play and manage sounds in your game. # Variable: stepHistory (/pixi-vn/index/variables/stepHistory) \> `const` **stepHistory**: [`HistoryManagerInterface`](/pixi-vn/index/interfaces/HistoryManagerInterface) Defined in: [src/history/index.ts:16](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/history/index.ts#L16) The global history manager instance. It records the narration steps (dialogues, choices, labels) so the player can go back to previous steps and review what happened. # Variable: storage (/pixi-vn/index/variables/storage) \> `const` **storage**: [`StorageManagerInterface`](/pixi-vn/index/interfaces/StorageManagerInterface) Defined in: [src/storage/index.ts:18](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/storage/index.ts#L18) The global storage manager instance. It keeps the game variables and flags (set/get values, temporary variables) that are saved and restored with the game state. # Variable: tickers (/pixi-vn/index/variables/tickers) \> `const` **tickers**: [`CanvasTickersInterface`](/pixi-vn/index/interfaces/CanvasTickersInterface) Defined in: [src/tickers/index.ts:570](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/tickers/index.ts#L570) Namespace for operations on tickers - the frame-by-frame animation primitive every Pixi'VN animation (`canvas.animate`, transitions, custom `TickerBase` subclasses) is built on. # @drincs/pixi-vn (/pixi-vn/modules) ## Modules [#modules] * [index](/pixi-vn/index) * [vite](/pixi-vn/vite) * [vite-listener](/pixi-vn/vite-listener) # Function: isViteDevelopmentMode() (/pixi-vn/vite-listener/functions/isViteDevelopmentMode) \> **isViteDevelopmentMode**(): `boolean` Defined in: [src/vite-listener/plugins.ts:56](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite-listener/plugins.ts#L56) Checks if the current runtime is Vite development mode. Detects Vite dev client script injected in development. Assumes default Vite client path starts with `/@vite/client`. ## Returns [#returns] `boolean` # Function: setupPixivnViteData() (/pixi-vn/vite-listener/functions/setupPixivnViteData) \> **setupPixivnViteData**(): `Promise`\<`void`> Defined in: [src/vite-listener/plugins.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite-listener/plugins.ts#L86) Initializes Pixi VN development tools by syncing game state with the Vite dev server. Sends assets manifest and canvas options. **Note:** This function only operates in Vite development mode and is a no-op in production. **Call this function:** After RegisteredCharacters and RegisteredLabels are populated, typically in your client-side initialization code. ## Returns [#returns] `Promise`\<`void`> ## Example [#example] ```ts // In your main game initialization file import { setupPixivnViteData } from '@drincs/pixi-vn/vite-listener'; await Promise.all([import("@/content")]); // After game setup await setupPixivnViteData(); ``` # vite-listener (/pixi-vn/vite-listener) ## Functions [#functions] * [isViteDevelopmentMode](/pixi-vn/vite-listener/functions/isViteDevelopmentMode) * [setupPixivnViteData](/pixi-vn/vite-listener/functions/setupPixivnViteData) # Function: vitePluginPixivn() (/pixi-vn/vite/functions/vitePluginPixivn) \> **vitePluginPixivn**(`options?`): `Plugin` Defined in: [src/vite/plugins.ts:420](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L420) Creates a Vite plugin for Pixi'VN integration. **Static content loading** When [VitePluginPixivnOptions.content](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#content), [VitePluginPixivnOptions.characters](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#characters), or [VitePluginPixivnOptions.labels](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#labels) are provided, the matched files are executed server-side via Vite SSR at startup, populating `RegisteredCharacters`, `RegisteredLabels`, and any other singletons before downstream plugins (such as `vitePluginInk`) run — including during `vite build`. **Auto-generated type file** When [VitePluginPixivnOptions.typeFilePath](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#typefilepath) is provided, the plugin writes a TypeScript declaration file that augments `PixivnCharacterIds` in `@drincs/pixi-vn/characters` and `PixivnLabelIds` in `@drincs/pixi-vn/narration` with all currently known IDs. This narrows `CharacterIdType` and `LabelIdType` from `string` to unions of known literals, giving compile-time safety for character lookups, `narration.call`, `narration.jump`, etc. The file is regenerated whenever the character or label set changes (content reload or external-label updates). It is **excluded from HMR** so regenerating it never triggers a page reload. **Auto-generated worker file** When [VitePluginPixivnOptions.workerFilePath](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#workerfilepath) is provided, the plugin writes a Worker entry file wired to `handleGameWorkerMessage` from `@drincs/pixi-vn/worker` - see that option's doc comment for what it's for (`Game.worker.register(...)`) and how to import it. Written once (its content never changes), not regenerated on the triggers above. Add [VitePluginPixivnOptions.autoRegisterWorker](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#autoregisterworker) to also skip the manual `Game.worker.register(...)` call - the plugin creates and registers the worker itself. **Auto-generated list file** When VitePluginPixivnOptions.listFilePath is provided, the plugin writes a TypeScript file that exports runtime `as const` arrays of all currently known IDs: `characterIds` and `labelIds`. These arrays can be used for runtime validation (e.g. `z.enum(characterIds)`) and are regenerated on the same triggers as the type file. **Asset bundles / aliases** When a PIXI.js `AssetsManifest` is registered — via [VitePluginPixivnOptions.assetsManifest](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#assetsmanifest) or, for manifests produced by an async asset pipeline, `api.setAssetsManifest(manifest)` — the same [VitePluginPixivnOptions.typeFilePath](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#typefilepath) also gets `export const bundleIds` / `export const assetAliasIds` (`as const` arrays) plus `declare module` augmentations for `PixivnBundleIds` / `PixivnAssetAliasIds` in `@drincs/pixi-vn/canvas` — narrowing that module's `BundleIdType` / `AssetAliasIdType` from `string` to unions of known literals, exactly like `PixivnCharacterIds` / `PixivnLabelIds` narrow `CharacterIdType` / `LabelIdType` above. The manifest also immediately backs the `GET /__pixi-vn/assets/manifest` endpoint below. **External label providers** Other Vite plugins can inject label IDs via the plugin API without needing to register them through SSR-loaded modules: * `api.setExternalLabels(providerId, labels)` — registers (or replaces) the label list for the given provider and regenerates the type file. * `api.clearExternalLabels(providerId)` — removes all labels for the given provider and regenerates the type file. **Dev-server HTTP endpoints** * `GET /__pixi-vn/characters` — retrieve registered characters * `POST /__pixi-vn/characters` — *(deprecated)* update from client; use the `characters` option instead * `GET /__pixi-vn/labels` — retrieve narration labels * `POST /__pixi-vn/labels` — *(deprecated)* update from client; use the `labels` / `content` option instead * `GET /__pixi-vn/assets/manifest` — retrieve PIXI assets manifest (immediately available when the `assetsManifest` option is set or `api.setAssetsManifest` has been called; otherwise 404 until a client `POST`) * `POST /__pixi-vn/assets/manifest` — *(deprecated)* update from client; use the `assetsManifest` option instead * `GET /__pixi-vn/canvas-options` — retrieve canvas rendering options * `POST /__pixi-vn/canvas-options` — update canvas options from client **Plugin API** (consumed by `vitePluginInk`): * `api.contentLoaded` — `Promise` that resolves once all content modules have finished loading. Await this before generating JSON files. * `api.characters` — the list of registered characters (populated after `contentLoaded`). * `api.onReload(cb)` — register a callback that fires after every hot-content-reload. * `api.setExternalLabels(providerId, labels)` — add/replace labels from an external provider. * `api.clearExternalLabels(providerId)` — remove labels previously set for a provider. * `api.setAssetsManifest(manifest)` — register/replace the assets manifest after plugin-creation time (e.g. once an async asset pipeline finishes); see [VitePluginPixivnOptions.assetsManifest](/pixi-vn/vite/interfaces/VitePluginPixivnOptions#assetsmanifest). ## Parameters [#parameters] ### options? [#options] [`VitePluginPixivnOptions`](/pixi-vn/vite/interfaces/VitePluginPixivnOptions) Optional plugin configuration. ## Returns [#returns] `Plugin` A Vite plugin. ## Example [#example] ```ts // vite.config.ts import { defineConfig } from "vite"; import { vitePluginPixivn } from "@drincs/pixi-vn/vite"; export default defineConfig({ plugins: [ vitePluginPixivn({ content: "./src/content/index.ts", typeFilePath: "./src/pixi-vn.gen.d.ts", }), ], }); ``` # vite (/pixi-vn/vite) ## Interfaces [#interfaces] * [VitePluginPixivnOptions](/pixi-vn/vite/interfaces/VitePluginPixivnOptions) ## Variables [#variables] * [PIXIVN_DEV_API_ASSETS_MANIFEST](/pixi-vn/vite/variables/PIXIVN_DEV_API_ASSETS_MANIFEST) * [PIXIVN_DEV_API_CANVAS_OPTIONS](/pixi-vn/vite/variables/PIXIVN_DEV_API_CANVAS_OPTIONS) * [PIXIVN_DEV_API_CHARACTERS](/pixi-vn/vite/variables/PIXIVN_DEV_API_CHARACTERS) * [PIXIVN_DEV_API_LABELS](/pixi-vn/vite/variables/PIXIVN_DEV_API_LABELS) ## Functions [#functions] * [vitePluginPixivn](/pixi-vn/vite/functions/vitePluginPixivn) # Interface: VitePluginPixivnOptions (/pixi-vn/vite/interfaces/VitePluginPixivnOptions) Defined in: [src/vite/plugins.ts:113](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L113) Options for [vitePluginPixivn](/pixi-vn/vite/functions/vitePluginPixivn). ## Properties [#properties] ### assetsManifest? [#assetsmanifest] \> `optional` **assetsManifest?**: `AssetsManifestOption` Defined in: [src/vite/plugins.ts:293](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L293) A PIXI.js [AssetsManifest](/pixi-vn/index/interfaces/AssetsManifest) describing all asset bundles and their aliases — or a function that resolves one, for manifests that aren't known synchronously at plugin-creation time (e.g. one produced by an asset pipeline such as `@assetpack/core`, or merged together from several sources in an app-owned module). **Prefer the function form for anything backed by a generated file.** A *static* `import manifest from "./manifest.gen.json"` in `vite.config.ts` makes Vite treat that file as a config dependency — restarting the whole server on every change to it — which is disastrous when the very same config's own asset pipeline rewrites that file on every startup: an infinite restart loop. The function form sidesteps this entirely: nothing in `vite.config.ts` itself reads or imports the file; the plugin calls your function lazily, from inside its own plugin hooks, whenever it needs a fresh manifest. The function receives an `ssrLoadModule`-like loader (bound to whichever context is available — the running dev server, or a dedicated temporary server with this plugin's own `resolve` forwarded during `vite build`) so it can load `@/`-aliased app modules the same way `content` / `characters` / `labels` do — e.g. to import a module that merges an asset pipeline's generated manifest with hand-written bundles. Return `undefined` if there's nothing to register yet (e.g. the pipeline hasn't produced output on a fresh checkout). The plugin calls this function whenever it (re)loads content — at startup, and on every hot-reload — and, since it generally can't know which file(s) your function's own import depends on, also on every other file change (excluding its own generated [VitePluginPixivnOptions.typeFilePath](#typefilepath)), so a change to a manifest generated by another plugin is picked up without any direct coupling between the two. Either way — plain value or function — once a manifest is registered, the plugin: * writes `export const bundleIds` and `export const assetAliasIds` — `as const` runtime arrays of every bundle name and every asset alias found in the manifest — to [VitePluginPixivnOptions.typeFilePath](#typefilepath), and augments `PixivnBundleIds` / `PixivnAssetAliasIds` in `@drincs/pixi-vn/canvas` (the same `declare module` pattern used for `PixivnCharacterIds` / `PixivnLabelIds`), narrowing `BundleIdType` / `AssetAliasIdType` (also exported from `@drincs/pixi-vn/canvas`) from `string` to unions of known literals. * seeds the dev-server's `GET /__pixi-vn/assets/manifest` endpoint with this manifest immediately, so it is available without the browser having to `POST` it first (see [PIXIVN_DEV_API_ASSETS_MANIFEST](/pixi-vn/vite/variables/PIXIVN_DEV_API_ASSETS_MANIFEST)). A later `POST` (deprecated) still overrides it. `api.setAssetsManifest(manifest)` remains available as a lower-level escape hatch for pushing an already-computed manifest from outside this plugin entirely (e.g. from a separate Vite plugin that doesn't need `ssrLoadModule` access). #### Examples [#examples] ```ts // vite.config.ts — a manifest merged from a generated file plus hand-written bundles vitePluginPixivn({ typeFilePath: "./src/pixi-vn.keys.gen.ts", assetsManifest: async (ssrLoadModule) => { const mod = await ssrLoadModule("/src/assets/index.ts"); return mod.manifest; }, }) ``` ```ts // vite.config.ts — a genuinely static manifest, known up front vitePluginPixivn({ assetsManifest: { bundles: [{ name: "ui", assets: { logo: "logo.png" } }] }, typeFilePath: "./src/pixi-vn.keys.gen.ts", }) ``` *** ### autoRegisterWorker? [#autoregisterworker] \> `optional` **autoRegisterWorker?**: `boolean` Defined in: [src/vite/plugins.ts:228](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L228) Auto-registers the worker generated by [VitePluginPixivnOptions.workerFilePath](#workerfilepath) by injecting a small module into `index.html` that creates it and calls `Game.worker.register(...)` on page load - no app code required for this part, mirroring how [VitePluginPixivnOptions.testing](#testing) auto-injects its own bridge. Unlike `testing`, this **is** injected during `vite build` too - the worker offloads real runtime work (`back()`, save/export diffing), not a dev-only hook, so shipping without it would silently lose the optimization in production. Requires [VitePluginPixivnOptions.workerFilePath](#workerfilepath) to also be set; a project that needs more control over the worker's lifecycle (e.g. combining it with its own message types) should keep calling `Game.worker.register(new PixivnWorker())` by hand instead and leave this option unset - don't do both, the second registration would just replace the first. #### Default [#default] ```ts false ``` #### Example [#example] ```ts // vite.config.ts — the entire worker setup, no app code needed vitePluginPixivn({ workerFilePath: "./src/pixi-vn.worker.gen.ts", autoRegisterWorker: true, }) ``` *** ### characters? [#characters] \> `optional` **characters?**: `string` | `string`\[] Defined in: [src/vite/plugins.ts:139](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L139) Glob / path of module(s) whose side effects register characters via `RegisteredCharacters.add(...)`. Use when characters are defined separately from other content. #### Example [#example-1] ```ts "./src/characters.ts" ``` *** ### content? [#content] \> `optional` **content?**: `string` | `string`\[] Defined in: [src/vite/plugins.ts:129](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L129) Glob / path of module(s) that set up all game content as side effects: characters, labels, hashtag-command handlers, text-replace handlers, etc. The plugin loads these files server-side (via Vite SSR) at startup so that every downstream plugin that depends on the registered data — most notably `vitePluginInk` for JSON compilation — has the full registry available before it runs. This also works during `vite build`. Pointing to a barrel file that re-exports everything is the simplest option. All patterns are resolved relative to Vite `root`. #### Examples [#examples-1] ```ts "./src/content/index.ts" ``` ```ts "./src/content/*.ts" ``` *** ### labels? [#labels] \> `optional` **labels?**: `string` | `string`\[] Defined in: [src/vite/plugins.ts:147](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L147) Glob / path of module(s) whose side effects register narration labels via `RegisteredLabels.register(...)`. #### Example [#example-2] ```ts "./src/*.label.ts" ``` *** ### testing? [#testing] \> `optional` **testing?**: `boolean` | \{ `windowKey?`: `string`; } Defined in: [src/vite/plugins.ts:310](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L310) Auto-enables `Game.testing` (see the `pixi-vn-testing` skill) for as long as the dev server keeps running, by injecting a small module into `index.html` that calls `Game.testing.enable(...)` on page load — no app code required for this part. **Never injected during `vite build`**, regardless of this option. This only turns the `window` bridge on/off. Every action it exposes still needs the app's real `StepLabelProps` (`navigate`/`t`/`toast`/etc.) to work — the app must separately call `Game.testing.setProps(props)` wherever it already builds those props (e.g. the end of a `useGameProps()`-style hook), unconditionally, since `setProps` is cheap and safe to call whether or not testing happens to be enabled. Pass `false` to opt out entirely (e.g. a shared dev server you don't want remote-controllable). #### Union Members [#union-members] `boolean` *** ##### Type Literal [#type-literal] \{ `windowKey?`: `string`; } ##### windowKey? [#windowkey] \> `optional` **windowKey?**: `string` The `window` property the testing API is attached under. ###### Default [#default-1] ```ts "pixiVN" ``` #### Default [#default-2] ```ts true ``` *** ### typeFilePath? [#typefilepath] \> `optional` **typeFilePath?**: `string` Defined in: [src/vite/plugins.ts:171](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L171) Path to the auto-generated TypeScript file that combines compile-time type augmentations and runtime `as const` arrays for all currently known entity IDs. When provided, the plugin generates (or overwrites) this file: * after all content modules have been loaded at startup, * after every hot-reload of a watched content file, * whenever `api.setExternalLabels` or `api.clearExternalLabels` is called. The generated file contains: * `declare module` augmentations for `PixivnCharacterIds` and `PixivnLabelIds`, narrowing `CharacterIdType` / `LabelIdType` to unions of known string literals. * `export const characterIds` and `export const labelIds` as `as const` arrays, usable at runtime for validation (e.g. `z.enum(characterIds)`). The generated file is **excluded from HMR** so that updating it never triggers a full-page reload. The path may be absolute or relative to Vite `root`. #### Example [#example-3] ```ts "./src/pixi-vn.keys.gen.ts" ``` *** ### workerFilePath? [#workerfilepath] \> `optional` **workerFilePath?**: `string` Defined in: [src/vite/plugins.ts:201](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/plugins.ts#L201) Path to an auto-generated Worker entry file that hands every message it receives to `handleGameWorkerMessage` from `@drincs/pixi-vn/worker` — the file a project needs to make `Game.worker.register(...)` (see that function's doc comment) actually do something, without having to hand-write and maintain that file itself. Written once, when the plugin's config resolves (its content never changes, so unlike [typeFilePath](#typefilepath) there's nothing to regenerate on content reload). Wire it up with Vite's own `?worker` import: ```ts // vite.config.ts vitePluginPixivn({ workerFilePath: "./src/pixi-vn.worker.gen.ts" }) // wherever the app calls Game.init(...) import { Game } from "@drincs/pixi-vn"; import PixivnWorker from "./pixi-vn.worker.gen?worker"; Game.worker.register(new PixivnWorker()); ``` Purely a convenience: a project that wants a different worker setup (e.g. combining this with its own message types on the same worker) can just write the file by hand instead and skip this option entirely - `Game.worker.register` doesn't care which side created the file. The path may be absolute or relative to Vite `root`. #### Example [#example-4] ```ts "./src/pixi-vn.worker.gen.ts" ``` # Variable: PIXIVN_DEV_API_ASSETS_MANIFEST (/pixi-vn/vite/variables/PIXIVN_DEV_API_ASSETS_MANIFEST) \> `const` **PIXIVN_DEV_API_ASSETS_MANIFEST**: `"/__pixi-vn/assets/manifest"` = `"/__pixi-vn/assets/manifest"` Defined in: [src/vite/costants.ts:8](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/costants.ts#L8) ## Const [#const] API endpoint for assets manifest - GET to retrieve, POST to update # Variable: PIXIVN_DEV_API_CANVAS_OPTIONS (/pixi-vn/vite/variables/PIXIVN_DEV_API_CANVAS_OPTIONS) \> `const` **PIXIVN_DEV_API_CANVAS_OPTIONS**: `"/__pixi-vn/canvas-options"` = `"/__pixi-vn/canvas-options"` Defined in: [src/vite/costants.ts:11](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/costants.ts#L11) ## Const [#const] API endpoint for canvas options - GET to retrieve, POST to update # Variable: PIXIVN_DEV_API_CHARACTERS (/pixi-vn/vite/variables/PIXIVN_DEV_API_CHARACTERS) \> `const` **PIXIVN_DEV_API_CHARACTERS**: `"/__pixi-vn/characters"` = `"/__pixi-vn/characters"` Defined in: [src/vite/costants.ts:2](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/costants.ts#L2) ## Const [#const] API endpoint for characters data - GET to retrieve, POST to update # Variable: PIXIVN_DEV_API_LABELS (/pixi-vn/vite/variables/PIXIVN_DEV_API_LABELS) \> `const` **PIXIVN_DEV_API_LABELS**: `"/__pixi-vn/labels"` = `"/__pixi-vn/labels"` Defined in: [src/vite/costants.ts:5](https://github.com/DRincs-Productions/pixi-vn/blob/f55707110b4a4bd56fb1c8547285a9aea26fda31/src/vite/costants.ts#L5) ## Const [#const] API endpoint for narration labels - GET to retrieve, POST to update # Class: JsonUnifier (/pixi-vn-json/core/classes/JsonUnifier) Defined in: [src/core/JsonUnifier.ts:42](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L42) ## Constructors [#constructors] ### Constructor [#constructor] \> **new JsonUnifier**(): `JsonUnifier` #### Returns [#returns] `JsonUnifier` ## Accessors [#accessors] ### animatedSpriteOperation [#animatedspriteoperation] #### Get Signature [#get-signature] \> **get** `static` **animatedSpriteOperation**(): (`operation`) => `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:215](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L215) Registered handler for AnimatedSprite show/edit/remove/pause/resume/goto operations. ##### Returns [#returns-1] (`operation`) => `Promise`\<`void`> *** ### animateOperation [#animateoperation] #### Get Signature [#get-signature-1] \> **get** `static` **animateOperation**(): (`operation`) => `void` Defined in: [src/core/JsonUnifier.ts:337](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L337) Registered handler for keyframe animation operations. ##### Returns [#returns-2] (`operation`) => `void` *** ### canvasElementOperation [#canvaselementoperation] #### Get Signature [#get-signature-2] \> **get** `static` **canvasElementOperation**(): (`operation`) => `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:266](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L266) Registered handler for generic canvas-element edit/remove operations. ##### Returns [#returns-3] (`operation`) => `Promise`\<`void`> *** ### canvasOperation [#canvasoperation] #### Get Signature [#get-signature-3] \> **get** `static` **canvasOperation**(): (`operation`) => `void` Defined in: [src/core/JsonUnifier.ts:350](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L350) Registered handler for generic canvas-wide operations (e.g. clear). ##### Returns [#returns-4] (`operation`) => `void` *** ### effectOperation [#effectoperation] #### Get Signature [#get-signature-4] \> **get** `static` **effectOperation**(): (`operation`) => `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:324](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L324) Registered handler for canvas visual effects (e.g. shake). ##### Returns [#returns-5] (`operation`) => `Promise`\<`void`> *** ### getConditionalStep [#getconditionalstep] #### Get Signature [#get-signature-5] \> **get** `static` **getConditionalStep**(): (`originalStep`, `props?`) => [`PixiVNJsonLabelStep`](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelStep) Defined in: [src/core/JsonUnifier.ts:389](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L389) Registered handler that resolves a label step's `conditionalStep` field. ##### Returns [#returns-6] (`originalStep`, `props?`) => [`PixiVNJsonLabelStep`](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelStep) *** ### getLogichValue [#getlogichvalue] #### Get Signature [#get-signature-6] \> **get** `static` **getLogichValue**(): \<`T`>(`value`, `props?`) => `T` | `undefined` Defined in: [src/core/JsonUnifier.ts:373](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L373) Registered handler that evaluates a JSON logic expression to a plain value. ##### Returns [#returns-7] \<`T`>(`value`, `props?`) => `T` | `undefined` *** ### imageContainerOperation [#imagecontaineroperation] #### Get Signature [#get-signature-7] \> **get** `static` **imageContainerOperation**(): (`operation`) => `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:232](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L232) ##### Returns [#returns-8] (`operation`) => `Promise`\<`void`> *** ### imageOperation [#imageoperation] #### Get Signature [#get-signature-8] \> **get** `static` **imageOperation**(): (`operation`) => `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:177](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L177) Registered handler for ImageSprite show/edit/remove operations. ##### Returns [#returns-9] (`operation`) => `Promise`\<`void`> *** ### loadAssets [#loadassets] #### Get Signature [#get-signature-9] \> **get** `static` **loadAssets**(): (`origin`) => `void` | `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:149](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L149) Registered handler for loading/lazy-loading assets. ##### Returns [#returns-10] (`origin`) => `void` | `Promise`\<`void`> *** ### narrationOperation [#narrationoperation] #### Get Signature [#get-signature-10] \> **get** `static` **narrationOperation**(): (`operation`) => `void` Defined in: [src/core/JsonUnifier.ts:311](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L311) Registered handler for narration operations (input requests, dialogue resets). ##### Returns [#returns-11] (`operation`) => `void` *** ### setInitialStorageValue [#setinitialstoragevalue] #### Get Signature [#get-signature-11] \> **get** `static` **setInitialStorageValue**(): (`value`, `props?`) => `void` Defined in: [src/core/JsonUnifier.ts:298](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L298) Registered handler for setting a default (initial) storage value at import time. ##### Returns [#returns-12] (`value`, `props?`) => `void` *** ### setStorageValue [#setstoragevalue] #### Get Signature [#get-signature-12] \> **get** `static` **setStorageValue**(): (`value`, `props?`) => `void` Defined in: [src/core/JsonUnifier.ts:282](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L282) Registered handler for setting a storage value during label execution. ##### Returns [#returns-13] (`value`, `props?`) => `void` *** ### soundOperation [#soundoperation] #### Get Signature [#get-signature-13] \> **get** `static` **soundOperation**(): (`operation`) => `void` Defined in: [src/core/JsonUnifier.ts:162](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L162) Registered handler for sound play/stop/pause/resume/edit operations. ##### Returns [#returns-14] (`operation`) => `void` *** ### textOperation [#textoperation] #### Get Signature [#get-signature-14] \> **get** `static` **textOperation**(): (`operation`) => `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:247](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L247) Registered handler for Text show/edit/remove operations. ##### Returns [#returns-15] (`operation`) => `Promise`\<`void`> *** ### videoOperation [#videooperation] #### Get Signature [#get-signature-15] \> **get** `static` **videoOperation**(): (`operation`) => `Promise`\<`void`> Defined in: [src/core/JsonUnifier.ts:196](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L196) Registered handler for VideoSprite show/edit/remove/pause/resume operations. ##### Returns [#returns-16] (`operation`) => `Promise`\<`void`> ## Methods [#methods] ### init() [#init] \> `static` **init**(`options`): `void` Defined in: [src/core/JsonUnifier.ts:50](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/core/JsonUnifier.ts#L50) Registers the operation handlers that pixi-vn-json will delegate to at runtime. Call this once at application startup (e.g. via [init](#init)) before importing any labels. All parameters are optional except `setInitialStorageValue`, which is required because it must be available for initial-operation processing during label import. #### Parameters [#parameters] ##### options [#options] ###### animatedSpriteOperation? [#animatedspriteoperation-1] (`operation`) => `Promise`\<`void`> ###### animateOperation? [#animateoperation-1] (`operation`) => `void` ###### canvasElementOperation? [#canvaselementoperation-1] (`operation`) => `Promise`\<`void`> ###### canvasOperation? [#canvasoperation-1] (`operation`) => `void` ###### effectOperation? [#effectoperation-1] (`operation`) => `Promise`\<`void`> ###### getConditionalStep? [#getconditionalstep-1] (`originalStep`, `props?`) => [`PixiVNJsonLabelStep`](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelStep) ###### getLogichValue? [#getlogichvalue-1] \<`T`>(`value`, `props?`) => `T` | `undefined` ###### imageContainerOperation? [#imagecontaineroperation-1] (`operation`) => `Promise`\<`void`> ###### imageOperation? [#imageoperation-1] (`operation`) => `Promise`\<`void`> ###### loadAssets? [#loadassets-1] (`origin`) => `void` | `Promise`\<`void`> ###### narrationOperation? [#narrationoperation-1] (`operation`) => `void` ###### setInitialStorageValue [#setinitialstoragevalue-1] (`value`, `props?`) => `void` ###### setStorageValue? [#setstoragevalue-1] (`value`, `props?`) => `void` ###### soundOperation? [#soundoperation-1] (`operation`) => `void` ###### textOperation? [#textoperation-1] (`operation`) => `Promise`\<`void`> ###### videoOperation? [#videooperation-1] (`operation`) => `Promise`\<`void`> #### Returns [#returns-17] `void` # core (/pixi-vn-json/core) ## Classes [#classes] * [JsonUnifier](/pixi-vn-json/core/classes/JsonUnifier) # docs-entry (/pixi-vn-json/docs-entry) ## Interfaces [#interfaces] * [ImageContainerOptions](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions) * [ImageSprite](/pixi-vn-json/docs-entry/interfaces/ImageSprite) * [ImageSpriteOptions](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions) * [MediaInterface](/pixi-vn-json/docs-entry/interfaces/MediaInterface) * [MoveInOutProps](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps) * [PushInOutProps](/pixi-vn-json/docs-entry/interfaces/PushInOutProps) * [ShowWithDissolveTransitionProps](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps) * [ShowWithFadeTransitionProps](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps) * [SoundPlayOptionsWithChannel](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel) * [TextOptions](/pixi-vn-json/docs-entry/interfaces/TextOptions) * [ZoomInOutProps](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps) ## Type Aliases [#type-aliases] * [AnimationOptions](/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) * [SequenceOptions](/pixi-vn-json/docs-entry/type-aliases/SequenceOptions) # Interface: ImageContainerOptions (/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:597 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `ContainerOptions`\<`C`> ## Extended by [#extended-by] * [`PixiVNJsonCanvasImageContainerShowProps`](/pixi-vn-json/index/interfaces/PixiVNJsonCanvasImageContainerShowProps) ## Type Parameters [#type-parameters] ### C [#c] `C` *extends* `ContainerChild$1` = `ContainerChild$1` ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `ContainerOptions.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `ContainerOptions.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `ContainerOptions.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `ContainerOptions.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `ContainerOptions.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `ContainerOptions.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `ContainerOptions.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:115 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] `ContainerOptions.align` *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * Container#visible For toggling visibility * Container#renderable For render control #### Inherited from [#inherited-from-8] `ContainerOptions.alpha` *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:568 #### Inherited from [#inherited-from-9] `ContainerOptions.anchor` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] `ContainerOptions.angle` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-8] ```ts 'normal' ``` #### See [#see-1] * Container#alpha For transparency * Container#tint For color adjustments #### Inherited from [#inherited-from-11] `ContainerOptions.blendMode` *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-12] `ContainerOptions.boundsArea` *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-13] `ContainerOptions.cacheAsTexture` *** ### children? [#children] \> `readonly` `optional` **children?**: `C`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * Container#addChild For adding children * Container#removeChild For removing children #### Inherited from [#inherited-from-14] `ContainerOptions.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-9] ```ts false ``` #### Inherited from [#inherited-from-15] `ContainerOptions.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-10] ```ts true ``` #### Inherited from [#inherited-from-16] `ContainerOptions.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-11] ```ts null ``` #### Inherited from [#inherited-from-17] `ContainerOptions.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-12] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-18] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`cursor`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-19] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`eventMode`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-20] `ContainerOptions.filters` *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-13] ```ts 0 ``` #### Inherited from [#inherited-from-21] `ContainerOptions.height` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-22] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`hitArea`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-23] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactive`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-14] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-24] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactiveChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-25] `ContainerOptions.isRenderGroup` *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-26] `ContainerOptions.label` *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from `ContainerOptions.mask` *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`oncontextmenu`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-29] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-31] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobaltouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-32] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousedown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointercancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointertap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-50] `ContainerOptions.onRender` *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-51] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchcancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchend`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchendoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchstart`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onwheel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-62] `ContainerOptions.origin` *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * Container#addChild For adding to a parent * Container#removeChild For removing from parent #### Inherited from [#inherited-from-63] `ContainerOptions.parent` *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:145 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-64] `ContainerOptions.percentagePosition` *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:155 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] `ContainerOptions.percentageX` *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:165 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] `ContainerOptions.percentageY` *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-67] `ContainerOptions.pivot` *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-68] `ContainerOptions.position` *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-50] ```ts true ``` #### See [#see-9] * Container#visible For skipping transform updates * Container#alpha For transparency #### Inherited from [#inherited-from-69] `ContainerOptions.renderable` *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-61] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-70] `ContainerOptions.rotation` *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-62] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-71] `ContainerOptions.scale` *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-72] `ContainerOptions.setMask` *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-63] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-51] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-73] `ContainerOptions.skew` *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-64] ```ts container.sortableChildren = true; ``` #### Default [#default-52] ```ts false ``` #### Inherited from [#inherited-from-74] `ContainerOptions.sortableChildren` *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-53] ```ts false @internal ``` #### Inherited from [#inherited-from-75] `ContainerOptions.sortDirty` *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-54] ```ts 0 ``` #### Example [#example-65] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-76] `ContainerOptions.tabIndex` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-66] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-55] ```ts 0xFFFFFF ``` #### See [#see-10] * Container#alpha For transparency * Container#visible For visibility control #### Inherited from [#inherited-from-77] `ContainerOptions.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-67] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-56] ```ts true ``` #### See [#see-11] * Container#renderable For render-only control * Container#alpha For transparency #### Inherited from [#inherited-from-78] `ContainerOptions.visible` *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-68] ```ts new Container({ width: 100}); ``` #### Default [#default-57] ```ts 0 ``` #### Inherited from [#inherited-from-79] `ContainerOptions.width` *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-69] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-80] `ContainerOptions.x` *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:125 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-81] `ContainerOptions.xAlign` *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-70] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-82] `ContainerOptions.y` *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:135 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-83] `ContainerOptions.yAlign` *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-71] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn-json/docs-entry/interfaces/ImageSprite#sortablechildren) For enabling sorting * Container#sortChildren For manual sorting #### Default [#default-58] ```ts 0 ``` #### Inherited from [#inherited-from-84] `ContainerOptions.zIndex` # Interface: ImageSprite (/pixi-vn-json/docs-entry/interfaces/ImageSprite) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:742 This class is a extension of the Sprite class, it has the same properties and methods, but it has some features that make texture management easier. You need to use [load](#load) to show the image in the canvas. This class is used for functions like addImage and showWithDissolve. ## Examples [#examples] ```ts Assets.add({ alias: "eggHead", src: "https://pixijs.com/assets/eggHead.png" }); const alien = new ImageSprite({ anchor: 0.5, x: 100, y: 100 }, "eggHead"); await alien.load(); canvas.add("alien", alien); ``` ```ts Assets.add({ alias: "eggHead", src: "https://pixijs.com/assets/eggHead.png" }); // the alias of the component is also the alias of the asset const eggHead = addImage("eggHead", { anchor: 0.5, x: 100, y: 100 }); await eggHead.load(); // a different alias for the component const alien = addImage("alien", "eggHead", { anchor: 0.5, x: 300, y: 100 }); await alien.load(); ``` ## Extends [#extends] * `Sprite`\<`Memory`> ## Type Parameters [#type-parameters] ### Memory [#memory] `Memory` *extends* `ImageSpriteMemory` = `ImageSpriteMemory` ## Properties [#properties] ### \_\_devtoolIgnore? [#__devtoolignore] \> `optional` **\_\_devtoolIgnore?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:35 #### Inherited from [#inherited-from] `Sprite.__devtoolIgnore` *** ### \_\_devtoolIgnoreChildren? [#__devtoolignorechildren] \> `optional` **\_\_devtoolIgnoreChildren?**: `string` Defined in: node_modules/@pixi/devtools/global.d.ts:36 #### Inherited from [#inherited-from-1] `Sprite.__devtoolIgnoreChildren` *** ### \_\_devtoolLocked? [#__devtoollocked] \> `optional` **\_\_devtoolLocked?**: `boolean` Defined in: node_modules/@pixi/devtools/global.d.ts:37 #### Inherited from [#inherited-from-2] `Sprite.__devtoolLocked` *** ### \_anchor [#_anchor] \> `readonly` **\_anchor**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:155 **`Internal`** #### Inherited from [#inherited-from-3] `Sprite._anchor` *** ### \_bounds [#_bounds] \> `protected` **\_bounds**: `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:59 #### Inherited from [#inherited-from-4] `Sprite._bounds` *** ### \_boundsDirty [#_boundsdirty] \> `protected` **\_boundsDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:60 #### Inherited from [#inherited-from-5] `Sprite._boundsDirty` *** ### \_cx [#_cx] \> **\_cx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:751 **`Internal`** The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-6] `Sprite._cx` *** ### \_cy [#_cy] \> **\_cy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:763 **`Internal`** The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-7] `Sprite._cy` *** ### \_gcData? [#_gcdata] \> `optional` **\_gcData?**: `GCData` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:54 **`Internal`** #### Inherited from [#inherited-from-8] `Sprite._gcData` *** ### \_gcLastUsed [#_gclastused] \> **\_gcLastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:58 **`Internal`** #### Inherited from [#inherited-from-9] `Sprite._gcLastUsed` *** ### \_gpuData [#_gpudata] \> **\_gpuData**: `Record`\<`number`, `GPU_DATA`> Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:52 **`Internal`** #### Inherited from [#inherited-from-10] `Sprite._gpuData` *** ### \_lastUsed [#_lastused] \> **\_lastUsed**: `number` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:50 **`Internal`** #### Inherited from [#inherited-from-11] `Sprite._lastUsed` *** ### \_pivot [#_pivot] \> **\_pivot**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:734 **`Internal`** The pivot point of the container that it rotates around. #### Inherited from [#inherited-from-12] `Sprite._pivot` *** ### \_position [#_position] \> **\_position**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:724 **`Internal`** The coordinate of the object relative to the local coordinates of the parent. #### Inherited from [#inherited-from-13] `Sprite._position` *** ### \_roundPixels [#_roundpixels] \> **\_roundPixels**: `0` | `1` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:48 **`Internal`** #### Inherited from [#inherited-from-14] `Sprite._roundPixels` *** ### \_scale [#_scale] \> **\_scale**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:729 **`Internal`** The scale factor of the object. #### Inherited from [#inherited-from-15] `Sprite._scale` *** ### \_skew [#_skew] \> **\_skew**: `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:745 **`Internal`** The skew amount, on the x and y axis. #### Inherited from [#inherited-from-16] `Sprite._skew` *** ### \_sx [#_sx] \> **\_sx**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:757 **`Internal`** The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-17] `Sprite._sx` *** ### \_sy [#_sy] \> **\_sy**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:769 **`Internal`** The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale. #### Inherited from [#inherited-from-18] `Sprite._sy` *** ### \_texture [#_texture] \> **\_texture**: `Texture` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:157 **`Internal`** #### Inherited from [#inherited-from-19] `Sprite._texture` *** ### \_zIndex [#_zindex] \> **\_zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:60 **`Internal`** #### Inherited from [#inherited-from-20] `Sprite._zIndex` *** ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from-21] `Sprite.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-22] `Sprite.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-23] `Sprite.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-24] `Sprite.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-25] `Sprite.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-26] `Sprite.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-27] `Sprite.accessibleType` *** ### allowChildren [#allowchildren] \> **allowChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:46 **`Internal`** #### Inherited from [#inherited-from-28] `Sprite.allowChildren` *** ### autoGarbageCollect [#autogarbagecollect] \> **autoGarbageCollect**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:56 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-29] `Sprite.autoGarbageCollect` *** ### batched [#batched] \> **batched**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:153 **`Internal`** #### Inherited from [#inherited-from-30] `Sprite.batched` *** ### boundsArea [#boundsarea] \> **boundsArea**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:815 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-7] ```ts const container = new Container(); container.boundsArea = new Rectangle(0, 0, 500, 500); ``` #### Inherited from [#inherited-from-31] `Sprite.boundsArea` *** ### ~~cacheAsBitmap~~ [#cacheasbitmap] \> **cacheAsBitmap**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:61 Legacy property for backwards compatibility with PixiJS v7 and below. Use `cacheAsTexture` instead. #### Deprecated [#deprecated] since 8.0.0 #### Inherited from [#inherited-from-32] `Sprite.cacheAsBitmap` *** ### cacheAsTexture [#cacheastexture] \> **cacheAsTexture**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:45 Caches this container as a texture. This allows the container to be rendered as a single texture, which can improve performance for complex static containers. #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` If true, enables caching with default options. If false, disables caching. Can also pass options object to configure caching behavior. #### Returns [#returns] `void` #### Example [#example-8] ```ts // Basic caching container.cacheAsTexture(true); // With custom options container.cacheAsTexture({ resolution: 2, antialias: true, }); // Disable caching container.cacheAsTexture(false); // Cache a complex UI const ui = new Container(); // Add multiple children... ui.cacheAsTexture(true); ui.updateCacheTexture(); // Update if contents change ``` #### See [#see] * Container#updateCacheTexture For updating cached content * [Container#isCachedAsTexture](#iscachedastexture) For checking cache state #### Inherited from [#inherited-from-33] `Sprite.cacheAsTexture` *** ### canBundle [#canbundle] \> `readonly` **canBundle**: `true` = `true` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:44 **`Internal`** #### Inherited from [#inherited-from-34] `Sprite.canBundle` *** ### children [#children] \> `readonly` **children**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:639 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-9] ```ts // Access children const firstChild = container.children[0]; const lastChild = container.children[container.children.length - 1]; ``` #### See [#see-1] * Container#addChild For adding children * Container#removeChild For removing children #### Inherited from [#inherited-from-35] `Sprite.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-10] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-7] ```ts false ``` #### Inherited from [#inherited-from-36] `Sprite.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-11] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-8] ```ts true ``` #### Inherited from [#inherited-from-37] `Sprite.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-12] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-9] ```ts null ``` #### Inherited from [#inherited-from-38] `Sprite.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-13] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-10] ```ts undefined ``` #### See [#see-2] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-39] `Sprite.cursor` *** ### depthOfChildModified [#depthofchildmodified] \> **depthOfChildModified**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:74 **`Internal`** #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-40] `Sprite.depthOfChildModified` *** ### destroyed [#destroyed] \> **destroyed**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:719 Whether this object has been destroyed. If true, the object should no longer be used. After an object is destroyed, all of its functionality is disabled and references are removed. #### Example [#example-14] ```ts // Cleanup with destroy sprite.destroy(); console.log(sprite.destroyed); // true ``` #### Default [#default-11] ```ts false ``` #### See [#see-3] Container#destroy For destroying objects #### Inherited from [#inherited-from-41] `Sprite.destroyed` *** ### effects? [#effects] \> `optional` **effects?**: `Effect`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:183 todo Needs docs #### Advanced [#advanced-3] #### Inherited from [#inherited-from-42] `Sprite.effects` *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-15] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-43] `Sprite.eventMode` *** ### filterArea? [#filterarea] \> `optional` **filterArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:178 The area the filter is applied to. This is used as an optimization to define a specific region for filter effects instead of calculating the display object bounds each frame. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for filter effects, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-16] ```ts // Set specific filter area container.filterArea = new Rectangle(0, 0, 100, 100); // Optimize filter region const screen = app.screen; container.filterArea = new Rectangle( screen.x, screen.y, screen.width, screen.height ); ``` #### See [#see-4] * Container#filters For applying filters * Rectangle For area definition #### Inherited from [#inherited-from-44] `Sprite.filterArea` *** ### globalDisplayStatus [#globaldisplaystatus] \> **globalDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:798 **`Internal`** #### Inherited from [#inherited-from-45] `Sprite.globalDisplayStatus` *** ### groupAlpha [#groupalpha] \> **groupAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:780 **`Internal`** #### Inherited from [#inherited-from-46] `Sprite.groupAlpha` *** ### groupBlendMode [#groupblendmode] \> **groupBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:788 **`Internal`** #### Inherited from [#inherited-from-47] `Sprite.groupBlendMode` *** ### groupColor [#groupcolor] \> **groupColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:782 **`Internal`** #### Inherited from [#inherited-from-48] `Sprite.groupColor` *** ### groupColorAlpha [#groupcoloralpha] \> **groupColorAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:784 **`Internal`** #### Inherited from [#inherited-from-49] `Sprite.groupColorAlpha` *** ### groupTransform [#grouptransform] \> `readonly` **groupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:705 The group transform is a transform relative to the render group it belongs too. If this container is render group then this will be an identity matrix. other wise it will be the same as the relativeGroupTransform. Use this value when actually rendering things to the screen #### Advanced [#advanced-4] #### Inherited from [#inherited-from-50] `Sprite.groupTransform` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-17] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-51] `Sprite.hitArea` *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](#eventmode) #### Example [#example-18] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-52] `Sprite.interactive` *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-12] ```ts true ``` #### Example [#example-19] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-53] `Sprite.interactiveChildren` *** ### isCachedAsTexture [#iscachedastexture] \> `readonly` **isCachedAsTexture**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:75 Whether this container is currently cached as a texture. #### Example [#example-20] ```ts // Check cache state if (container.isCachedAsTexture) { console.log('Container is cached'); } ``` #### See [#see-6] * Container#cacheAsTexture For enabling caching * Container#updateCacheTexture For updating cache #### Inherited from [#inherited-from-54] `Sprite.isCachedAsTexture` *** ### isInteractive [#isinteractive] \> **isInteractive**: () => `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1062 Determines if the container is interactive or not #### Returns [#returns-2] `boolean` Whether the container is interactive or not #### Since [#since-1] 7.2.0 #### Example [#example-21] ```ts import { Sprite } from 'pixi.js'; const sprite = new Sprite(texture); sprite.eventMode = 'static'; sprite.isInteractive(); // true sprite.eventMode = 'dynamic'; sprite.isInteractive(); // true sprite.eventMode = 'none'; sprite.isInteractive(); // false sprite.eventMode = 'passive'; sprite.isInteractive(); // false sprite.eventMode = 'auto'; sprite.isInteractive(); // false ``` #### Inherited from [#inherited-from-55] `Sprite.isInteractive` *** ### label [#label] \> **label**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-56] `Sprite.label` *** ### layerParentId [#layerparentid] \> **layerParentId**: `string` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:829 **`Internal`** #### Inherited from [#inherited-from-57] `Sprite.layerParentId` *** ### localAlpha [#localalpha] \> **localAlpha**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:778 **`Internal`** #### Inherited from [#inherited-from-58] `Sprite.localAlpha` *** ### localBlendMode [#localblendmode] \> **localBlendMode**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:786 **`Internal`** #### Inherited from [#inherited-from-59] `Sprite.localBlendMode` *** ### localColor [#localcolor] \> **localColor**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:776 **`Internal`** #### Inherited from [#inherited-from-60] `Sprite.localColor` *** ### localDisplayStatus [#localdisplaystatus] \> **localDisplayStatus**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:796 **`Internal`** This property holds three bits: culled, visible, renderable the third bit represents culling (0 = culled, 1 = not culled) 0b100 the second bit represents visibility (0 = not visible, 1 = visible) 0b010 the first bit represents renderable (0 = not renderable, 1 = renderable) 0b001 #### Inherited from [#inherited-from-61] `Sprite.localDisplayStatus` *** ### localTransform [#localtransform] \> `readonly` **localTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:688 Current transform of the object based on local factors: position, scale, other stuff. This matrix represents the local transformation without any parent influence. #### Example [#example-22] ```ts // Basic transform access const localMatrix = sprite.localTransform; console.log(localMatrix.toString()); ``` #### See [#see-7] * [Container#worldTransform](#worldtransform) For global transform * [Container#groupTransform](#grouptransform) For render group transform #### Inherited from [#inherited-from-62] `Sprite.localTransform` *** ### mask [#mask] \> **mask**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:254 Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. \> \[!IMPORTANT] In PixiJS a regular mask must be a Graphics or a Sprite object. \> This allows for much faster masking in canvas as it uses shape clipping. \> A mask of an object must be in the subtree of its parent. \> Otherwise, `getLocalBounds` may calculate incorrect bounds, which makes the container's width and height wrong. Sprite masks read the red channel by default. Use [Container#setMask](#setmask) with `channel: 'alpha'` to read the alpha channel instead. See MaskOptions#channel for details. #### Example [#example-23] ```ts // Apply mask to sprite const sprite = new Sprite(texture); sprite.mask = graphics; // Remove mask sprite.mask = null; ``` #### See [#see-8] * Graphics For creating mask shapes * Sprite For texture-based masks * [Container#setMask](#setmask) For advanced mask options including channel selection #### Inherited from [#inherited-from-63] `Sprite.mask` *** ### ~~name~~ [#name] \> **name**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:24 The instance name of the object. #### Deprecated [#deprecated-1] since 8.0.0 #### See [#see-9] Container#label #### Default [#default-14] ```ts null ``` #### Inherited from [#inherited-from-64] `Sprite.name` *** ### onclick? [#onclick] \> `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-65] `Sprite.onclick` *** ### oncontextmenu? [#oncontextmenu] \> `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-66] `Sprite.oncontextmenu` *** ### onEventsHandlers [#oneventshandlers] \> `readonly` **onEventsHandlers**: `OnEventsHandlers` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:661 ListenerExtension #### Inherited from [#inherited-from-67] `Sprite.onEventsHandlers` *** ### onglobalmousemove? [#onglobalmousemove] \> `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-17] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-68] `Sprite.onglobalmousemove` *** ### onglobalpointermove? [#onglobalpointermove] \> `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-69] `Sprite.onglobalpointermove` *** ### onglobaltouchmove? [#onglobaltouchmove] \> `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-70] `Sprite.onglobaltouchmove` *** ### onmousedown? [#onmousedown] \> `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-20] ```ts null ``` #### Inherited from [#inherited-from-71] `Sprite.onmousedown` *** ### onmouseenter? [#onmouseenter] \> `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-72] `Sprite.onmouseenter` *** ### onmouseleave? [#onmouseleave] \> `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-73] `Sprite.onmouseleave` *** ### onmousemove? [#onmousemove] \> `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-74] `Sprite.onmousemove` *** ### onmouseout? [#onmouseout] \> `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-75] `Sprite.onmouseout` *** ### onmouseover? [#onmouseover] \> `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-76] `Sprite.onmouseover` *** ### onmouseup? [#onmouseup] \> `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-77] `Sprite.onmouseup` *** ### onmouseupoutside? [#onmouseupoutside] \> `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-78] `Sprite.onmouseupoutside` *** ### onpointercancel? [#onpointercancel] \> `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-79] `Sprite.onpointercancel` *** ### onpointerdown? [#onpointerdown] \> `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-80] `Sprite.onpointerdown` *** ### onpointerenter? [#onpointerenter] \> `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-81] `Sprite.onpointerenter` *** ### onpointerleave? [#onpointerleave] \> `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-82] `Sprite.onpointerleave` *** ### onpointermove? [#onpointermove] \> `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-83] `Sprite.onpointermove` *** ### onpointerout? [#onpointerout] \> `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-84] `Sprite.onpointerout` *** ### onpointerover? [#onpointerover] \> `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-85] `Sprite.onpointerover` *** ### onpointertap? [#onpointertap] \> `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-86] `Sprite.onpointertap` *** ### onpointerup? [#onpointerup] \> `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-87] `Sprite.onpointerup` *** ### onpointerupoutside? [#onpointerupoutside] \> `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-88] `Sprite.onpointerupoutside` *** ### onRender [#onrender] \> **onRender**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. \> \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different \> and "updateTransform" is no longer called every frame #### Example [#example-47] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-10] Renderer For renderer capabilities #### Inherited from [#inherited-from-89] `Sprite.onRender` *** ### onrightclick? [#onrightclick] \> `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-90] `Sprite.onrightclick` *** ### onrightdown? [#onrightdown] \> `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-91] `Sprite.onrightdown` *** ### onrightup? [#onrightup] \> `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-92] `Sprite.onrightup` *** ### onrightupoutside? [#onrightupoutside] \> `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-93] `Sprite.onrightupoutside` *** ### ontap? [#ontap] \> `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-94] `Sprite.ontap` *** ### ontouchcancel? [#ontouchcancel] \> `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-95] `Sprite.ontouchcancel` *** ### ontouchend? [#ontouchend] \> `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-96] `Sprite.ontouchend` *** ### ontouchendoutside? [#ontouchendoutside] \> `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-97] `Sprite.ontouchendoutside` *** ### ontouchmove? [#ontouchmove] \> `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-98] `Sprite.ontouchmove` *** ### ontouchstart? [#ontouchstart] \> `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-99] `Sprite.ontouchstart` *** ### onwheel? [#onwheel] \> `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-58] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-100] `Sprite.onwheel` *** ### parent [#parent] \> `readonly` **parent**: `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:659 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### Example [#example-59] ```ts // Basic parent access const parent = sprite.parent; // Walk up the tree let current = sprite; while (current.parent) { console.log('Level up:', current.parent.constructor.name); current = current.parent; } ``` #### See [#see-11] * Container#addChild For adding to a parent * Container#removeChild For removing from parent #### Inherited from [#inherited-from-101] `Sprite.parent` *** ### parentRenderLayer [#parentrenderlayer] \> `readonly` **parentRenderLayer**: `RenderLayer` | `null` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:672 The RenderLayer this container belongs to, if any. If it belongs to a RenderLayer, it will be rendered from the RenderLayer's position in the scene. #### Advanced [#advanced-5] #### Inherited from [#inherited-from-102] `Sprite.parentRenderLayer` *** ### pixivnId [#pixivnid] \> `readonly` **pixivnId**: `string` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:745 #### Overrides [#overrides] `Sprite.pixivnId` *** ### relativeGroupTransform [#relativegrouptransform] \> `readonly` **relativeGroupTransform**: `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:696 The relative group transform is a transform relative to the render group it belongs too. It will include all parent transforms and up to the render group (think of it as kind of like a stage - but the stage can be nested). If this container is is self a render group matrix will be relative to its parent render group #### Advanced [#advanced-6] #### Inherited from [#inherited-from-103] `Sprite.relativeGroupTransform` *** ### renderPipeId [#renderpipeid] \> `readonly` **renderPipeId**: `string` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:151 **`Internal`** #### Inherited from [#inherited-from-104] `Sprite.renderPipeId` *** ### sortableChildren [#sortablechildren] \> **sortableChildren**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-60] ```ts container.sortableChildren = true; ``` #### Default [#default-49] ```ts false ``` #### Inherited from [#inherited-from-105] `Sprite.sortableChildren` *** ### sortChildren [#sortchildren] \> **sortChildren**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:72 Sorts children by zIndex value. Only sorts if container is marked as dirty. #### Returns [#returns-3] `void` #### Example [#example-61] ```ts // Basic sorting particles.zIndex = 2; // Will mark as dirty container.sortChildren(); ``` #### See [#see-12] * [Container#sortableChildren](#sortablechildren) For enabling automatic sorting * [Container#zIndex](#zindex) For setting child order #### Inherited from [#inherited-from-106] `Sprite.sortChildren` *** ### sortDirty [#sortdirty] \> **sortDirty**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-50] ```ts false @internal ``` #### Inherited from [#inherited-from-107] `Sprite.sortDirty` *** ### tabIndex? [#tabindex] \> `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-51] ```ts 0 ``` #### Example [#example-62] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-108] `Sprite.tabIndex` *** ### uid [#uid] \> `readonly` **uid**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:610 **`Internal`** unique id for this container #### Inherited from [#inherited-from-109] `Sprite.uid` *** ### updateCacheTexture [#updatecachetexture] \> **updateCacheTexture**: () => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:55 Updates the cached texture of this container. This will flag the container's cached texture to be redrawn on the next render. #### Returns [#returns-4] `void` #### Example [#example-63] ```ts // Basic update after changes container.updateCacheTexture(); ``` #### Inherited from [#inherited-from-110] `Sprite.updateCacheTexture` *** ### updateTick [#updatetick] \> **updateTick**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:674 **`Internal`** #### Inherited from [#inherited-from-111] `Sprite.updateTick` *** ### zIndex [#zindex] \> **zIndex**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-64] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-13] * [Container#sortableChildren](#sortablechildren) For enabling sorting * Container#sortChildren For manual sorting #### Default [#default-52] ```ts 0 ``` #### Inherited from [#inherited-from-112] `Sprite.zIndex` ## Accessors [#accessors] ### align [#align] #### Get Signature [#get-signature] \> **get** **align**(): `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:678 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-5] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature] \> **set** **align**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:677 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-1] ###### value [#value] `number` | `Partial`\<`PointData`> ##### Returns [#returns-6] `void` #### Inherited from [#inherited-from-113] `Sprite.align` *** ### alpha [#alpha] #### Get Signature [#get-signature-1] \> **get** **alpha**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1246 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). ##### Example [#example-65] ```ts // Basic transparency sprite.alpha = 0.5; // 50% opacity // Inherited opacity container.alpha = 0.5; const child = new Sprite(texture); child.alpha = 0.5; container.addChild(child); // child's effective opacity is 0.25 (0.5 * 0.5) ``` ##### Default [#default-53] ```ts 1 ``` ##### See [#see-14] * Container#visible For toggling visibility * Container#renderable For render control ##### Returns [#returns-7] `number` #### Set Signature [#set-signature-1] \> **set** **alpha**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1226 ##### Parameters [#parameters-2] ###### value [#value-1] `number` ##### Returns [#returns-8] `void` #### Inherited from [#inherited-from-114] `Sprite.alpha` *** ### anchor [#anchor] #### Get Signature [#get-signature-2] \> **get** **anchor**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:256 The anchor sets the origin point of the sprite. The default value is taken from the Texture and passed to the constructor. * The default is `(0,0)`, this means the sprite's origin is the top left. * Setting the anchor to `(0.5,0.5)` means the sprite's origin is centered. * Setting the anchor to `(1,1)` would mean the sprite's origin point will be the bottom right corner. If you pass only single parameter, it will set both x and y to the same value as shown in the example below. ##### Example [#example-66] ```ts // Center the anchor point sprite.anchor = 0.5; // Sets both x and y to 0.5 sprite.position.set(400, 300); // Sprite will be centered at this position // Set specific x/y anchor points sprite.anchor = { x: 1, // Right edge y: 0 // Top edge }; // Using individual coordinates sprite.anchor.set(0.5, 1); // Center-bottom // For rotation around center sprite.anchor.set(0.5); sprite.rotation = Math.PI / 4; // 45 degrees around center // For scaling from center sprite.anchor.set(0.5); sprite.scale.set(2); // Scales from center point ``` ##### Returns [#returns-9] `ObservablePoint` #### Set Signature [#set-signature-2] \> **set** **anchor**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:257 ##### Parameters [#parameters-3] ###### value [#value-2] `number` | `PointData` ##### Returns [#returns-10] `void` #### Inherited from [#inherited-from-115] `Sprite.anchor` *** ### angle [#angle] #### Get Signature [#get-signature-3] \> **get** **angle**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1008 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-67] ```ts // Basic angle rotation sprite.angle = 45; // 45 degrees // Rotate around center sprite.pivot.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Rotate around center with origin sprite.origin.set(sprite.width / 2, sprite.height / 2); sprite.angle = 180; // Half rotation // Reset rotation sprite.angle = 0; ``` ##### Returns [#returns-11] `number` #### Set Signature [#set-signature-3] \> **set** **angle**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1009 ##### Parameters [#parameters-4] ###### value [#value-3] `number` ##### Returns [#returns-12] `void` #### Inherited from [#inherited-from-116] `Sprite.angle` *** ### blendMode [#blendmode] #### Get Signature [#get-signature-4] \> **get** **blendMode**(): `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1289 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. ##### Example [#example-68] ```ts // Basic blend modes sprite.blendMode = 'add'; // Additive blending sprite.blendMode = 'multiply'; // Multiply colors sprite.blendMode = 'screen'; // Screen blend // Reset blend mode sprite.blendMode = 'normal'; // Normal blending ``` ##### Default [#default-54] ```ts 'normal' ``` ##### See [#see-15] * Container#alpha For transparency * Container#tint For color adjustments ##### Returns [#returns-13] `BLEND_MODES` #### Set Signature [#set-signature-4] \> **set** **blendMode**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1269 ##### Parameters [#parameters-5] ###### value [#value-4] `BLEND_MODES` ##### Returns [#returns-14] `void` #### Inherited from [#inherited-from-117] `Sprite.blendMode` *** ### bounds [#bounds] #### Get Signature [#get-signature-5] \> **get** **bounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:74 The local bounds of the view in its own coordinate space. Bounds are automatically updated when the view's content changes. ##### Example [#example-69] ```ts // Get bounds dimensions const bounds = view.bounds; console.log(`Width: ${bounds.maxX - bounds.minX}`); console.log(`Height: ${bounds.maxY - bounds.minY}`); ``` ##### See [#see-16] Bounds For bounds operations ##### Returns [#returns-15] `Bounds` The rectangular bounds of the view #### Inherited from [#inherited-from-118] `Sprite.bounds` *** ### filters [#filters] #### Get Signature [#get-signature-6] \> **get** **filters**(): readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:277 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-70] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` ##### See [#see-17] Filter For filter base class ##### Returns [#returns-16] readonly `Filter`\[] #### Set Signature [#set-signature-5] \> **set** **filters**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:276 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. ##### Example [#example-71] ```ts // Add a single filter sprite.filters = new BlurFilter(2); // Apply multiple filters container.filters = [ new BlurFilter(2), new ColorMatrixFilter(), ]; // Remove filters sprite.filters = null; ``` ##### See [#see-18] Filter For filter base class ##### Parameters [#parameters-6] ###### value [#value-5] `Filter` | `Filter`\[] | `null` | `undefined` ##### Returns [#returns-17] `void` #### Inherited from [#inherited-from-119] `Sprite.filters` *** ### haveEmptyTexture [#haveemptytexture] #### Get Signature [#get-signature-7] \> **get** **haveEmptyTexture**(): `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:767 Check if the texture is empty. ##### Returns [#returns-18] `boolean` A boolean that is true if the texture is empty. *** ### height [#height] #### Get Signature [#get-signature-8] \> **get** **height**(): `number` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:300 The height of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example [#example-72] ```ts // Set height directly sprite.height = 150; console.log(sprite.scale.y); // Scale adjusted to match height // Set height while preserving aspect ratio const ratio = sprite.width / sprite.height; sprite.height = 200; sprite.width = 200 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.height = sprite.texture.orig.height; ``` ##### Returns [#returns-19] `number` #### Set Signature [#set-signature-6] \> **set** **height**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:301 The height of the Container, \> \[!NOTE] Changing the height will adjust the scale.y property of the container while maintaining its aspect ratio. \> \[!NOTE] If you want to set both width and height at the same time, use Container#setSize as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-73] ```ts // Basic height setting container.height = 200; // Optimized height setting container.setSize(100, 200); ``` ##### Parameters [#parameters-7] ###### value [#value-6] `number` ##### Returns [#returns-20] `void` #### Inherited from [#inherited-from-120] `Sprite.height` *** ### isRenderable [#isrenderable] #### Get Signature [#get-signature-9] \> **get** **isRenderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1329 Whether or not the object should be rendered. ##### Advanced [#advanced-7] ##### Returns [#returns-21] `boolean` #### Inherited from [#inherited-from-121] `Sprite.isRenderable` *** ### isRenderGroup [#isrendergroup] #### Get Signature [#get-signature-10] \> **get** **isRenderGroup**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:894 Returns true if this container is a render group. This means that it will be rendered as a separate pass, with its own set of instructions ##### Advanced [#advanced-8] ##### Returns [#returns-22] `boolean` #### Set Signature [#set-signature-7] \> **set** **isRenderGroup**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:888 ##### Parameters [#parameters-8] ###### value [#value-7] `boolean` ##### Returns [#returns-23] `void` #### Inherited from [#inherited-from-122] `Sprite.isRenderGroup` *** ### loadIsStarted [#loadisstarted] #### Get Signature [#get-signature-11] \> **get** **loadIsStarted**(): `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:755 ##### Returns [#returns-24] `boolean` *** ### memory [#memory-1] #### Get Signature [#get-signature-12] \> **get** **memory**(): `ImageSpriteMemory` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:751 ##### Returns [#returns-25] `ImageSpriteMemory` #### Overrides [#overrides-1] `Sprite.memory` *** ### origin [#origin] #### Get Signature [#get-signature-13] \> **get** **origin**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1087 **`Experimental`** The origin point around which the container rotates and scales without affecting its position. Unlike pivot, changing the origin will not move the container's position. ##### Example [#example-74] ```ts // Rotate around center point container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center // Reset origin container.origin.set(0, 0); ``` ##### Returns [#returns-26] `ObservablePoint` #### Set Signature [#set-signature-8] \> **set** **origin**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1088 ##### Parameters [#parameters-9] ###### value [#value-8] `number` | `PointData` ##### Returns [#returns-27] `void` #### Inherited from [#inherited-from-123] `Sprite.origin` *** ### percentagePosition [#percentageposition] #### Get Signature [#get-signature-14] \> **get** **percentagePosition**(): `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:685 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-28] `number` | `Partial`\<`PointData`> #### Set Signature [#set-signature-9] \> **set** **percentagePosition**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:684 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-10] ###### value [#value-9] `number` | `Partial`\<`PointData`> ##### Returns [#returns-29] `void` #### Inherited from [#inherited-from-124] `Sprite.percentagePosition` *** ### percentageX [#percentagex] #### Get Signature [#get-signature-15] \> **get** **percentageX**(): `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:686 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-30] `number` #### Set Signature [#set-signature-10] \> **set** **percentageX**(`_value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:687 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-11] ###### \_value [#_value] `number` ##### Returns [#returns-31] `void` #### Inherited from [#inherited-from-125] `Sprite.percentageX` *** ### percentageY [#percentagey] #### Get Signature [#get-signature-16] \> **get** **percentageY**(): `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:688 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Returns [#returns-32] `number` #### Set Signature [#set-signature-11] \> **set** **percentageY**(`_value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:689 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. ##### Parameters [#parameters-12] ###### \_value [#_value-1] `number` ##### Returns [#returns-33] `void` #### Inherited from [#inherited-from-126] `Sprite.percentageY` *** ### pivot [#pivot] #### Get Signature [#get-signature-17] \> **get** **pivot**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1023 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). ##### Example [#example-75] ```ts // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // Rotates around center ``` ##### Since [#since-2] 4.0.0 ##### Returns [#returns-34] `ObservablePoint` #### Set Signature [#set-signature-12] \> **set** **pivot**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1024 ##### Parameters [#parameters-13] ###### value [#value-10] `number` | `PointData` ##### Returns [#returns-35] `void` #### Inherited from [#inherited-from-127] `Sprite.pivot` *** ### position [#position] #### Get Signature [#get-signature-18] \> **get** **position**(): `ObservablePoint` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:702 The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-76] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-3] 4.0.0 ##### Returns [#returns-36] `ObservablePoint` #### Set Signature [#set-signature-13] \> **set** **position**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:703 The coordinate of the object relative to the local coordinates of the parent. ##### Example [#example-77] ```ts // Basic position setting container.position.set(100, 200); container.position.set(100); // Sets both x and y to 100 // Using point data container.position = { x: 50, y: 75 }; ``` ##### Since [#since-4] 4.0.0 ##### Parameters [#parameters-14] ###### value [#value-11] `ObservablePoint` ##### Returns [#returns-37] `void` #### Inherited from [#inherited-from-128] `Sprite.position` *** ### positionInfo [#positioninfo] #### Get Signature [#get-signature-19] \> **get** **positionInfo**(): `object` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:691 ##### Returns [#returns-38] `object` ###### type [#type] \> **type**: `"align"` | `"pixel"` | `"percentage"` ###### x [#x] \> **x**: `number` ###### y [#y] \> **y**: `number` #### Set Signature [#set-signature-14] \> **set** **positionInfo**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:696 ##### Parameters [#parameters-15] ###### value [#value-12] ###### type? [#type-1] `"align"` | `"pixel"` | `"percentage"` ###### x [#x-1] `number` ###### y [#y-1] `number` ##### Returns [#returns-39] `void` #### Inherited from [#inherited-from-129] `Sprite.positionInfo` *** ### positionType [#positiontype] #### Get Signature [#get-signature-20] \> **get** **positionType**(): `"align"` | `"pixel"` | `"percentage"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:690 ##### Returns [#returns-40] `"align"` | `"pixel"` | `"percentage"` #### Inherited from [#inherited-from-130] `Sprite.positionType` *** ### renderable [#renderable] #### Get Signature [#get-signature-21] \> **get** **renderable**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1323 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. ##### Example [#example-78] ```ts // Basic render control sprite.renderable = false; // Skip rendering sprite.renderable = true; // Enable rendering ``` ##### Default [#default-55] ```ts true ``` ##### See [#see-19] * Container#visible For skipping transform updates * Container#alpha For transparency ##### Returns [#returns-41] `boolean` #### Set Signature [#set-signature-15] \> **set** **renderable**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1324 ##### Parameters [#parameters-16] ###### value [#value-13] `boolean` ##### Returns [#returns-42] `void` #### Inherited from [#inherited-from-131] `Sprite.renderable` *** ### rotation [#rotation] #### Get Signature [#get-signature-22] \> **get** **rotation**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:984 The rotation of the object in radians. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. ##### Example [#example-79] ```ts // Basic rotation container.rotation = Math.PI / 4; // 45 degrees // Convert from degrees const degrees = 45; container.rotation = degrees * Math.PI / 180; // Rotate around center container.pivot.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees // Rotate around center with origin container.origin.set(container.width / 2, container.height / 2); container.rotation = Math.PI; // 180 degrees ``` ##### Returns [#returns-43] `number` #### Set Signature [#set-signature-16] \> **set** **rotation**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:985 ##### Parameters [#parameters-17] ###### value [#value-14] `number` ##### Returns [#returns-44] `void` #### Inherited from [#inherited-from-132] `Sprite.rotation` *** ### roundPixels [#roundpixels] #### Get Signature [#get-signature-23] \> **get** **roundPixels**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:86 Whether or not to round the x/y position of the sprite. ##### Example [#example-80] ```ts // Enable pixel rounding for crisp rendering view.roundPixels = true; ``` ##### Default [#default-56] ```ts false ``` ##### Returns [#returns-45] `boolean` #### Set Signature [#set-signature-17] \> **set** **roundPixels**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:87 Whether or not to round the x/y position of the object. ##### Parameters [#parameters-18] ###### value [#value-15] `boolean` ##### Returns [#returns-46] `void` #### Inherited from [#inherited-from-133] `Sprite.roundPixels` *** ### scale [#scale] #### Get Signature [#get-signature-24] \> **get** **scale**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1071 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). ##### Example [#example-81] ```ts // Basic scaling container.scale.set(2, 2); // Scales to double size container.scale.set(2); // Scales uniformly to double size container.scale = 2; // Scales uniformly to double size // Scale to a specific width and height container.setSize(200, 100); // Sets width to 200 and height to 100 ``` ##### Since [#since-5] 4.0.0 ##### Returns [#returns-47] `ObservablePoint` #### Set Signature [#set-signature-18] \> **set** **scale**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1072 ##### Parameters [#parameters-19] ###### value [#value-16] `string` | `number` | `PointData` ##### Returns [#returns-48] `void` #### Inherited from [#inherited-from-134] `Sprite.scale` *** ### skew [#skew] #### Get Signature [#get-signature-25] \> **get** **skew**(): `ObservablePoint` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1054 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. ##### Example [#example-82] ```ts // Basic skewing container.skew.set(0.5, 0); // Skew horizontally container.skew.set(0, 0.5); // Skew vertically // Skew with point data container.skew = { x: 0.3, y: 0.3 }; // Diagonal skew // Reset skew container.skew.set(0, 0); // Animate skew app.ticker.add(() => { // Create wave effect container.skew.x = Math.sin(Date.now() / 1000) * 0.3; }); // Combine with rotation container.rotation = Math.PI / 4; // 45 degrees container.skew.set(0.2, 0.2); // Skew the rotated object ``` ##### Since [#since-6] 4.0.0 ##### Default [#default-57] ```ts {x: 0, y: 0} ``` ##### Returns [#returns-49] `ObservablePoint` #### Set Signature [#set-signature-19] \> **set** **skew**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1055 ##### Parameters [#parameters-20] ###### value [#value-17] `PointData` ##### Returns [#returns-50] `void` #### Inherited from [#inherited-from-135] `Sprite.skew` *** ### texture [#texture] #### Get Signature [#get-signature-26] \> **get** **texture**(): `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:762 The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-83] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-20] * Texture For texture creation and management * Assets For asset loading ##### Returns [#returns-51] `Texture`\<`TextureSource`\<`any`>> #### Set Signature [#set-signature-20] \> **set** **texture**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:761 The texture that is displayed by the sprite. When changed, automatically updates the sprite dimensions and manages texture event listeners. ##### Example [#example-84] ```ts // Create sprite with texture const sprite = new Sprite({ texture: Texture.from('sprite.png') }); // Update texture sprite.texture = Texture.from('newSprite.png'); // Use texture from spritesheet const sheet = await Assets.load('spritesheet.json'); sprite.texture = sheet.textures['frame1.png']; // Reset to empty texture sprite.texture = Texture.EMPTY; ``` ##### See [#see-21] * Texture For texture creation and management * Assets For asset loading ##### Parameters [#parameters-21] ###### value [#value-18] `Texture`\<`TextureSource`\<`any`>> ##### Returns [#returns-52] `void` #### Overrides [#overrides-2] `Sprite.texture` *** ### textureAlias [#texturealias] #### Get Signature [#get-signature-27] \> **get** `protected` **textureAlias**(): `string` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:744 ##### Returns [#returns-53] `string` *** ### tint [#tint] #### Get Signature [#get-signature-28] \> **get** **tint**(): `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1268 The tint applied to the sprite. This can be any valid ColorSource. ##### Example [#example-85] ```ts // Basic color tinting container.tint = 0xff0000; // Red tint container.tint = 'red'; // Same as above container.tint = '#00ff00'; // Green container.tint = 'rgb(0,0,255)'; // Blue // Remove tint container.tint = 0xffffff; // White = no tint container.tint = null; // Also removes tint ``` ##### Default [#default-58] ```ts 0xFFFFFF ``` ##### See [#see-22] * Container#alpha For transparency * Container#visible For visibility control ##### Returns [#returns-54] `number` #### Set Signature [#set-signature-21] \> **set** **tint**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1247 ##### Parameters [#parameters-22] ###### value [#value-19] `ColorSource` ##### Returns [#returns-55] `void` #### Inherited from [#inherited-from-136] `Sprite.tint` *** ### visible [#visible] #### Get Signature [#get-signature-29] \> **get** **visible**(): `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1303 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. ##### Example [#example-86] ```ts // Basic visibility toggle sprite.visible = false; // Hide sprite sprite.visible = true; // Show sprite ``` ##### Default [#default-59] ```ts true ``` ##### See [#see-23] * Container#renderable For render-only control * Container#alpha For transparency ##### Returns [#returns-56] `boolean` #### Set Signature [#set-signature-22] \> **set** **visible**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1304 ##### Parameters [#parameters-23] ###### value [#value-20] `boolean` ##### Returns [#returns-57] `void` #### Inherited from [#inherited-from-137] `Sprite.visible` *** ### visualBounds [#visualbounds] #### Get Signature [#get-signature-30] \> **get** **visualBounds**(): `BoundsData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:205 The bounds of the sprite, taking into account the texture's trim area. ##### Example [#example-87] ````ts const texture = new Texture({ source: new TextureSource({ width: 300, height: 300 }), frame: new Rectangle(196, 66, 58, 56), trim: new Rectangle(4, 4, 58, 56), orig: new Rectangle(0, 0, 64, 64), rotate: 2, }); const sprite = new Sprite(texture); const visualBounds = sprite.visualBounds; // console.log(visualBounds); // { minX: -4, maxX: 62, minY: -4, maxY: 60 } ##### Returns `BoundsData` #### Inherited from `Sprite.visualBounds` *** ### width #### Get Signature > **get** **width**(): `number` Defined in: node\_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:278 The width of the sprite, setting this will actually modify the scale to achieve the value set. ##### Example ```ts // Set width directly sprite.width = 200; console.log(sprite.scale.x); // Scale adjusted to match width // Set width while preserving aspect ratio const ratio = sprite.height / sprite.width; sprite.width = 300; sprite.height = 300 * ratio; // For better performance when setting both width and height sprite.setSize(300, 400); // Avoids recalculating bounds twice // Reset to original texture size sprite.width = sprite.texture.orig.width; ```` ##### Returns [#returns-58] `number` #### Set Signature [#set-signature-23] > **set** **width**(`value`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:279 The width of the Container, setting this will actually modify the scale to achieve the value set. > \[!NOTE] Changing the width will adjust the scale.x property of the container while maintaining its aspect ratio. > \[!NOTE] If you want to set both width and height at the same time, use Container#setSize > as it is more optimized by not recalculating the local bounds twice. ##### Example [#example-88] ```ts // Basic width setting container.width = 100; // Optimized width setting container.setSize(100, 100); ``` ##### Parameters [#parameters-24] ###### value [#value-21] `number` ##### Returns [#returns-59] `void` #### Inherited from [#inherited-from-138] `Sprite.width` *** ### worldTransform [#worldtransform] #### Get Signature [#get-signature-31] > **get** **worldTransform**(): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:922 Current transform of the object based on world (parent) factors. This matrix represents the absolute transformation in the scene graph. ##### Example [#example-89] ```ts // Get world position const worldPos = container.worldTransform; console.log(`World position: (${worldPos.tx}, ${worldPos.ty})`); ``` ##### See [#see-24] [Container#localTransform](#localtransform) For local space transform ##### Returns [#returns-60] `Matrix` #### Inherited from [#inherited-from-139] `Sprite.worldTransform` *** ### x [#x-2] #### Get Signature [#get-signature-32] > **get** **x**(): `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:704 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-90] ```ts // Basic position container.x = 100; ``` ##### Returns [#returns-61] `number` #### Set Signature [#set-signature-24] > **set** **x**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:705 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x ##### Example [#example-91] ```ts // Basic position container.x = 100; ``` ##### Parameters [#parameters-25] ###### value [#value-22] `number` ##### Returns [#returns-62] `void` #### Inherited from [#inherited-from-140] `Sprite.x` *** ### xAlign [#xalign] #### Get Signature [#get-signature-33] > **get** **xAlign**(): `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:680 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-63] `number` #### Set Signature [#set-signature-25] > **set** **xAlign**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:679 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-26] ###### value [#value-23] `number` ##### Returns [#returns-64] `void` #### Inherited from [#inherited-from-141] `Sprite.xAlign` *** ### y [#y-2] #### Get Signature [#get-signature-34] > **get** **y**(): `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:706 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-92] ```ts // Basic position container.y = 200; ``` ##### Returns [#returns-65] `number` #### Set Signature [#set-signature-26] > **set** **y**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:707 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y ##### Example [#example-93] ```ts // Basic position container.y = 200; ``` ##### Parameters [#parameters-27] ###### value [#value-24] `number` ##### Returns [#returns-66] `void` #### Inherited from [#inherited-from-142] `Sprite.y` *** ### yAlign [#yalign] #### Get Signature [#get-signature-35] > **get** **yAlign**(): `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:682 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Returns [#returns-67] `number` #### Set Signature [#set-signature-27] > **set** **yAlign**(`value`): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:681 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. ##### Parameters [#parameters-28] ###### value [#value-25] `number` ##### Returns [#returns-68] `void` #### Inherited from [#inherited-from-143] `Sprite.yAlign` ## Methods [#methods] ### \_getGlobalBoundsRecursive() [#_getglobalboundsrecursive] > **\_getGlobalBoundsRecursive**(`factorRenderLayers`, `bounds`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:32 **`Internal`** Recursively calculates the global bounds for the container and its children. This method is used internally by getFastGlobalBounds to traverse the scene graph. #### Parameters [#parameters-29] ##### factorRenderLayers [#factorrenderlayers] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds [#bounds-1] `Bounds` The bounds object to update with the calculated values. ##### currentLayer [#currentlayer] `RenderLayer` The current render layer being processed. #### Returns [#returns-69] `void` #### Inherited from [#inherited-from-144] `Sprite._getGlobalBoundsRecursive` *** ### \_onTouch()? [#_ontouch] > `optional` **\_onTouch**(`now`): `void` Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.d.ts:31 An optional callback for when an item is touched #### Parameters [#parameters-30] ##### now [#now] `number` #### Returns [#returns-70] `void` #### Inherited from [#inherited-from-145] `Sprite._onTouch` *** ### addChild() [#addchild] > **addChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:864 Adds one or more children to the container. The children will be rendered as part of this container's display list. #### Type Parameters [#type-parameters-1] ##### U [#u] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-31] ##### children [#children-1] ...`U` The Container(s) to add to the container #### Returns [#returns-71] `U`\[`0`] The first child that was added #### Example [#example-94] ```ts // Add a single child container.addChild(sprite); // Add multiple children container.addChild(background, player, foreground); // Add with type checking const sprite = container.addChild(new Sprite(texture)); sprite.tint = 'red'; ``` #### See [#see-25] * Container#removeChild For removing children * Container#addChildAt For adding at specific index #### Inherited from [#inherited-from-146] `Sprite.addChild` *** ### addChildAt() [#addchildat] > **addChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:161 Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index. When moving a child within the **same** container, `childAdded` and `added` events are **not** emitted because the parent-child relationship hasn't changed. Events only fire when a child is added from a different parent (or from no parent). #### Type Parameters [#type-parameters-2] ##### U [#u-1] `U` *extends* `ContainerChild` #### Parameters [#parameters-32] ##### child [#child] `U` The child to add ##### index [#index] `number` The index where the child will be placed #### Returns [#returns-72] `U` The child that was added #### Example [#example-95] ```ts // Add at specific index container.addChildAt(sprite, 0); // Add to front // Move existing child (no events emitted) const index = container.children.length - 1; container.addChildAt(existingChild, index); // Move to back // With error handling try { container.addChildAt(sprite, 1000); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws] If index is out of bounds #### See [#see-26] * Container#addChild For adding to the end * Container#setChildIndex For moving existing children #### Inherited from [#inherited-from-147] `Sprite.addChildAt` *** ### addEventListener() [#addeventlistener] #### Call Signature [#call-signature] > **addEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1094 Unlike `on` or `addListener` which are methods from EventEmitter, `addEventListener` seeks to be compatible with the DOM's `addEventListener` with support for options. ##### Type Parameters [#type-parameters-3] ###### K [#k] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-33] ###### type [#type-2] `K` The type of event to listen to. ###### listener [#listener] (`e`) => `any` The listener callback or object. ###### options? [#options] `AddListenerOptions` Listener options, used for capture phase. ##### Returns [#returns-73] `void` ##### Example [#example-96] ```ts // Tell the user whether they did a single, double, triple, or nth click. button.addEventListener('click', { handleEvent(e): { let prefix; switch (e.detail) { case 1: prefix = 'single'; break; case 2: prefix = 'double'; break; case 3: prefix = 'triple'; break; default: prefix = e.detail + 'th'; break; } console.log('That was a ' + prefix + 'click'); } }); // But skip the first click! button.parent.addEventListener('click', function blockClickOnce(e) { e.stopImmediatePropagation(); button.parent.removeEventListener('click', blockClickOnce, true); }, { capture: true, }); ``` ##### Inherited from [#inherited-from-148] `Sprite.addEventListener` #### Call Signature [#call-signature-1] > **addEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1095 ##### Parameters [#parameters-34] ###### type [#type-3] `string` ###### listener [#listener-1] `EventListenerOrEventListenerObject` ###### options? [#options-1] `AddListenerOptions` ##### Returns [#returns-74] `void` ##### Inherited from [#inherited-from-149] `Sprite.addEventListener` *** ### addListener() [#addlistener] > **addListener**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:45 #### Type Parameters [#type-parameters-4] ##### T [#t] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-35] ##### event [#event] `T` ##### fn [#fn] (...`args`) => `void` ##### context? [#context] `any` #### Returns [#returns-75] `this` #### Inherited from [#inherited-from-150] `Sprite.addListener` *** ### collectRenderables() [#collectrenderables] > **collectRenderables**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:21 **`Internal`** Collects all renderables from the container and its children, adding them to the instruction set. This method decides whether to use a simple or advanced collection method based on the container's properties. #### Parameters [#parameters-36] ##### instructionSet [#instructionset] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-1] `RenderLayer` The current render layer being processed. #### Returns [#returns-76] `void` #### Inherited from [#inherited-from-151] `Sprite.collectRenderables` *** ### collectRenderablesSimple() [#collectrenderablessimple] > **collectRenderablesSimple**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:119 **`Internal`** Collects renderables for the view container. #### Parameters [#parameters-37] ##### instructionSet [#instructionset-1] `InstructionSet` The instruction set to collect renderables for. ##### renderer [#renderer-1] `Renderer` The renderer to collect renderables for. ##### currentLayer [#currentlayer-2] `RenderLayer` The current render layer. #### Returns [#returns-77] `void` #### Inherited from [#inherited-from-152] `Sprite.collectRenderablesSimple` *** ### collectRenderablesWithEffects() [#collectrenderableswitheffects] > **collectRenderablesWithEffects**(`instructionSet`, `renderer`, `currentLayer`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.d.ts:39 **`Internal`** Collects renderables using an advanced method, suitable for containers with complex processing needs. This method handles additional effects and transformations that may be applied to the renderables. #### Parameters [#parameters-38] ##### instructionSet [#instructionset-2] `InstructionSet` The set of instructions to which the renderables will be added. ##### renderer [#renderer-2] `Renderer` The renderer responsible for rendering the scene. ##### currentLayer [#currentlayer-3] `RenderLayer` The current render layer being processed. #### Returns [#returns-78] `void` #### Inherited from [#inherited-from-153] `Sprite.collectRenderablesWithEffects` *** ### containsPoint() [#containspoint] > **containsPoint**(`point`): `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:104 Checks if the object contains the given point in local coordinates. Uses the view's bounds for hit testing. #### Parameters [#parameters-39] ##### point [#point] `PointData` The point to check in local coordinates #### Returns [#returns-79] `boolean` True if the point is within the view's bounds #### Example [#example-97] ```ts // Basic point check const localPoint = { x: 50, y: 25 }; const contains = view.containsPoint(localPoint); console.log('Point is inside:', contains); ``` #### See [#see-27] * ViewContainer#bounds For the bounds used in hit testing * [Container#toLocal](#tolocal) For converting global coordinates to local #### Inherited from [#inherited-from-154] `Sprite.containsPoint` *** ### destroy() [#destroy] > **destroy**(`options?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:222 Destroys this sprite renderable and optionally its texture. #### Parameters [#parameters-40] ##### options? [#options-2] `DestroyOptions` Options parameter. A boolean will act as if all options have been set to that value #### Returns [#returns-80] `void` #### Example [#example-98] ```ts sprite.destroy(); sprite.destroy(true); sprite.destroy({ texture: true, textureSource: true }); ``` #### Inherited from [#inherited-from-155] `Sprite.destroy` *** ### disableRenderGroup() [#disablerendergroup] > **disableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:906 This will disable the render group for this container. #### Returns [#returns-81] `void` #### Advanced [#advanced-9] #### Inherited from [#inherited-from-156] `Sprite.disableRenderGroup` *** ### dispatchEvent() [#dispatchevent] > **dispatchEvent**(`e`): `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1116 Dispatch the event on this Container using the event's EventBoundary. The target of the event is set to `this` and the `defaultPrevented` flag is cleared before dispatch. #### Parameters [#parameters-41] ##### e [#e] `FederatedEvent` The event to dispatch. #### Returns [#returns-82] `boolean` Whether the FederatedEvent.preventDefault preventDefault() method was not invoked. #### Example [#example-99] ```ts // Reuse a click event! button.dispatchEvent(clickEvent); ``` #### Inherited from [#inherited-from-157] `Sprite.dispatchEvent` *** ### emit() [#emit] > **emit**\<`T`>(`event`, ...`args`): `boolean` Defined in: node_modules/eventemitter3/index.d.ts:32 Calls each of the listeners registered for a given event. #### Type Parameters [#type-parameters-5] ##### T [#t-1] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-42] ##### event [#event-1] `T` ##### args [#args] ...`ArgumentMap`\<`ContainerEvents`\<`ContainerChild`> & `AnyEvent`>\[`Extract`\<`T`, keyof ContainerEvents\ | keyof AnyEvent>] #### Returns [#returns-83] `boolean` #### Inherited from [#inherited-from-158] `Sprite.emit` *** ### enableRenderGroup() [#enablerendergroup] > **enableRenderGroup**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:901 Calling this enables a render group for this container. This means it will be rendered as a separate set of instructions. The transform of the container will also be handled on the GPU rather than the CPU. #### Returns [#returns-84] `void` #### Advanced [#advanced-10] #### Inherited from [#inherited-from-159] `Sprite.enableRenderGroup` *** ### eventNames() [#eventnames] > **eventNames**(): (keyof ContainerEvents\ | keyof AnyEvent)\[] Defined in: node_modules/eventemitter3/index.d.ts:15 Return an array listing the events for which the emitter has registered listeners. #### Returns [#returns-85] (keyof ContainerEvents\ | keyof AnyEvent)\[] #### Inherited from [#inherited-from-160] `Sprite.eventNames` *** ### getBounds() [#getbounds] > **getBounds**(`skipUpdate?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:88 Calculates and returns the (world) bounds of the display object as a Rectangle. Takes into account transforms and child bounds. #### Parameters [#parameters-43] ##### skipUpdate? [#skipupdate] `boolean` Setting to `true` will stop the transforms of the scene graph from being updated. This means the calculation returned MAY be out of date BUT will give you a nice performance boost. ##### bounds? [#bounds-2] `Bounds` Optional bounds to store the result of the bounds calculation #### Returns [#returns-86] `Bounds` The minimum axis-aligned rectangle in world space that fits around this object #### Example [#example-100] ```ts // Basic bounds calculation const bounds = sprite.getBounds(); console.log(`World bounds: ${bounds.x}, ${bounds.y}, ${bounds.width}, ${bounds.height}`); // Reuse bounds object for performance const recycleBounds = new Bounds(); sprite.getBounds(false, recycleBounds); // Skip update for performance const fastBounds = sprite.getBounds(true); ``` #### Remarks [#remarks-7] * Includes transform calculations * Updates scene graph by default * Can reuse bounds objects * Common in hit testing #### See [#see-28] * [Container#getLocalBounds](#getlocalbounds) For untransformed bounds * Bounds For bounds properties #### Inherited from [#inherited-from-161] `Sprite.getBounds` *** ### getChildAt() [#getchildat] > **getChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:85 Returns the child at the specified index. #### Type Parameters [#type-parameters-6] ##### U [#u-2] `U` *extends* `ContainerChild` #### Parameters [#parameters-44] ##### index [#index-1] `number` The index to get the child from #### Returns [#returns-87] `U` The child at the given index #### Example [#example-101] ```ts // Get first child const first = container.getChildAt(0); // Type-safe access const sprite = container.getChildAt(1); // With error handling try { const child = container.getChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-1] If index is out of bounds #### See [#see-29] * Container#children For direct array access * Container#getChildByLabel For name-based lookup #### Inherited from [#inherited-from-162] `Sprite.getChildAt` *** ### getChildByLabel() [#getchildbylabel] > **getChildByLabel**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:53 Returns the first child in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-45] ##### label [#label-1] `string` | `RegExp` Instance label to search for ##### deep? [#deep] `boolean` Whether to search recursively through children #### Returns [#returns-88] `Container`\<`ContainerChild`> | `null` The first child with the specified label, or null if none found #### Example [#example-102] ```ts // Basic label search const child = container.getChildByLabel('player'); // Search with regular expression const enemy = container.getChildByLabel(/enemy-\d+/); // Deep search through children const deepChild = container.getChildByLabel('powerup', true); ``` #### See [#see-30] * Container#getChildrenByLabel For finding all matches * [Container#label](#label) For setting labels #### Inherited from [#inherited-from-163] `Sprite.getChildByLabel` *** ### ~~getChildByName()~~ [#getchildbyname] > **getChildByName**(`label`, `deep?`): `Container`\<`ContainerChild`> | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:32 #### Parameters [#parameters-46] ##### label [#label-2] `string` | `RegExp` Instance name. ##### deep? [#deep-1] `boolean` Whether to search recursively #### Returns [#returns-89] `Container`\<`ContainerChild`> | `null` The child with the specified name. #### Deprecated [#deprecated-2] since 8.0.0 #### See [#see-31] Container#getChildByLabel #### Inherited from [#inherited-from-164] `Sprite.getChildByName` *** ### getChildIndex() [#getchildindex] > **getChildIndex**(`child`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:130 Returns the index position of a child Container instance. #### Parameters [#parameters-47] ##### child [#child-1] `ContainerChild` The Container instance to identify #### Returns [#returns-90] `number` The index position of the child container #### Example [#example-103] ```ts // Basic index lookup const index = container.getChildIndex(sprite); console.log(`Sprite is at index ${index}`); // With error handling try { const index = container.getChildIndex(sprite); } catch (e) { console.warn('Child not found in container'); } ``` #### Throws [#throws-2] If child is not in this container #### See [#see-32] * Container#setChildIndex For changing index * Container#children For direct array access #### Inherited from [#inherited-from-165] `Sprite.getChildIndex` *** ### getChildrenByLabel() [#getchildrenbylabel] > **getChildrenByLabel**(`label`, `deep?`, `out?`): `Container`\<`ContainerChild`>\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:74 Returns all children in the container with the specified label. Recursive searches are done in a pre-order traversal. #### Parameters [#parameters-48] ##### label [#label-3] `string` | `RegExp` Instance label to search for ##### deep? [#deep-2] `boolean` Whether to search recursively through children ##### out? [#out] `Container`\<`ContainerChild`>\[] Optional array to store matching children in #### Returns [#returns-91] `Container`\<`ContainerChild`>\[] An array of children with the specified label #### Example [#example-104] ```ts // Basic label search const enemies = container.getChildrenByLabel('enemy'); // Search with regular expression const powerups = container.getChildrenByLabel(/powerup-\d+/); // Deep search with collection const buttons = []; container.getChildrenByLabel('button', true, buttons); ``` #### See [#see-33] * Container#getChildByLabel For finding first match * [Container#label](#label) For setting labels #### Inherited from [#inherited-from-166] `Sprite.getChildrenByLabel` *** ### getFastGlobalBounds() [#getfastglobalbounds] > **getFastGlobalBounds**(`factorRenderLayers?`, `bounds?`): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.d.ts:23 Computes an approximate global bounding box for the container and its children. This method is optimized for speed by using axis-aligned bounding boxes (AABBs), and uses the last render results from when it updated the transforms. This function does not update them. which may result in slightly larger bounds but never smaller than the actual bounds. for accurate (but less performant) results use `container.getGlobalBounds` #### Parameters [#parameters-49] ##### factorRenderLayers? [#factorrenderlayers-1] `boolean` A flag indicating whether to consider render layers in the calculation. ##### bounds? [#bounds-3] `Bounds` The output bounds object to store the result. If not provided, a new one is created. #### Returns [#returns-92] `Bounds` The computed bounds. #### Advanced [#advanced-11] #### Inherited from [#inherited-from-167] `Sprite.getFastGlobalBounds` *** ### getGlobalAlpha() [#getglobalalpha] > **getGlobalAlpha**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:35 Returns the global (compound) alpha of the container within the scene. #### Parameters [#parameters-50] ##### skipUpdate? [#skipupdate-1] `boolean` Performance optimization flag: * If false (default): Recalculates the entire alpha chain through parents for accuracy * If true: Uses cached worldAlpha from the last render pass for better performance #### Returns [#returns-93] `number` The resulting alpha value (between 0 and 1) #### Example [#example-105] ```ts // Accurate but slower - recalculates entire alpha chain const preciseAlpha = container.getGlobalAlpha(); // Faster but may be outdated - uses cached alpha const cachedAlpha = container.getGlobalAlpha(true); ``` #### Inherited from [#inherited-from-168] `Sprite.getGlobalAlpha` *** ### getGlobalPosition() [#getglobalposition] > **getGlobalPosition**(`point?`, `skipUpdate?`): `Point` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:36 Returns the global position of the container, taking into account the container hierarchy. #### Parameters [#parameters-51] ##### point? [#point-1] `Point` The optional point to write the global value to ##### skipUpdate? [#skipupdate-2] `boolean` Should we skip the update transform #### Returns [#returns-94] `Point` The updated point #### Example [#example-106] ```ts // Basic position check const globalPos = sprite.getGlobalPosition(); console.log(`Global: (${globalPos.x}, ${globalPos.y})`); // Reuse point object const point = new Point(); sprite.getGlobalPosition(point); // Skip transform update for performance const fastPos = container.getGlobalPosition(undefined, true); ``` #### See [#see-34] * [Container#toGlobal](#toglobal) For converting specific points * [Container#toLocal](#tolocal) For converting to local space #### Inherited from [#inherited-from-169] `Sprite.getGlobalPosition` *** ### getGlobalTint() [#getglobaltint] > **getGlobalTint**(`skipUpdate?`): `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:72 Returns the global (compound) tint color of the container within the scene. #### Parameters [#parameters-52] ##### skipUpdate? [#skipupdate-3] `boolean` Performance optimization flag: * If false (default): Recalculates the entire tint chain through parents for accuracy * If true: Uses cached worldColor from the last render pass for better performance #### Returns [#returns-95] `number` The resulting tint color as a 24-bit RGB number (0xRRGGBB) #### Example [#example-107] ```ts // Accurate but slower - recalculates entire tint chain const preciseTint = container.getGlobalTint(); // Faster but may be outdated - uses cached tint const cachedTint = container.getGlobalTint(true); ``` #### Inherited from [#inherited-from-170] `Sprite.getGlobalTint` *** ### getGlobalTransform() [#getglobaltransform] > **getGlobalTransform**(`matrix?`, `skipUpdate?`): `Matrix` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.d.ts:56 Returns the global transform matrix of the container within the scene. #### Parameters [#parameters-53] ##### matrix? [#matrix] `Matrix` Optional matrix to store the result. If not provided, a new Matrix will be created. ##### skipUpdate? [#skipupdate-4] `boolean` Performance optimization flag: * If false (default): Recalculates the entire transform chain for accuracy * If true: Uses cached worldTransform from the last render pass for better performance #### Returns [#returns-96] `Matrix` The resulting transformation matrix (either the input matrix or a new one) #### Example [#example-108] ```ts // Accurate but slower - recalculates entire transform chain const preciseTransform = container.getGlobalTransform(); // Faster but may be outdated - uses cached transform const cachedTransform = container.getGlobalTransform(undefined, true); // Reuse existing matrix const existingMatrix = new Matrix(); container.getGlobalTransform(existingMatrix); ``` #### Inherited from [#inherited-from-171] `Sprite.getGlobalTransform` *** ### getLocalBounds() [#getlocalbounds] > **getLocalBounds**(): `Bounds` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:58 Retrieves the local bounds of the container as a Bounds object. Uses cached values when possible for better performance. #### Returns [#returns-97] `Bounds` The bounding area #### Example [#example-109] ```ts // Basic bounds check const bounds = container.getLocalBounds(); console.log(`Width: ${bounds.width}, Height: ${bounds.height}`); // subsequent calls will reuse the cached bounds const cachedBounds = container.getLocalBounds(); console.log(bounds === cachedBounds); // true ``` #### See [#see-35] * [Container#getBounds](#getbounds) For world space bounds * Bounds For bounds properties #### Inherited from [#inherited-from-172] `Sprite.getLocalBounds` *** ### getSize() [#getsize] > **getSize**(`out?`): `Size` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:322 Retrieves the size of the Sprite as a \[Size]Size object based on the texture dimensions and scale. This is faster than getting width and height separately as it only calculates the bounds once. #### Parameters [#parameters-54] ##### out? [#out-1] `Size` Optional object to store the size in, to avoid allocating a new object #### Returns [#returns-98] `Size` The size of the Sprite #### Example [#example-110] ```ts // Basic size retrieval const sprite = new Sprite(Texture.from('sprite.png')); const size = sprite.getSize(); console.log(`Size: ${size.width}x${size.height}`); // Reuse existing size object const reuseSize = { width: 0, height: 0 }; sprite.getSize(reuseSize); ``` #### See [#see-36] * Sprite#width For getting just the width * Sprite#height For getting just the height * Sprite#setSize For setting both width and height #### Inherited from [#inherited-from-173] `Sprite.getSize` *** ### listenerCount() [#listenercount] > **listenerCount**(`event`): `number` Defined in: node_modules/eventemitter3/index.d.ts:27 Return the number of listeners listening to a given event. #### Parameters [#parameters-55] ##### event [#event-2] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-99] `number` #### Inherited from [#inherited-from-174] `Sprite.listenerCount` *** ### listeners() [#listeners] > **listeners**\<`T`>(`event`): ((...`args`) => `void`)\[] Defined in: node_modules/eventemitter3/index.d.ts:20 Return the listeners registered for a given event. #### Type Parameters [#type-parameters-7] ##### T [#t-2] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-56] ##### event [#event-3] `T` #### Returns [#returns-100] ((...`args`) => `void`)\[] #### Inherited from [#inherited-from-175] `Sprite.listeners` *** ### load() [#load] > **load**(): `Promise`\<`void`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:760 Load the image from the link and set the texture of the sprite. #### Returns [#returns-101] `Promise`\<`void`> A promise that resolves when the image is loaded. *** ### off() [#off] > **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:69 #### Type Parameters [#type-parameters-8] ##### T [#t-3] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-57] ##### event [#event-4] `T` ##### fn? [#fn-1] (...`args`) => `void` ##### context? [#context-1] `any` ##### once? [#once] `boolean` #### Returns [#returns-102] `this` #### Inherited from [#inherited-from-176] `Sprite.off` *** ### on() [#on] > **on**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:662 Add a listener for a given event. #### Type Parameters [#type-parameters-9] ##### T [#t-4] `T` *extends* `symbol` | `object` & `string` | keyof ContainerEvents\ #### Parameters [#parameters-58] ##### event [#event-5] `T` ##### fn [#fn-2] (...`args`) => `void` ##### context? [#context-2] `any` #### Returns [#returns-103] `this` #### Inherited from [#inherited-from-177] `Sprite.on` *** ### once() [#once-1] > **once**\<`T`>(`event`, `fn`, `context?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:54 Add a one-time listener for a given event. #### Type Parameters [#type-parameters-10] ##### T [#t-5] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-59] ##### event [#event-6] `T` ##### fn [#fn-3] (...`args`) => `void` ##### context? [#context-3] `any` #### Returns [#returns-104] `this` #### Inherited from [#inherited-from-178] `Sprite.once` *** ### reloadPosition() [#reloadposition] > `protected` **reloadPosition**(): `void` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:701 #### Returns [#returns-105] `void` #### Inherited from [#inherited-from-179] `Sprite.reloadPosition` *** ### removeAllListeners() [#removealllisteners] > **removeAllListeners**(`event?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:79 Remove all listeners, or those of the specified event. #### Parameters [#parameters-60] ##### event? [#event-7] keyof ContainerEvents\ | keyof AnyEvent #### Returns [#returns-106] `this` #### Inherited from [#inherited-from-180] `Sprite.removeAllListeners` *** ### removeChild() [#removechild] > **removeChild**\<`U`>(...`children`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:885 Removes one or more children from the container. When removing multiple children, events will be triggered for each child in sequence. #### Type Parameters [#type-parameters-11] ##### U [#u-3] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-61] ##### children [#children-2] ...`U` The Container(s) to remove #### Returns [#returns-107] `U`\[`0`] The first child that was removed #### Example [#example-111] ```ts // Remove a single child const removed = container.removeChild(sprite); // Remove multiple children const bg = container.removeChild(background, player, userInterface); // Remove with type checking const sprite = container.removeChild(childSprite); sprite.texture = newTexture; ``` #### See [#see-37] * Container#addChild For adding children * Container#removeChildren For removing multiple children #### Inherited from [#inherited-from-181] `Sprite.removeChild` *** ### removeChildAt() [#removechildat] > **removeChildAt**\<`U`>(`index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:61 Removes a child from the specified index position. #### Type Parameters [#type-parameters-12] ##### U [#u-4] `U` *extends* `ContainerChild` #### Parameters [#parameters-62] ##### index [#index-2] `number` The index to remove the child from #### Returns [#returns-108] `U` The child that was removed #### Example [#example-112] ```ts // Remove first child const removed = container.removeChildAt(0); // type safe access const sprite = container.removeChildAt(1); // With error handling try { const child = container.removeChildAt(10); } catch (e) { console.warn('Index out of bounds'); } ``` #### Throws [#throws-3] If index is out of bounds #### See [#see-38] * Container#removeChild For removing specific children * Container#removeChildren For removing multiple children #### Inherited from [#inherited-from-182] `Sprite.removeChildAt` *** ### removeChildren() [#removechildren] > **removeChildren**(`beginIndex?`, `endIndex?`): `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:37 Removes all children from this container that are within the begin and end indexes. #### Parameters [#parameters-63] ##### beginIndex? [#beginindex] `number` The beginning position ##### endIndex? [#endindex] `number` The ending position. Default is container size #### Returns [#returns-109] `ContainerChild`\[] List of removed children #### Example [#example-113] ```ts // Remove all children container.removeChildren(); // Remove first 3 children const removed = container.removeChildren(0, 3); console.log('Removed:', removed.length); // 3 // Remove children from index 2 onwards container.removeChildren(2); // Remove specific range const middle = container.removeChildren(1, 4); ``` #### Throws [#throws-4] If begin/end indexes are invalid #### See [#see-39] * Container#addChild For adding children * Container#removeChild For removing specific children #### Inherited from [#inherited-from-183] `Sprite.removeChildren` *** ### removeEventListener() [#removeeventlistener] #### Call Signature [#call-signature-2] > **removeEventListener**\<`K`>(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1104 Unlike `off` or `removeListener` which are methods from EventEmitter, `removeEventListener` seeks to be compatible with the DOM's `removeEventListener` with support for options. ##### Type Parameters [#type-parameters-13] ###### K [#k-1] `K` *extends* keyof FederatedEventMap | keyof GlobalFederatedEventMap ##### Parameters [#parameters-64] ###### type [#type-4] `K` The type of event the listener is bound to. ###### listener [#listener-2] (`e`) => `any` The listener callback or object. ###### options? [#options-3] `RemoveListenerOptions` The original listener options. This is required to deregister a capture phase listener. ##### Returns [#returns-110] `void` ##### Inherited from [#inherited-from-184] `Sprite.removeEventListener` #### Call Signature [#call-signature-3] > **removeEventListener**(`type`, `listener`, `options?`): `void` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1105 ##### Parameters [#parameters-65] ###### type [#type-5] `string` ###### listener [#listener-3] `EventListenerOrEventListenerObject` ###### options? [#options-4] `RemoveListenerOptions` ##### Returns [#returns-111] `void` ##### Inherited from [#inherited-from-185] `Sprite.removeEventListener` *** ### removeFromParent() [#removefromparent] > **removeFromParent**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:203 Remove the Container from its parent Container. If the Container has no parent, do nothing. #### Returns [#returns-112] `void` #### Example [#example-114] ```ts // Basic removal sprite.removeFromParent(); // With validation if (sprite.parent) { sprite.removeFromParent(); } ``` #### See [#see-40] * Container#addChild For adding to a new parent * Container#removeChild For parent removing children #### Inherited from [#inherited-from-186] `Sprite.removeFromParent` *** ### removeListener() [#removelistener] > **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this` Defined in: node_modules/eventemitter3/index.d.ts:63 Remove the listeners of a given event. #### Type Parameters [#type-parameters-14] ##### T [#t-6] `T` *extends* keyof ContainerEvents\ | keyof AnyEvent #### Parameters [#parameters-66] ##### event [#event-8] `T` ##### fn? [#fn-4] (...`args`) => `void` ##### context? [#context-4] `any` ##### once? [#once-2] `boolean` #### Returns [#returns-113] `this` #### Inherited from [#inherited-from-187] `Sprite.removeListener` *** ### reparentChild() [#reparentchild] > **reparentChild**\<`U`>(...`child`): `U`\[`0`] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:224 Reparent a child or multiple children to this container while preserving their world transform. This ensures that the visual position and rotation of the children remain the same even when changing parents. #### Type Parameters [#type-parameters-15] ##### U [#u-5] `U` *extends* `ContainerChild`\[] #### Parameters [#parameters-67] ##### child [#child-2] ...`U` The child or children to reparent #### Returns [#returns-114] `U`\[`0`] The first child that was reparented #### Example [#example-115] ```ts // Basic reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent, keeping visual position newContainer.reparentChild(sprite); // Reparent multiple children const batch = [sprite1, sprite2, sprite3]; newContainer.reparentChild(...batch); ``` #### See [#see-41] * Container#reparentChildAt For index-specific reparenting * Container#addChild For simple parenting #### Inherited from [#inherited-from-188] `Sprite.reparentChild` *** ### reparentChildAt() [#reparentchildat] > **reparentChildAt**\<`U`>(`child`, `index`): `U` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:243 Reparent the child to this container at the specified index while preserving its world transform. This ensures that the visual position and rotation of the child remain the same even when changing parents. #### Type Parameters [#type-parameters-16] ##### U [#u-6] `U` *extends* `ContainerChild` #### Parameters [#parameters-68] ##### child [#child-3] `U` The child to reparent ##### index [#index-3] `number` The index to reparent the child to #### Returns [#returns-115] `U` The reparented child #### Example [#example-116] ```ts // Basic index-specific reparenting const sprite = new Sprite(texture); oldContainer.addChild(sprite); // Move to new parent at index 0 (front) newContainer.reparentChildAt(sprite, 0); ``` #### Throws [#throws-5] If index is out of bounds #### See [#see-42] * Container#reparentChild For appending reparented children * Container#addChildAt For simple indexed parenting #### Inherited from [#inherited-from-189] `Sprite.reparentChildAt` *** ### replaceChild() [#replacechild] > **replaceChild**\<`U`, `T`>(`oldChild`, `newChild`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:249 Replace a child in the container with a new child. Copying the local transform from the old child to the new one. #### Type Parameters [#type-parameters-17] ##### U [#u-7] `U` *extends* `ContainerChild` ##### T [#t-7] `T` *extends* `ContainerChild` #### Parameters [#parameters-69] ##### oldChild [#oldchild] `U` The child to replace. ##### newChild [#newchild] `T` The new child to add. #### Returns [#returns-116] `void` #### Inherited from [#inherited-from-190] `Sprite.replaceChild` *** ### setChildIndex() [#setchildindex] > **setChildIndex**(`child`, `index`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:108 Changes the position of an existing child in the container. #### Parameters [#parameters-70] ##### child [#child-4] `ContainerChild` The child Container instance to reposition ##### index [#index-4] `number` The resulting index number for the child #### Returns [#returns-117] `void` #### Example [#example-117] ```ts // Basic index change container.setChildIndex(sprite, 0); // Move to front container.setChildIndex(sprite, container.children.length - 1); // Move to back // With error handling try { container.setChildIndex(sprite, 5); } catch (e) { console.warn('Invalid index or child not found'); } ``` #### Throws [#throws-6] If index is out of bounds #### Throws [#throws-7] If child is not in container #### See [#see-43] * Container#getChildIndex For getting current index * Container#swapChildren For swapping positions #### Inherited from [#inherited-from-191] `Sprite.setChildIndex` *** ### setFromMatrix() [#setfrommatrix] > **setFromMatrix**(`matrix`): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1223 Updates the local transform properties by decomposing the given matrix. Extracts position, scale, rotation, and skew from a transformation matrix. #### Parameters [#parameters-71] ##### matrix [#matrix-1] `Matrix` The matrix to use for updating the transform #### Returns [#returns-118] `void` #### Example [#example-118] ```ts // Basic matrix transform const matrix = new Matrix() .translate(100, 100) .rotate(Math.PI / 4) .scale(2, 2); container.setFromMatrix(matrix); // Copy transform from another container const source = new Container(); source.position.set(100, 100); source.rotation = Math.PI / 2; target.setFromMatrix(source.localTransform); // Reset transform container.setFromMatrix(Matrix.IDENTITY); ``` #### See [#see-44] * Container#updateTransform For property-based updates * Matrix#decompose For matrix decomposition details #### Inherited from [#inherited-from-192] `Sprite.setFromMatrix` *** ### setMask() [#setmask] > **setMask**(`options`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:229 Used to set mask and control mask options on a display object. Allows for more detailed control over masking behavior compared to the mask property. #### Parameters [#parameters-72] ##### options [#options-5] `Partial`\<`MaskOptionsAndMask`> Configuration options for the mask #### Returns [#returns-119] `void` #### Example [#example-119] ```ts import { Graphics, Sprite } from 'pixi.js'; // Create a circular mask const graphics = new Graphics() .beginFill(0xFF3300) .drawCircle(100, 100, 50) .endFill(); // Apply mask with options sprite.setMask({ mask: graphics, inverse: true, // Create a hole effect }); // Use the alpha channel for masking (useful for sprites with transparency) sprite.setMask({ mask: maskSprite, channel: 'alpha', }); // Clear existing mask sprite.setMask({ mask: null }); ``` #### See [#see-45] * [Container#mask](#mask) For simple masking * MaskOptionsAndMask For full options API * MaskOptions#channel For channel selection #### Inherited from [#inherited-from-193] `Sprite.setMask` *** ### setMemory() [#setmemory] > **setMemory**(`memory`): `Promise`\<`void`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:752 #### Parameters [#parameters-73] ##### memory [#memory-2] `Memory` | `SpriteMemory` #### Returns [#returns-120] `Promise`\<`void`> #### Overrides [#overrides-3] `Sprite.setMemory` *** ### setSize() [#setsize] > **setSize**(`value`, `height?`): `void` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:353 Sets the size of the Sprite to the specified width and height. This is faster than setting width and height separately as it only recalculates bounds once. #### Parameters [#parameters-74] ##### value [#value-26] `number` | `Optional`\<`Size`, `"height"`> This can be either a number or a Size object ##### height? [#height-1] `number` The height to set. Defaults to the value of `width` if not provided #### Returns [#returns-121] `void` #### Example [#example-120] ```ts // Basic size setting const sprite = new Sprite(Texture.from('sprite.png')); sprite.setSize(100, 200); // Width: 100, Height: 200 // Set uniform size sprite.setSize(100); // Sets both width and height to 100 // Set size with object sprite.setSize({ width: 200, height: 300 }); // Reset to texture size sprite.setSize( sprite.texture.orig.width, sprite.texture.orig.height ); ``` #### See [#see-46] * Sprite#width For setting width only * Sprite#height For setting height only * Sprite#texture For the source dimensions #### Inherited from [#inherited-from-194] `Sprite.setSize` *** ### swapChildren() [#swapchildren] > **swapChildren**\<`U`>(`child`, `child2`): `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.d.ts:187 Swaps the position of 2 Containers within this container. #### Type Parameters [#type-parameters-18] ##### U [#u-8] `U` *extends* `ContainerChild` #### Parameters [#parameters-75] ##### child [#child-5] `U` First container to swap ##### child2 [#child2] `U` Second container to swap #### Returns [#returns-122] `void` #### Example [#example-121] ```ts // Basic swap container.swapChildren(sprite1, sprite2); // With error handling try { container.swapChildren(sprite1, sprite2); } catch (e) { console.warn('One or both children not found in container'); } ``` #### Remarks [#remarks-8] * Updates render groups * No effect if same child * Triggers container changes * Common in z-ordering #### Throws [#throws-8] If either child is not in container #### See [#see-47] * Container#setChildIndex For direct index placement * Container#getChildIndex For getting current positions #### Inherited from [#inherited-from-195] `Sprite.swapChildren` *** ### toGlobal() [#toglobal] > **toGlobal**\<`P`>(`position`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:64 Calculates the global position of a point relative to this container. Takes into account the container hierarchy and transforms. #### Type Parameters [#type-parameters-19] ##### P [#p] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-76] ##### position [#position-1] `PointData` The local point to convert ##### point? [#point-2] `P` Optional point to store the result ##### skipUpdate? [#skipupdate-5] `boolean` Whether to skip transform updates #### Returns [#returns-123] `P` The global position #### Example [#example-122] ```ts // Basic point conversion const localPoint = { x: 10, y: 20 }; const globalPoint = container.toGlobal(localPoint); // With point reuse const reusePoint = new Point(); container.toGlobal(localPoint, reusePoint); // Performance optimization const fastPoint = container.toGlobal( { x: 50, y: 50 }, undefined, true // Skip transform update ); ``` #### See [#see-48] * [Container#toLocal](#tolocal) For reverse conversion * [Container#getGlobalPosition](#getglobalposition) For container position #### Inherited from [#inherited-from-196] `Sprite.toGlobal` *** ### toLocal() [#tolocal] > **toLocal**\<`P`>(`position`, `from?`, `point?`, `skipUpdate?`): `P` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.d.ts:100 Calculates the local position of the container relative to another point. Converts coordinates from any coordinate space to this container's local coordinate space. #### Type Parameters [#type-parameters-20] ##### P [#p-1] `P` *extends* `PointData` = `Point` #### Parameters [#parameters-77] ##### position [#position-2] `PointData` The world origin to calculate from ##### from? [#from] `Container`\<`ContainerChild`> The Container to calculate the global position from ##### point? [#point-3] `P` A Point object in which to store the value ##### skipUpdate? [#skipupdate-6] `boolean` Should we skip the update transform #### Returns [#returns-124] `P` A point object representing the position in local space #### Example [#example-123] ```ts // Basic coordinate conversion const worldPoint = { x: 100, y: 100 }; const localPos = container.toLocal(worldPoint); // Convert from another container const fromSprite = new Sprite(texture); fromSprite.position.set(50, 50); const pointInSprite = { x: 10, y: 10 }; const localPoint = container.toLocal(pointInSprite, fromSprite); // With point reuse for performance const reusePoint = new Point(); container.toLocal(worldPoint, undefined, reusePoint); // Skip transform update for static objects const fastLocal = container.toLocal( worldPoint, undefined, undefined, true ); ``` #### See [#see-49] * [Container#toGlobal](#toglobal) For reverse conversion * [Container#getGlobalPosition](#getglobalposition) For container position #### Inherited from [#inherited-from-197] `Sprite.toLocal` *** ### unload() [#unload] > **unload**(): `void` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:110 Unloads the GPU data from the view. #### Returns [#returns-125] `void` #### Inherited from [#inherited-from-198] `Sprite.unload` *** ### updateLocalTransform() [#updatelocaltransform] > **updateLocalTransform**(): `void` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1225 Updates the local transform. #### Returns [#returns-126] `void` #### Inherited from [#inherited-from-199] `Sprite.updateLocalTransform` *** ### updateTransform() [#updatetransform] > **updateTransform**(`opts`): `this` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:1195 Updates the transform properties of the container. Allows partial updates of transform properties for optimized manipulation. #### Parameters [#parameters-78] ##### opts [#opts] `Partial`\<`UpdateTransformOptions`> Transform options to update #### Returns [#returns-127] `this` This container, for chaining #### Example [#example-124] ```ts // Basic transform update container.updateTransform({ x: 100, y: 200, rotation: Math.PI / 4 }); // Scale and rotate around center sprite.updateTransform({ pivotX: sprite.width / 2, pivotY: sprite.height / 2, scaleX: 2, scaleY: 2, rotation: Math.PI }); // Update position only button.updateTransform({ x: button.x + 10, // Move right y: button.y // Keep same y }); ``` #### See [#see-50] * Container#setFromMatrix For matrix-based transforms * Container#position For direct position access #### Inherited from [#inherited-from-200] `Sprite.updateTransform` # Interface: ImageSpriteOptions (/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:599 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `SpriteOptions` ## Extended by [#extended-by] * [`PixiVNJsonCanvasImageVideoShowProps`](/pixi-vn-json/index/interfaces/PixiVNJsonCanvasImageVideoShowProps) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `SpriteOptions.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `SpriteOptions.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `SpriteOptions.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `SpriteOptions.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `SpriteOptions.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `SpriteOptions.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `SpriteOptions.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:115 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] `SpriteOptions.align` *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * Container#visible For toggling visibility * Container#renderable For render control #### Inherited from [#inherited-from-8] `SpriteOptions.alpha` *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] `SpriteOptions.anchor` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] `SpriteOptions.angle` *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] `SpriteOptions.autoGarbageCollect` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * Container#alpha For transparency * Container#tint For color adjustments #### Inherited from [#inherited-from-12] `SpriteOptions.blendMode` *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] `SpriteOptions.boundsArea` *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] `SpriteOptions.cacheAsTexture` *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * Container#addChild For adding children * Container#removeChild For removing children #### Inherited from [#inherited-from-15] `SpriteOptions.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] `SpriteOptions.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] `SpriteOptions.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] `SpriteOptions.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`cursor`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`eventMode`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] `SpriteOptions.filters` *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] `SpriteOptions.height` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`hitArea`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-24] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactive`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-25] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactiveChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-26] `SpriteOptions.isRenderGroup` *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] `SpriteOptions.label` *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from `SpriteOptions.mask` *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`oncontextmenu`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-32] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobaltouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousedown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointercancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointertap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-51] `SpriteOptions.onRender` *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchcancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchend`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchendoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchstart`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onwheel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-63] `SpriteOptions.origin` *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * Container#addChild For adding to a parent * Container#removeChild For removing from parent #### Inherited from [#inherited-from-64] `SpriteOptions.parent` *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:145 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] `SpriteOptions.percentagePosition` *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:155 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] `SpriteOptions.percentageX` *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:165 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] `SpriteOptions.percentageY` *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-68] `SpriteOptions.pivot` *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-69] `SpriteOptions.position` *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * Container#visible For skipping transform updates * Container#alpha For transparency #### Inherited from [#inherited-from-70] `SpriteOptions.renderable` *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-71] `SpriteOptions.rotation` *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-72] `SpriteOptions.roundPixels` *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-73] `SpriteOptions.scale` *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-74] `SpriteOptions.setMask` *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-75] `SpriteOptions.skew` *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-76] `SpriteOptions.sortableChildren` *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-77] `SpriteOptions.sortDirty` *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-78] `SpriteOptions.tabIndex` *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-79] `SpriteOptions.texture` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * Container#alpha For transparency * Container#visible For visibility control #### Inherited from [#inherited-from-80] `SpriteOptions.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * Container#renderable For render-only control * Container#alpha For transparency #### Inherited from [#inherited-from-81] `SpriteOptions.visible` *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-82] `SpriteOptions.width` *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-83] `SpriteOptions.x` *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:125 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-84] `SpriteOptions.xAlign` *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-85] `SpriteOptions.y` *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:135 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] `SpriteOptions.yAlign` *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn-json/docs-entry/interfaces/ImageSprite#sortablechildren) For enabling sorting * Container#sortChildren For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-87] `SpriteOptions.zIndex` # Interface: MediaInterface (/pixi-vn-json/docs-entry/interfaces/MediaInterface) Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:3 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `Pick`\<`Player`, `"blockTime"` | `"disposed"` | `"loaded"` | `"loop"` | `"loopEnd"` | `"loopStart"` | `"mute"` | `"now"` | `"playbackRate"` | `"reverse"` | `"restart"` | `"start"` | `"stop"` | `"chain"` | `"disconnect"` | `"volume"` | `"state"`> ## Properties [#properties] ### blockTime [#blocktime] \> **blockTime**: `number` Defined in: node_modules/tone/build/esm/core/context/ToneWithContext.d.ts:57 #### Inherited from [#inherited-from] `Pick.blockTime` *** ### disposed [#disposed] \> **disposed**: `boolean` Defined in: node_modules/tone/build/esm/core/Tone.d.ts:52 #### Inherited from [#inherited-from-1] `Pick.disposed` *** ### loaded [#loaded] \> **loaded**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:189 #### Inherited from [#inherited-from-2] `Pick.loaded` *** ### loop [#loop] \> **loop**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:163 #### Inherited from [#inherited-from-3] `Pick.loop` *** ### loopEnd [#loopend] \> **loopEnd**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:149 #### Inherited from [#inherited-from-4] `Pick.loopEnd` *** ### loopStart [#loopstart] \> **loopStart**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:144 #### Inherited from [#inherited-from-5] `Pick.loopStart` *** ### mute [#mute] \> **mute**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:97 #### Inherited from [#inherited-from-6] `Pick.mute` *** ### ~~muted~~ [#muted] \> **muted**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:11 #### Deprecated [#deprecated] Use [mute](#mute) instead. *** ### paused [#paused] \> **paused**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:7 Whether the sound is currently paused. *** ### playbackRate [#playbackrate] \> **playbackRate**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:174 #### Inherited from [#inherited-from-7] `Pick.playbackRate` *** ### reverse [#reverse] \> **reverse**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:184 #### Inherited from [#inherited-from-8] `Pick.reverse` *** ### ~~speed~~ [#speed] \> **speed**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:15 #### Deprecated [#deprecated-1] Use [playbackRate](#playbackrate) instead. *** ### state [#state] \> **state**: `BasicPlaybackState` Defined in: node_modules/tone/build/esm/source/Source.d.ts:89 #### Inherited from [#inherited-from-9] `Pick.state` *** ### volume [#volume] \> **volume**: `Param`\<`"decibels"`> Defined in: node_modules/tone/build/esm/source/Source.d.ts:49 The volume of the output in decibels. #### Example [#example] ```ts const source = new Tone.PWMOscillator().toDestination(); source.volume.value = -6; ``` #### Inherited from [#inherited-from-10] `Pick.volume` ## Methods [#methods] ### chain() [#chain] \> **chain**(...`nodes`): `this` Defined in: node_modules/tone/build/esm/core/context/ToneAudioNode.d.ts:125 Connect the output of this node to the rest of the nodes in series. #### Parameters [#parameters] ##### nodes [#nodes] ...`InputNode`\[] #### Returns [#returns] `this` #### Example [#example-1] ```ts const player = new Tone.Player("https://tonejs.github.io/audio/drum-samples/handdrum-loop.mp3"); player.autostart = true; const filter = new Tone.AutoFilter(4).start(); const distortion = new Tone.Distortion(0.5); // connect the player to the filter, distortion and then to the master output player.chain(filter, distortion, Tone.Destination); ``` #### Inherited from [#inherited-from-11] `Pick.chain` *** ### disconnect() [#disconnect] \> **disconnect**(`destination?`, `outputNum?`, `inputNum?`): `this` Defined in: node_modules/tone/build/esm/core/context/ToneAudioNode.d.ts:114 disconnect the output #### Parameters [#parameters-1] ##### destination? [#destination] `InputNode` ##### outputNum? [#outputnum] `number` ##### inputNum? [#inputnum] `number` #### Returns [#returns-1] `this` #### Inherited from [#inherited-from-12] `Pick.disconnect` *** ### now() [#now] \> **now**(): `number` Defined in: node_modules/tone/build/esm/core/context/ToneWithContext.d.ts:39 Return the current time of the Context clock plus the lookAhead. #### Returns [#returns-2] `number` #### Example [#example-2] ```ts setInterval(() => { console.log(Tone.now()); }, 100); ``` #### Inherited from [#inherited-from-13] `Pick.now` *** ### restart() [#restart] \> **restart**(`time?`, `offset?`, `duration?`): `this` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:114 Stop and then restart the player from the beginning (or offset) #### Parameters [#parameters-2] ##### time? [#time] `number` When the player should start. ##### offset? [#offset] `Time` The offset from the beginning of the sample to start at. ##### duration? [#duration] `Time` How long the sample should play. If no duration is given, it will default to the full length of the sample (minus any offset) #### Returns [#returns-3] `this` #### Inherited from [#inherited-from-14] `Pick.restart` *** ### start() [#start] \> **start**(`time?`, `offset?`, `duration?`): `this` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:98 Play the buffer at the given startTime. Optionally add an offset and/or duration which will play the buffer from a position within the buffer for the given duration. #### Parameters [#parameters-3] ##### time? [#time-1] `Time` When the player should start. ##### offset? [#offset-1] `Time` The offset from the beginning of the sample to start at. ##### duration? [#duration-1] `Time` How long the sample should play. If no duration is given, it will default to the full length of the sample (minus any offset) #### Returns [#returns-4] `this` #### Inherited from [#inherited-from-15] `Pick.start` *** ### stop() [#stop] \> **stop**(`time?`): `this` Defined in: node_modules/tone/build/esm/source/Source.d.ts:125 Stop the source at the specified time. If no time is given, stop the source now. #### Parameters [#parameters-4] ##### time? [#time-2] `Time` When the source should be stopped. #### Returns [#returns-5] `this` #### Example [#example-3] ```ts const source = new Tone.Oscillator().toDestination(); source.start(); source.stop("+0.5"); // stops the source 0.5 seconds from now ``` #### Inherited from [#inherited-from-16] `Pick.stop` # Interface: MoveInOutProps (/pixi-vn-json/docs-entry/interfaces/MoveInOutProps) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1679 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `BaseTransitionProps` * `OldComponentOutProps` * [`AnimationOptions`](/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) ## Extended by [#extended-by] * [`MoveInOutTransitionProps`](/pixi-vn-json/index/interfaces/MoveInOutTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `OldComponentOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1684 The direction of the movement. #### Default [#default-3] ```ts "right" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-20] `AnimationOptions.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-21] `AnimationOptions.modifyTarget` *** ### motionBlur? [#motionblur] \> `optional` **motionBlur?**: `number` | `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1690 Adds a motion-blur trail along the movement, ramping up mid-move and back to sharp at the end. `true` uses a 40px trail; a number sets the trail length (pixels). #### Default [#default-5] ```ts false ``` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-22] `AnimationOptions.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-23] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-24] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-25] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-29] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-30] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-31] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-32] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-33] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-34] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-35] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-36] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-37] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-38] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-39] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-40] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-41] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-42] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-43] `AnimationOptions.when` # Interface: PushInOutProps (/pixi-vn-json/docs-entry/interfaces/PushInOutProps) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1699 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `BaseTransitionProps` * `OldComponentOutProps` * [`AnimationOptions`](/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) ## Extended by [#extended-by] * [`PushInOutTransitionProps`](/pixi-vn-json/index/interfaces/PushInOutTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `OldComponentOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1704 The direction of the push effect. #### Default [#default-3] ```ts "right" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-20] `AnimationOptions.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-21] `AnimationOptions.modifyTarget` *** ### motionBlur? [#motionblur] \> `optional` **motionBlur?**: `number` | `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1710 Adds a motion-blur trail along the movement, ramping up mid-move and back to sharp at the end. `true` uses a 40px trail; a number sets the trail length (pixels). #### Default [#default-5] ```ts false ``` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-22] `AnimationOptions.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-23] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-24] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-25] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-29] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-30] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-31] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-32] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-33] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-34] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-35] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-36] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-37] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-38] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-39] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-40] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-41] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-42] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-43] `AnimationOptions.when` # Interface: ShowWithDissolveTransitionProps (/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1675 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `BaseTransitionProps` * [`AnimationOptions`](/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) ## Extended by [#extended-by] * [`DissolveTransitionProps`](/pixi-vn-json/index/interfaces/DissolveTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-19] `AnimationOptions.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-21] `AnimationOptions.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-33] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-36] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-38] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-40] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] `AnimationOptions.when` # Interface: ShowWithFadeTransitionProps (/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1677 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `BaseTransitionProps` * [`AnimationOptions`](/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) ## Extended by [#extended-by] * [`FadeTransitionProps`](/pixi-vn-json/index/interfaces/FadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-19] `AnimationOptions.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-21] `AnimationOptions.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-33] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-36] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-38] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-40] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] `AnimationOptions.when` # Interface: SoundPlayOptionsWithChannel (/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel) Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:70 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `SoundPlayOptions` ## Extended by [#extended-by] * [`PixiVNJsonSoundPlayProps`](/pixi-vn-json/index/interfaces/PixiVNJsonSoundPlayProps) ## Properties [#properties] ### autostart? [#autostart] \> `optional` **autostart?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:9 #### Inherited from [#inherited-from] `SoundPlayOptions.autostart` *** ### channel? [#channel] \> `optional` **channel?**: `string` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:76 The alias of the audio channel to play the sound on. If the channel does not exist it will be created automatically. Defaults to `SoundManagerInterface.defaultChannelAlias` ("general"). *** ### delay? [#delay] \> `optional` **delay?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:64 The delay in seconds before playback starts. If specified, playback is scheduled to begin after the delay has elapsed rather than starting immediately in a paused state. #### Inherited from [#inherited-from-1] `SoundPlayOptions.delay` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:68 The offset in seconds from the start of the sound at which to begin playback. #### Inherited from [#inherited-from-2] `SoundPlayOptions.elapsed` *** ### fadeIn? [#fadein] \> `optional` **fadeIn?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:13 #### Inherited from [#inherited-from-3] `SoundPlayOptions.fadeIn` *** ### fadeOut? [#fadeout] \> `optional` **fadeOut?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:14 #### Inherited from [#inherited-from-4] `SoundPlayOptions.fadeOut` *** ### filters? [#filters] \> `optional` **filters?**: `ToneAudioNode`\<`ToneWithContextOptions`>\[] Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:48 A collection of audio filters/effects to apply to this sound. Install "tone" for the full list of available filters. #### Example [#example] ```ts import * as Tone from "tone"; const filters = [new Tone.FeedbackDelay("8n", 0.5)]; ``` #### Inherited from [#inherited-from-5] `SoundPlayOptions.filters` *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:8 #### Inherited from [#inherited-from-6] `SoundPlayOptions.loop` *** ### loopEnd? [#loopend] \> `optional` **loopEnd?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:11 #### Inherited from [#inherited-from-7] `SoundPlayOptions.loopEnd` *** ### loopStart? [#loopstart] \> `optional` **loopStart?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:10 #### Inherited from [#inherited-from-8] `SoundPlayOptions.loopStart` *** ### mute? [#mute] \> `optional` **mute?**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:10 #### Inherited from [#inherited-from-9] `SoundPlayOptions.mute` *** ### ~~muted?~~ [#muted] \> `optional` **muted?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:56 #### Deprecated [#deprecated] Use [mute](/pixi-vn-json/index/interfaces/PixiVNJsonSoundPlayProps#mute) instead. #### Inherited from [#inherited-from-10] `SoundPlayOptions.muted` *** ### playbackRate? [#playbackrate] \> `optional` **playbackRate?**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:7 #### Inherited from [#inherited-from-11] `SoundPlayOptions.playbackRate` *** ### reverse? [#reverse] \> `optional` **reverse?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:12 #### Inherited from [#inherited-from-12] `SoundPlayOptions.reverse` *** ### ~~speed?~~ [#speed] \> `optional` **speed?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:52 #### Deprecated [#deprecated-1] Use [playbackRate](/pixi-vn-json/index/interfaces/PixiVNJsonSoundPlayProps#playbackrate) instead. #### Inherited from [#inherited-from-13] `SoundPlayOptions.speed` *** ### volume? [#volume] \> `optional` **volume?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:35 The volume of this sound in the linear range \[0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player. #### Inherited from [#inherited-from-14] `SoundPlayOptions.volume` # Interface: TextOptions (/pixi-vn-json/docs-entry/interfaces/TextOptions) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:595 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `Omit`\<`CanvasTextOptions`, `"on"`> * `AdditionalPositionsExtensionProps` ## Extended by [#extended-by] * [`PixiVNJsonCanvasTextShowProps`](/pixi-vn-json/index/interfaces/PixiVNJsonCanvasTextShowProps) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] `Omit.accessible` *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] `Omit.accessibleChildren` *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] `Omit.accessibleHint` *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] `Omit.accessiblePointerEvents` *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] `Omit.accessibleText` *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] `Omit.accessibleTitle` *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] `Omit.accessibleType` *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:115 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] `AdditionalPositionsExtensionProps.align` *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * Container#visible For toggling visibility * Container#renderable For render control #### Inherited from [#inherited-from-8] `Omit.alpha` *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:136 The anchor point of the text that controls the origin point for positioning and rotation. Can be a number (same value for x/y) or a PointData object. * (0,0) is top-left * (0.5,0.5) is center * (1,1) is bottom-right ```ts // Set anchor to center const text = new Text({ text: 'Hello Pixi!', anchor: 0.5 // Same as { x: 0.5, y: 0.5 } }); // Set anchor to top-left const text2 = new Text({ text: 'Hello Pixi!', anchor: { x: 0, y: 0 } // Top-left corner }); // Set anchor to bottom-right const text3 = new Text({ text: 'Hello Pixi!', anchor: { x: 1, y: 1 } // Bottom-right corner }); ``` #### Default [#default-8] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-9] `Omit.anchor` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] `Omit.angle` *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] `Omit.autoGarbageCollect` *** ### autoGenerateMipmaps? [#autogeneratemipmaps] \> `optional` **autoGenerateMipmaps?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:62 Whether to generate mipmaps for the text texture. Improves rendering quality when the text is scaled down. #### Default [#default-9] ```ts undefined - Falls back to TextureSource.defaultOptions.autoGenerateMipmaps ``` #### Inherited from [#inherited-from-12] `Omit.autoGenerateMipmaps` *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-10] ```ts 'normal' ``` #### See [#see-1] * Container#alpha For transparency * Container#tint For color adjustments #### Inherited from [#inherited-from-13] `Omit.blendMode` *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-14] `Omit.boundsArea` *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-15] `Omit.cacheAsTexture` *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * Container#addChild For adding children * Container#removeChild For removing children #### Inherited from [#inherited-from-16] `Omit.children` *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-11] ```ts false ``` #### Inherited from [#inherited-from-17] `Omit.cullable` *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-12] ```ts true ``` #### Inherited from [#inherited-from-18] `Omit.cullableChildren` *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-19] `Omit.cullArea` *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-14] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-20] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`cursor`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-21] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`eventMode`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-22] `Omit.filters` *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-15] ```ts 0 ``` #### Inherited from [#inherited-from-23] `Omit.height` *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-24] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`hitArea`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactive`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-16] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactiveChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] `Omit.isRenderGroup` *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] `Omit.label` *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from `Omit.mask` *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-19] ```ts null ``` #### Inherited from [#inherited-from-30] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`oncontextmenu`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-22] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-33] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobaltouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousedown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointercancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointertap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-51] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-52] `Omit.onRender` *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchcancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchend`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchendoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchstart`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-51] ```ts null ``` #### Inherited from [#inherited-from-63] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onwheel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-64] `Omit.origin` *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * Container#addChild For adding to a parent * Container#removeChild For removing from parent #### Inherited from [#inherited-from-65] `Omit.parent` *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:145 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] `AdditionalPositionsExtensionProps.percentagePosition` *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:155 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] `AdditionalPositionsExtensionProps.percentageX` *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:165 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] `AdditionalPositionsExtensionProps.percentageY` *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-69] `Omit.pivot` *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-70] `Omit.position` *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-52] ```ts true ``` #### See [#see-9] * Container#visible For skipping transform updates * Container#alpha For transparency #### Inherited from [#inherited-from-71] `Omit.renderable` *** ### resolution? [#resolution] > `optional` **resolution?**: `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:175 The resolution/device pixel ratio for rendering. Higher values result in sharper text at the cost of performance. Set to null for auto-resolution based on device. #### Example [#example-61] ```ts const text = new Text({ text: 'Hello Pixi!', resolution: 2 // High DPI for sharper text }); const autoResText = new Text({ text: 'Auto Resolution', resolution: null // Use device's pixel ratio }); ``` #### Default [#default-53] ```ts null ``` #### Inherited from [#inherited-from-72] `Omit.resolution` *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-73] `Omit.rotation` *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:225 Whether to round the x/y position to whole pixels. Enabling can prevent anti-aliasing of text edges but may cause slight position shifting. #### Example [#example-63] ````ts const text = new Text({ text: 'Rounded Text', roundPixels: true // Rounds position to whole pixels }); @default false #### Inherited from `Omit.roundPixels` *** ### scale? > `optional` **scale?**: `number` \| `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ```` #### Inherited from [#inherited-from-74] `Omit.scale` *** ### setMask? [#setmask] \> `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-75] `Omit.setMask` *** ### skew? [#skew] \> `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-64] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-54] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-76] `Omit.skew` *** ### sortableChildren? [#sortablechildren] \> `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-65] ```ts container.sortableChildren = true; ``` #### Default [#default-55] ```ts false ``` #### Inherited from [#inherited-from-77] `Omit.sortableChildren` *** ### sortDirty? [#sortdirty] \> `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-56] ```ts false @internal ``` #### Inherited from [#inherited-from-78] `Omit.sortDirty` *** ### style? [#style] \> `optional` **style?**: `TextStyle` | `TextStyleOptions` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:213 The style configuration for the text. Can be a TextStyle instance or a configuration object. Supports canvas text styles, HTML text styles, and bitmap text styles. #### Example [#example-66] ````ts const text = new Text({ text: 'Styled Text', style: { fontSize: 24, fill: 0xff1010, // Red color fontFamily: 'Arial', align: 'center', // Center alignment stroke: { color: '#4a1850', width: 5 }, // Purple stroke dropShadow: { color: '#000000', // Black shadow blur: 4, // Shadow blur distance: 6 // Shadow distance } } }); const htmlText = new HTMLText({ text: 'HTML Styled Text', style: { fontSize: '20px', fill: 'blue', fontFamily: 'Verdana', } }); const bitmapText = new BitmapText({ text: 'Bitmap Styled Text', style: { fontName: 'Arial', fontSize: 32, } }) #### Inherited from `Omit.style` *** ### tabIndex? > `optional` **tabIndex?**: `number` Defined in: node\_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default ```ts 0 ```` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-79] `Omit.tabIndex` *** ### text? [#text] > `optional` **text?**: `TextString` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:157 The text content to display. Use '\n' for line breaks. Accepts strings, numbers, or objects with toString() method. #### Example [#example-68] ```ts const text = new Text({ text: 'Hello Pixi!', }); const multilineText = new Text({ text: 'Line 1\nLine 2\nLine 3', }); const numberText = new Text({ text: 12345, // Will be converted to '12345' }); const objectText = new Text({ text: { toString: () => 'Object Text' }, // Custom toString }); ``` #### Default [#default-57] ```ts '' ``` #### Inherited from [#inherited-from-80] `Omit.text` *** ### textureStyle? [#texturestyle] > `optional` **textureStyle?**: `TextureStyle` | `TextureStyleOptions` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:56 Optional texture style for the text texture. Only `scaleMode` is read (`nearest` or `linear`): the text gets a pooled texture with that scale mode. Every other field is ignored. #### Example [#example-69] ```ts const text = new Text({ text: 'Crisp Text', textureStyle: { scaleMode: 'nearest', // Pixel-perfect scaling } }); ``` #### Advanced [#advanced-3] #### Inherited from [#inherited-from-81] `Omit.textureStyle` *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-70] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * Container#alpha For transparency * Container#visible For visibility control #### Inherited from [#inherited-from-82] `Omit.tint` *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-71] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * Container#renderable For render-only control * Container#alpha For transparency #### Inherited from [#inherited-from-83] `Omit.visible` *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-72] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-84] `Omit.width` *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-73] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-85] `Omit.x` *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:125 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] `AdditionalPositionsExtensionProps.xAlign` *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-74] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-87] `Omit.y` *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:135 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-88] `AdditionalPositionsExtensionProps.yAlign` *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-75] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn-json/docs-entry/interfaces/ImageSprite#sortablechildren) For enabling sorting * Container#sortChildren For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-89] `Omit.zIndex` # Interface: ZoomInOutProps (/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps) Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1692 Documentation-only entry point. These types are used internally by the schema (e.g. `PixiVNJsonSoundPlayProps`) but are otherwise never exported from the package's public API. TypeDoc only expands the full member list of an external type when it is reachable from one of its `entryPoints`, so this file exists purely to give the generated wiki something to expand into — it is not part of `src/index.ts` and is not bundled into `dist`. ## Extends [#extends] * `BaseTransitionProps` * `OldComponentOutProps` * [`AnimationOptions`](/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) ## Extended by [#extended-by] * [`ZoomInOutTransitionProps`](/pixi-vn-json/index/interfaces/ZoomInOutTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `OldComponentOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BaseTransitionProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `AnimationOptions.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1697 The direction of the zoom effect. #### Default [#default-3] ```ts "right" ``` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-14] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-15] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-16] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-17] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-18] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-19] `AnimationOptions.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-20] `AnimationOptions.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-21] `AnimationOptions.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-22] `AnimationOptions.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-23] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-24] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-25] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-29] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-30] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-31] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-32] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-33] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-34] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-5] ```ts 100 @public ``` #### Inherited from [#inherited-from-35] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-36] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-37] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-38] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-39] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-40] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-41] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-42] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-43] `AnimationOptions.when` # Type Alias: AnimationOptions (/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) \> **AnimationOptions** = `AnimationOptionsCommon` & `Omit`\<`CommonTickerProps`, `"startOnlyIfHaveTexture"`> Defined in: node_modules/@drincs/pixi-vn/dist/motion.d.ts:18 # Type Alias: SequenceOptions (/pixi-vn-json/docs-entry/type-aliases/SequenceOptions) \> **SequenceOptions** = `SequenceOptions$1` & `Omit`\<`CommonTickerProps`, `"startOnlyIfHaveTexture"`> Defined in: node_modules/@drincs/pixi-vn/dist/motion.d.ts:22 # Pixi’VN + Json Integration (/pixi-vn-json)

npm version npm downloads per month jsDelivr hits (npm) NPM License Discord

Pixi’VN can be integrated with JSON files to create a visual novel. This method is useful for: * Add a new narrative to Pixi’VN (It was used to create the integration with **_ink_** * Create a external tool to create visual novels with Pixi’VN ( In both these cases it is advisable to notify the developers of Pixi’VN to add the new feature to be helped ) ## How use Pixi’VN + Json? [#how-use-pixivn--json] First of all you need to install the following library: npm pnpm yarn bun ```bash npm install @drincs/pixi-vn-json ``` ```bash pnpm add @drincs/pixi-vn-json ``` ```bash yarn add @drincs/pixi-vn-json ``` ```bash bun add @drincs/pixi-vn-json ``` All you need to do to use this integration is create a object using the \`PixiVNJson` Model and use the `importPixiVNJson()` function to import the object. ```ts title="labels.json" { "$schema": "https://pixi-vn.com/schemas/latest/schema.json", "labels": { "back_in_london": [ { "dialogue": "We arrived into London at 9.45pm exactly.", }, { "labelToOpen": { "label": "hurry_home", "type": "jump", }, }, ], "hurry_home": [ { "dialogue": "We hurried home to Savile Row as fast as we could.", }, { "end": "label_end", }, ] } } ``` ```ts title="main.ts" import { PixiVNJson, importPixiVNJson } from "@drincs/pixi-vn-json"; import json from "./labels.json"; importPixiVNJson(json); ``` After that you can run the `back_in_london` label with \Pixi’VN functions. ```ts title="main.ts" import { narration } from "@drincs/pixi-vn"; narration.call(`back_in_london`, {}); ``` # Class: LabelJson (/pixi-vn-json/index/classes/LabelJson) Defined in: [src/interpreter/LabelJson.ts:53](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/interpreter/LabelJson.ts#L53) A label whose steps are defined by a plain JSON structure ([PixiVNJsonLabelStep](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelStep)\[]). `LabelJson` bridges pixi-vn's label system and the JSON script format: each step is lazily converted to a StepLabelType closure that resolves dialogues, choices, operations, and conditional overrides at runtime via [JsonUnifier](/pixi-vn-json/core/classes/JsonUnifier). ## Extends [#extends] * `LabelAbstract`\<`LabelJson`\<`T`>, `T`> ## Type Parameters [#type-parameters] ### T [#t] `T` *extends* `object` = `object` The type of the props object passed between steps. ## Constructors [#constructors] ### Constructor [#constructor] \> **new LabelJson**\<`T`>(`id`, `steps`, `props?`, `options?`): `LabelJson`\<`T`> Defined in: [src/interpreter/LabelJson.ts:59](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/interpreter/LabelJson.ts#L59) #### Parameters [#parameters] ##### id [#id] `string` is the id of the label ##### steps [#steps] ([`PixiVNJsonLabelStep`](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelStep) | (() => [`PixiVNJsonLabelStep`](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelStep)))\[] is the list of steps that the label will perform ##### props? [#props] `LabelProps`\<`LabelJson`\<`T`>, `number`> is the properties of the label ##### options? [#options] `LabelJsonOptions` = `{}` #### Returns [#returns] `LabelJson`\<`T`> #### Overrides [#overrides] `LabelAbstract, T>.constructor` ## Properties [#properties] ### id [#id-1] \> `readonly` **id**: `string` Defined in: node_modules/@drincs/pixi-vn/dist/narration.d.ts:520 Get the id of the label. This variable is used in the system to get the label by id, RegisteredLabels.get #### Inherited from [#inherited-from] `LabelAbstract.id` ## Accessors [#accessors] ### onLoadingLabel [#onloadinglabel] #### Get Signature [#get-signature] \> **get** **onLoadingLabel**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: node_modules/@drincs/pixi-vn/dist/narration.d.ts:540 Is a function that will be executed in [onStepStart](#onstepstart) if the id of the step is 0 and when the user laods a save file. When you load a save file, will be executed all onLoadingLabel functions of the narration.openedLabels. It is useful for example to make sure all images used have been cached ##### Example [#example] ```ts title="content/labels/start.label.ts" newLabel("start", [], { onLoadingLabel: async (stepId, label) => { await Assets.load('path/to/image1.png') await Assets.load('path/to/image2.png') } }) ``` ##### Returns [#returns-1] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` #### Inherited from [#inherited-from-1] `LabelAbstract.onLoadingLabel` *** ### onStepEnd [#onstepend] #### Get Signature [#get-signature-1] \> **get** **onStepEnd**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: node_modules/@drincs/pixi-vn/dist/narration.d.ts:542 A function executed after each `step`. See more \here. ##### Example [#example-1] ```ts const startLabel = newLabel("start", [ async () => { await showImage("image1", "path/to/image1.png") await showImage("image2", "path/to/image2.png") } ], { onLoadingLabel: async (stepIndex, label) => { await Assets.load("path/to/image1.png") await Assets.load("path/to/image2.png") } }) ``` ##### Returns [#returns-2] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` #### Inherited from [#inherited-from-2] `LabelAbstract.onStepEnd` *** ### onStepStart [#onstepstart] #### Get Signature [#get-signature-2] \> **get** **onStepStart**(): ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` Defined in: node_modules/@drincs/pixi-vn/dist/narration.d.ts:538 A function executed before each `step`. ##### Example [#example-2] ```ts const startLabel = newLabel("start", [ () => { narration.dialogue = "Step 1" }, () => { narration.dialogue = "Step 2" } ], { onStepStart: (stepIndex, label) => { console.log(`Step ${stepIndex} started`) } }) ``` ##### Returns [#returns-3] ((`stepId`, `label`) => `void` | `Promise`\<`void`>) | `undefined` #### Inherited from [#inherited-from-3] `LabelAbstract.onStepStart` *** ### stepCount [#stepcount] #### Get Signature [#get-signature-3] \> **get** **stepCount**(): `number` Defined in: [src/interpreter/LabelJson.ts:106](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/interpreter/LabelJson.ts#L106) Get the number of steps in the label. This variable is used in the system to get the number of steps in the label. ##### Returns [#returns-4] `number` The number of steps in the label #### Overrides [#overrides-1] `LabelAbstract.stepCount` *** ### steps [#steps-1] #### Get Signature [#get-signature-4] \> **get** **steps**(): `StepLabelType`\<`T`>\[] Defined in: [src/interpreter/LabelJson.ts:101](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/interpreter/LabelJson.ts#L101) ##### Returns [#returns-5] `StepLabelType`\<`T`>\[] ## Methods [#methods] ### getStepById() [#getstepbyid] \> **getStepById**(`stepId`): `StepLabelType`\<`T`> | `undefined` Defined in: [src/interpreter/LabelJson.ts:109](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/interpreter/LabelJson.ts#L109) Get the step by id #### Parameters [#parameters-1] ##### stepId [#stepid] `number` Id of the step #### Returns [#returns-6] `StepLabelType`\<`T`> | `undefined` The step or undefined if it does not exist #### Overrides [#overrides-2] `LabelAbstract.getStepById` *** ### getStepSha() [#getstepsha] \> **getStepSha**(`index`): `string` | `undefined` Defined in: [src/interpreter/LabelJson.ts:131](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/interpreter/LabelJson.ts#L131) Returns the SHA-1 hash of the raw step at the given index. Can be used to detect step changes across label reloads. #### Parameters [#parameters-2] ##### index [#index] `number` Zero-based index of the step. #### Returns [#returns-7] `string` | `undefined` The hex SHA-1 string, or `undefined` if the index is out of range. #### Overrides [#overrides-3] `LabelAbstract.getStepSha` # Function: importPixiVNJson() (/pixi-vn-json/index/functions/importPixiVNJson) \> **importPixiVNJson**(`values`, `options?`): `Promise`\<`void`> Defined in: [src/interpreter/importer.ts:14](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/interpreter/importer.ts#L14) Import a Pixi'VN JSON to the system. This feature was created to give other developers the ability to create tools that can generate Pixi'VN labels or that generate Pixi'VN after extracting information from a programming language designed for writing narratives. ## Parameters [#parameters] ### values [#values] `string` | [`PixiVNJson`](/pixi-vn-json/index/interfaces/PixiVNJson) | (`string` | [`PixiVNJson`](/pixi-vn-json/index/interfaces/PixiVNJson))\[] The Pixi'VN JSON to be imported ### options? [#options] `LabelJsonOptions` = `{}` ## Returns [#returns] `Promise`\<`void`> # Function: init() (/pixi-vn-json/index/functions/init) \> **init**(): `void` Defined in: [src/index.ts:38](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/index.ts#L38) Initialises the pixi-vn-json system by registering all default operation handlers (canvas, sound, assets, storage, narration, etc.) into the [JsonUnifier](/pixi-vn-json/core/classes/JsonUnifier). Call this function once at application startup, before importing any JSON labels. ## Returns [#returns] `void` # index (/pixi-vn-json/index) ## Namespaces [#namespaces] * [TextReplaces](/pixi-vn-json/index/namespaces/TextReplaces) * [translator](/pixi-vn-json/index/namespaces/translator) * [VariableGetter](/pixi-vn-json/index/namespaces/VariableGetter) ## Classes [#classes] * [LabelJson](/pixi-vn-json/index/classes/LabelJson) ## Interfaces [#interfaces] * [BlurTransitionProps](/pixi-vn-json/index/interfaces/BlurTransitionProps) * [DissolveTransitionProps](/pixi-vn-json/index/interfaces/DissolveTransitionProps) * [FadeTransitionProps](/pixi-vn-json/index/interfaces/FadeTransitionProps) * [FlashTransitionProps](/pixi-vn-json/index/interfaces/FlashTransitionProps) * [GlitchTransitionProps](/pixi-vn-json/index/interfaces/GlitchTransitionProps) * [IrisTransitionProps](/pixi-vn-json/index/interfaces/IrisTransitionProps) * [MoveInOutTransitionProps](/pixi-vn-json/index/interfaces/MoveInOutTransitionProps) * [NoiseDissolveTransitionProps](/pixi-vn-json/index/interfaces/NoiseDissolveTransitionProps) * [PinchTransitionProps](/pixi-vn-json/index/interfaces/PinchTransitionProps) * [PixelateTransitionProps](/pixi-vn-json/index/interfaces/PixelateTransitionProps) * [PixiVNJson](/pixi-vn-json/index/interfaces/PixiVNJson) * [PixiVNJsonAnimateBaseOptions](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateBaseOptions) * [PixiVNJsonAnimateSequenceOptions](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions) * [PixiVNJsonArithmeticOperationsArithmetic](/pixi-vn-json/index/interfaces/PixiVNJsonArithmeticOperationsArithmetic) * [PixiVNJsonArithmeticOperationsArithmeticSingle](/pixi-vn-json/index/interfaces/PixiVNJsonArithmeticOperationsArithmeticSingle) * [PixiVNJsonCanvasImageContainerShowProps](/pixi-vn-json/index/interfaces/PixiVNJsonCanvasImageContainerShowProps) * [PixiVNJsonCanvasImageVideoShowProps](/pixi-vn-json/index/interfaces/PixiVNJsonCanvasImageVideoShowProps) * [PixiVNJsonCanvasTextShowProps](/pixi-vn-json/index/interfaces/PixiVNJsonCanvasTextShowProps) * [PixiVNJsonIfElse](/pixi-vn-json/index/interfaces/PixiVNJsonIfElse) * [PixiVNJsonSoundEditProps](/pixi-vn-json/index/interfaces/PixiVNJsonSoundEditProps) * [PixiVNJsonSoundPlayProps](/pixi-vn-json/index/interfaces/PixiVNJsonSoundPlayProps) * [PushInOutTransitionProps](/pixi-vn-json/index/interfaces/PushInOutTransitionProps) * [RippleTransitionProps](/pixi-vn-json/index/interfaces/RippleTransitionProps) * [SplitTransitionProps](/pixi-vn-json/index/interfaces/SplitTransitionProps) * [TvTransitionProps](/pixi-vn-json/index/interfaces/TvTransitionProps) * [TwistTransitionProps](/pixi-vn-json/index/interfaces/TwistTransitionProps) * [WarpTransitionProps](/pixi-vn-json/index/interfaces/WarpTransitionProps) * [WipeTransitionProps](/pixi-vn-json/index/interfaces/WipeTransitionProps) * [ZoomInOutTransitionProps](/pixi-vn-json/index/interfaces/ZoomInOutTransitionProps) ## Type Aliases [#type-aliases] * [BlurInOutTransition](/pixi-vn-json/index/type-aliases/BlurInOutTransition) * [DissolveTransition](/pixi-vn-json/index/type-aliases/DissolveTransition) * [FadeTransition](/pixi-vn-json/index/type-aliases/FadeTransition) * [FlashInOutTransition](/pixi-vn-json/index/type-aliases/FlashInOutTransition) * [GlitchInOutTransition](/pixi-vn-json/index/type-aliases/GlitchInOutTransition) * [IrisInOutTransition](/pixi-vn-json/index/type-aliases/IrisInOutTransition) * [MoveInOutTransition](/pixi-vn-json/index/type-aliases/MoveInOutTransition) * [NoiseDissolveInOutTransition](/pixi-vn-json/index/type-aliases/NoiseDissolveInOutTransition) * [PinchInOutTransition](/pixi-vn-json/index/type-aliases/PinchInOutTransition) * [PixelateInOutTransition](/pixi-vn-json/index/type-aliases/PixelateInOutTransition) * [PixiVNJsonAnimateBase](/pixi-vn-json/index/type-aliases/PixiVNJsonAnimateBase) * [PixiVNJsonAnimatedSpriteControl](/pixi-vn-json/index/type-aliases/PixiVNJsonAnimatedSpriteControl) * [PixiVNJsonAnimatedSpriteEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonAnimatedSpriteEdit) * [PixiVNJsonAnimateSequence](/pixi-vn-json/index/type-aliases/PixiVNJsonAnimateSequence) * [PixiVNJsonArithmeticOperations](/pixi-vn-json/index/type-aliases/PixiVNJsonArithmeticOperations) * [PixiVNJsonCanvas](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvas) * [PixiVNJsonCanvasAnimate](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasAnimate) * [PixiVNJsonCanvasAnimatedSpriteShow](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasAnimatedSpriteShow) * [PixiVNJsonCanvasClear](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasClear) * [PixiVNJsonCanvasEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasEdit) * [PixiVNJsonCanvasEffect](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasEffect) * [PixiVNJsonCanvasImageContainerShow](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasImageContainerShow) * [PixiVNJsonCanvasImageVideoShow](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasImageVideoShow) * [PixiVNJsonCanvasRemove](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasRemove) * [PixiVNJsonCanvasShow](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasShow) * [PixiVNJsonCanvasTextShow](/pixi-vn-json/index/type-aliases/PixiVNJsonCanvasTextShow) * [PixiVNJsonChoice](/pixi-vn-json/index/type-aliases/PixiVNJsonChoice) * [PixiVNJsonChoiceGet](/pixi-vn-json/index/type-aliases/PixiVNJsonChoiceGet) * [PixiVNJsonChoices](/pixi-vn-json/index/type-aliases/PixiVNJsonChoices) * [PixiVNJsonComparation](/pixi-vn-json/index/type-aliases/PixiVNJsonComparation) * [PixiVNJsonComparationOperatorsType](/pixi-vn-json/index/type-aliases/PixiVNJsonComparationOperatorsType) * [PixiVNJsonConditionalOperation](/pixi-vn-json/index/type-aliases/PixiVNJsonConditionalOperation) * [PixiVNJsonConditionalResultToCombine](/pixi-vn-json/index/type-aliases/PixiVNJsonConditionalResultToCombine) * [PixiVNJsonConditionalStatements](/pixi-vn-json/index/type-aliases/PixiVNJsonConditionalStatements) * [PixiVNJsonConditions](/pixi-vn-json/index/type-aliases/PixiVNJsonConditions) * [PixiVNJsonDialog](/pixi-vn-json/index/type-aliases/PixiVNJsonDialog) * [PixiVNJsonDialogText](/pixi-vn-json/index/type-aliases/PixiVNJsonDialogText) * [PixiVNJsonDialogue](/pixi-vn-json/index/type-aliases/PixiVNJsonDialogue) * [PixiVNJsonEffectBlurPulse](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectBlurPulse) * [PixiVNJsonEffectBounce](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectBounce) * [PixiVNJsonEffectChromaticAberration](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectChromaticAberration) * [PixiVNJsonEffectDesaturate](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectDesaturate) * [PixiVNJsonEffectGlitch](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectGlitch) * [PixiVNJsonEffectGlowPulse](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectGlowPulse) * [PixiVNJsonEffectHop](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectHop) * [PixiVNJsonEffectNod](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectNod) * [PixiVNJsonEffectPulse](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectPulse) * [PixiVNJsonEffectPunch](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectPunch) * [PixiVNJsonEffectRadialBlur](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectRadialBlur) * [PixiVNJsonEffectShake](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectShake) * [PixiVNJsonEffectShockwave](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectShockwave) * [PixiVNJsonEffectSway](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectSway) * [PixiVNJsonEffectVignettePulse](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectVignettePulse) * [PixiVNJsonEffectWiggle](/pixi-vn-json/index/type-aliases/PixiVNJsonEffectWiggle) * [PixiVNJsonFunction](/pixi-vn-json/index/type-aliases/PixiVNJsonFunction) * [PixiVNJsonImageContainerEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonImageContainerEdit) * [PixiVNJsonImageEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonImageEdit) * [PixiVNJsonInputRequest](/pixi-vn-json/index/type-aliases/PixiVNJsonInputRequest) * [PixiVNJsonLabelGet](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelGet) * [PixiVNJsonLabels](/pixi-vn-json/index/type-aliases/PixiVNJsonLabels) * [PixiVNJsonLabelStep](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelStep) * [PixiVNJsonLabelToOpen](/pixi-vn-json/index/type-aliases/PixiVNJsonLabelToOpen) * [PixiVNJsonLogicGet](/pixi-vn-json/index/type-aliases/PixiVNJsonLogicGet) * [PixiVNJsonMediaTransiotions](/pixi-vn-json/index/type-aliases/PixiVNJsonMediaTransiotions) * [PixiVNJsonNarration](/pixi-vn-json/index/type-aliases/PixiVNJsonNarration) * [PixiVNJsonOnlyStorageSet](/pixi-vn-json/index/type-aliases/PixiVNJsonOnlyStorageSet) * [PixiVNJsonOperation](/pixi-vn-json/index/type-aliases/PixiVNJsonOperation) * [PixiVNJsonOperationString](/pixi-vn-json/index/type-aliases/PixiVNJsonOperationString) * [PixiVNJsonParamGet](/pixi-vn-json/index/type-aliases/PixiVNJsonParamGet) * [PixiVNJsonSound](/pixi-vn-json/index/type-aliases/PixiVNJsonSound) * [PixiVNJsonSoundEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonSoundEdit) * [PixiVNJsonSoundPauseResume](/pixi-vn-json/index/type-aliases/PixiVNJsonSoundPauseResume) * [PixiVNJsonSoundPlay](/pixi-vn-json/index/type-aliases/PixiVNJsonSoundPlay) * [PixiVNJsonSoundRemove](/pixi-vn-json/index/type-aliases/PixiVNJsonSoundRemove) * [PixiVNJsonStepSwitch](/pixi-vn-json/index/type-aliases/PixiVNJsonStepSwitch) * [PixiVNJsonStepSwitchElementsType](/pixi-vn-json/index/type-aliases/PixiVNJsonStepSwitchElementsType) * [PixiVNJsonStepSwitchElementType](/pixi-vn-json/index/type-aliases/PixiVNJsonStepSwitchElementType) * [PixiVNJsonStorageGet](/pixi-vn-json/index/type-aliases/PixiVNJsonStorageGet) * [PixiVNJsonTextEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonTextEdit) * [PixiVNJsonUnionCondition](/pixi-vn-json/index/type-aliases/PixiVNJsonUnionCondition) * [PixiVNJsonUnknownEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonUnknownEdit) * [PixiVNJsonValueGet](/pixi-vn-json/index/type-aliases/PixiVNJsonValueGet) * [PixiVNJsonValueSet](/pixi-vn-json/index/type-aliases/PixiVNJsonValueSet) * [PixiVNJsonVideoEdit](/pixi-vn-json/index/type-aliases/PixiVNJsonVideoEdit) * [PixiVNJsonVideoPauseResume](/pixi-vn-json/index/type-aliases/PixiVNJsonVideoPauseResume) * [PushInOutTransition](/pixi-vn-json/index/type-aliases/PushInOutTransition) * [ReplaceHandler](/pixi-vn-json/index/type-aliases/ReplaceHandler) * [ReplaceHandlerOptions](/pixi-vn-json/index/type-aliases/ReplaceHandlerOptions) * [RippleInOutTransition](/pixi-vn-json/index/type-aliases/RippleInOutTransition) * [SplitInOutTransition](/pixi-vn-json/index/type-aliases/SplitInOutTransition) * [TvInOutTransition](/pixi-vn-json/index/type-aliases/TvInOutTransition) * [TwistInOutTransition](/pixi-vn-json/index/type-aliases/TwistInOutTransition) * [VariableGetterHandler](/pixi-vn-json/index/type-aliases/VariableGetterHandler) * [WarpInOutTransition](/pixi-vn-json/index/type-aliases/WarpInOutTransition) * [WipeInOutTransition](/pixi-vn-json/index/type-aliases/WipeInOutTransition) * [ZoomInOutTransition](/pixi-vn-json/index/type-aliases/ZoomInOutTransition) ## Variables [#variables] * [PIXIVNJSON_PARAM_ID](/pixi-vn-json/index/variables/PIXIVNJSON_PARAM_ID) * [PIXIVNJSON_SCHEMA_URL](/pixi-vn-json/index/variables/PIXIVNJSON_SCHEMA_URL) * [PixiVNJsonComparationOperators](/pixi-vn-json/index/variables/PixiVNJsonComparationOperators) ## Functions [#functions] * [importPixiVNJson](/pixi-vn-json/index/functions/importPixiVNJson) * [init](/pixi-vn-json/index/functions/init) # Interface: BlurTransitionProps (/pixi-vn-json/index/interfaces/BlurTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:178](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L178) Configuration options for the blur transition. ## Extends [#extends] * `BlurInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `BlurInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `BlurInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `BlurInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `BlurInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `BlurInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `BlurInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `BlurInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `BlurInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `BlurInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `BlurInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `BlurInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `BlurInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `BlurInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `BlurInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1825 Whether the component itself also briefly fades in (`blurIn`) or out (`blurOut`) alongside the blur, softening what would otherwise be an instant pop-in/pop-out - the fade runs at a quarter of the effect's own duration, mirrored to the start of `blurIn` or the end of `blurOut`. #### Default [#default-3] ```ts true ``` #### Inherited from [#inherited-from-14] `BlurInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] `BlurInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] `BlurInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-17] `BlurInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] `BlurInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] `BlurInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] `BlurInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-21] `BlurInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-22] `BlurInOutProps.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-23] `BlurInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-24] `BlurInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-25] `BlurInOutProps.power` *** ### quality? [#quality] \> `optional` **quality?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1818 The quality (number of blur passes) of the blur filter. Higher is smoother but slower. #### Default [#default-5] ```ts 4 ``` #### Inherited from [#inherited-from-26] `BlurInOutProps.quality` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-27] `BlurInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-31] `BlurInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `BlurInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-33] `BlurInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-34] `BlurInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-35] `BlurInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-36] `BlurInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-37] `BlurInOutProps.stiffness` *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1813 The blur strength the effect starts from (`blurIn`) or ends at (`blurOut`). #### Default [#default-7] ```ts 32 ``` #### Inherited from [#inherited-from-38] `BlurInOutProps.strength` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-39] `BlurInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-40] `BlurInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-41] `BlurInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-42] `BlurInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-43] `BlurInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-44] `BlurInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-45] `BlurInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-46] `BlurInOutProps.when` # Interface: DissolveTransitionProps (/pixi-vn-json/index/interfaces/DissolveTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:26](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L26) Configuration options for the dissolve transition. ## Extends [#extends] * [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`aliasToRemoveAfter`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#aliastoremoveafter) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-1] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`autoplay`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`bounce`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`bounceDamping`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`bounceStiffness`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`completeOnContinue`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`damping`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-7] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`delay`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`delayChildren`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-9] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`driver`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`duration`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-11] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`ease`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`elapsed`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-13] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`from`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`inherit`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-15] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`isSync`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`mass`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`max`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`min`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#min) *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-19] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`mixer`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#mixer) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-20] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`modifyTarget`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#modifytarget) *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-21] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`out`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#out) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`path`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`power`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`reduceMotion`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`restDelta`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`restSpeed`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`skipAnimations`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`staggerChildren`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`staggerDirection`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-33] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`startTime`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`stiffness`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-35] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`tickerAliasToResume`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#tickeraliastoresume) *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-36] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`tickerIdToResume`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#tickeridtoresume) *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`timeConstant`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-38] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`times`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`type`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-40] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`velocity`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`visualDuration`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`ShowWithDissolveTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps).[`when`](/pixi-vn-json/docs-entry/interfaces/ShowWithDissolveTransitionProps#when) # Interface: FadeTransitionProps (/pixi-vn-json/index/interfaces/FadeTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:45](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L45) Configuration options for the fade transition. ## Extends [#extends] * [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`aliasToRemoveAfter`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#aliastoremoveafter) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-1] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`autoplay`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`bounce`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`bounceDamping`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`bounceStiffness`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-5] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`completeOnContinue`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`damping`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-7] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`delay`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`delayChildren`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#delaychildren) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-9] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`driver`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`duration`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-11] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`ease`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`elapsed`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-13] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`from`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`inherit`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-15] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`isSync`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`mass`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`max`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`min`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#min) *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-19] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`mixer`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#mixer) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-20] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`modifyTarget`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#modifytarget) *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-21] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`out`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#out) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`path`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`power`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`reduceMotion`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`restDelta`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`restSpeed`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`skipAnimations`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`staggerChildren`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`staggerDirection`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-33] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`startTime`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`stiffness`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-35] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`tickerAliasToResume`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#tickeraliastoresume) *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-36] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`tickerIdToResume`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#tickeridtoresume) *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`timeConstant`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-38] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`times`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`type`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-40] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`velocity`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`visualDuration`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] [`ShowWithFadeTransitionProps`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps).[`when`](/pixi-vn-json/docs-entry/interfaces/ShowWithFadeTransitionProps#when) # Interface: FlashTransitionProps (/pixi-vn-json/index/interfaces/FlashTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:216](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L216) Configuration options for the flash transition. ## Extends [#extends] * `FlashInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `FlashInOutProps.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-1] `FlashInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `FlashInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `FlashInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `FlashInOutProps.bounceStiffness` *** ### color? [#color] \> `optional` **color?**: `ColorType` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1782 The overlay color. See ColorType. #### Default [#default-1] ```ts 0xffffff ``` #### Inherited from [#inherited-from-5] `FlashInOutProps.color` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-6] `FlashInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `FlashInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `FlashInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `FlashInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `FlashInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `FlashInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `FlashInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `FlashInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1806 Whether the component itself also briefly fades in (`flashIn`) or out (`flashOut`) alongside the color flash, softening what would otherwise be an instant pop-in/pop-out - the fade runs at a quarter of the flash's own duration, mirrored to the start of `flashIn`'s cycle or the end of `flashOut`'s. Ignored when `flashIn` replaces an existing component (both sides are already hidden under a solid `color` at the moment of the swap, so there's no pop to soften). #### Default [#default-4] ```ts true ``` #### Inherited from [#inherited-from-14] `FlashInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] `FlashInOutProps.from` *** ### holdDuration? [#holdduration] \> `optional` **holdDuration?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1792 How long (in seconds) the overlay stays at [maxAlpha](#maxalpha) before fading again. #### Default [#default-5] ```ts 0 ``` #### Inherited from [#inherited-from-16] `FlashInOutProps.holdDuration` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `FlashInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-18] `FlashInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `FlashInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `FlashInOutProps.max` *** ### maxAlpha? [#maxalpha] \> `optional` **maxAlpha?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1787 The peak alpha the overlay reaches. #### Default [#default-7] ```ts 1 ``` #### Inherited from [#inherited-from-21] `FlashInOutProps.maxAlpha` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-22] `FlashInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-23] `FlashInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-24] `FlashInOutProps.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-25] `FlashInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-26] `FlashInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-27] `FlashInOutProps.power` *** ### pulses? [#pulses] \> `optional` **pulses?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1797 The number of times the overlay fades in and out. #### Default [#default-8] ```ts 1 ``` #### Inherited from [#inherited-from-28] `FlashInOutProps.pulses` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-29] `FlashInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-32] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `FlashInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-34] `FlashInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-35] `FlashInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `FlashInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `FlashInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `FlashInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-9] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `FlashInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-40] `FlashInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-11] ```ts [] ``` #### Inherited from [#inherited-from-41] `FlashInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-42] `FlashInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-43] `FlashInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-44] `FlashInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-45] `FlashInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-46] `FlashInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-47] `FlashInOutProps.when` # Interface: GlitchTransitionProps (/pixi-vn-json/index/interfaces/GlitchTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:235](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L235) Configuration options for the glitch transition. ## Extends [#extends] * `GlitchInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `GlitchInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `GlitchInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `GlitchInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `GlitchInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `GlitchInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `GlitchInOutProps.bounceStiffness` *** ### bursts? [#bursts] \> `optional` **bursts?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1873 The number of glitch bursts. #### Default [#default-1] ```ts 3 ``` #### Inherited from [#inherited-from-6] `GlitchInOutProps.bursts` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-7] `GlitchInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-8] `GlitchInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-9] `GlitchInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-10] `GlitchInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] `GlitchInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] `GlitchInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] `GlitchInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] `GlitchInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1861 Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn-json/index/interfaces/BlurTransitionProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-15] `GlitchInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-16] `GlitchInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `GlitchInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-18] `GlitchInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `GlitchInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `GlitchInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-21] `GlitchInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-22] `GlitchInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `GlitchInOutProps.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-24] `GlitchInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-25] `GlitchInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-26] `GlitchInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-27] `GlitchInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-31] `GlitchInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `GlitchInOutProps.restSpeed` *** ### rgbSplit? [#rgbsplit] \> `optional` **rgbSplit?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1884 The peak red/blue channel separation (pixels) layered on top of the slices, following the same envelope. `0` disables it. #### Default [#default-5] ```ts 6 ``` #### Inherited from [#inherited-from-33] `GlitchInOutProps.rgbSplit` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-34] `GlitchInOutProps.skipAnimations` *** ### slices? [#slices] \> `optional` **slices?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1878 The number of glitch slices. #### Default [#default-6] ```ts 8 ``` #### Inherited from [#inherited-from-35] `GlitchInOutProps.slices` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `GlitchInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `GlitchInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `GlitchInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `GlitchInOutProps.stiffness` *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1868 The peak slice-displacement (pixels) - the first burst of `glitchIn`, the last of `glitchOut`. #### Default [#default-8] ```ts 40 ``` #### Inherited from [#inherited-from-40] `GlitchInOutProps.strength` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-41] `GlitchInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-42] `GlitchInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-43] `GlitchInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-44] `GlitchInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-45] `GlitchInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-46] `GlitchInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-47] `GlitchInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-48] `GlitchInOutProps.when` # Interface: IrisTransitionProps (/pixi-vn-json/index/interfaces/IrisTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:140](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L140) Configuration options for the iris transition. ## Extends [#extends] * `IrisInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `IrisInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `IrisInOutProps.animateOldComponentOut` *** ### aspect? [#aspect] \> `optional` **aspect?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1748 The aspect ratio (width / height) of the iris shape. `1` (the default) is a circle. #### Default [#default-1] ```ts 1 ``` #### Inherited from [#inherited-from-2] `IrisInOutProps.aspect` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-3] `IrisInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-4] `IrisInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-5] `IrisInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-6] `IrisInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-7] `IrisInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-8] `IrisInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-9] `IrisInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-10] `IrisInOutProps.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"expand"` | `"contract"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1755 `"expand"`: the image is seen *through* the circle (`irisIn` grows it, `irisOut` shrinks it). `"contract"`: the image is seen *around* the circle, which is a hole (`irisIn` shrinks it until the whole image is shown, `irisOut` grows it until the image is gone). #### Default [#default-4] ```ts "expand" ``` #### Inherited from [#inherited-from-11] `IrisInOutProps.direction` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-12] `IrisInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-13] `IrisInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-14] `IrisInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-15] `IrisInOutProps.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-16] `IrisInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `IrisInOutProps.inherit` *** ### invert? [#invert] \> `optional` **invert?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1721 If true, the effect is inverted: a "reveal" mask conceals instead, and vice versa. #### Default [#default-5] ```ts false ``` #### Inherited from [#inherited-from-18] `IrisInOutProps.invert` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-19] `IrisInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-20] `IrisInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-21] `IrisInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-22] `IrisInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-23] `IrisInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-24] `IrisInOutProps.modifyTarget` *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1743 The origin of the iris, normalized to the component's own bounds (`0` to `1` on each axis). #### Default [#default-7] ```ts { x: 0.5, y: 0.5 } ``` #### Inherited from [#inherited-from-25] `IrisInOutProps.origin` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-26] `IrisInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-27] `IrisInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-28] `IrisInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-29] `IrisInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-32] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `IrisInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-34] `IrisInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-35] `IrisInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `IrisInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `IrisInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `IrisInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `IrisInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-40] `IrisInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-41] `IrisInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-42] `IrisInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-43] `IrisInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-44] `IrisInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-45] `IrisInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-46] `IrisInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-47] `IrisInOutProps.when` # Interface: MoveInOutTransitionProps (/pixi-vn-json/index/interfaces/MoveInOutTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:64](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L64) Configuration options for the move transition (direction, duration, easing, etc.). ## Extends [#extends] * [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`aliasToRemoveAfter`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#aliastoremoveafter) *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`animateOldComponentOut`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`autoplay`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`bounce`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`bounceDamping`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`bounceStiffness`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`completeOnContinue`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`damping`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`delay`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`delayChildren`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1684 The direction of the movement. #### Default [#default-3] ```ts "right" ``` #### Inherited from [#inherited-from-10] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`direction`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#direction) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`driver`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`duration`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`ease`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`elapsed`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`from`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`inherit`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-17] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`isSync`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`mass`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`max`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`min`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#min) *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-21] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`mixer`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#mixer) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-22] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`modifyTarget`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#modifytarget) *** ### motionBlur? [#motionblur] \> `optional` **motionBlur?**: `number` | `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1690 Adds a motion-blur trail along the movement, ramping up mid-move and back to sharp at the end. `true` uses a 40px trail; a number sets the trail length (pixels). #### Default [#default-5] ```ts false ``` #### Inherited from [#inherited-from-23] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`motionBlur`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#motionblur) *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-24] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`out`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#out) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-25] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`path`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-26] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`power`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-27] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`reduceMotion`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-31] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`restDelta`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-32] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`restSpeed`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-33] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`skipAnimations`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-34] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`staggerChildren`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-35] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`staggerDirection`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-36] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`startTime`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-37] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`stiffness`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-38] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`tickerAliasToResume`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#tickeraliastoresume) *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-39] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`tickerIdToResume`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#tickeridtoresume) *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-40] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`timeConstant`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-41] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`times`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-42] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`type`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-43] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`velocity`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-44] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`visualDuration`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-45] [`MoveInOutProps`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps).[`when`](/pixi-vn-json/docs-entry/interfaces/MoveInOutProps#when) # Interface: NoiseDissolveTransitionProps (/pixi-vn-json/index/interfaces/NoiseDissolveTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:311](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L311) Configuration options for the noisedissolve transition. ## Extends [#extends] * `NoiseDissolveInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `NoiseDissolveInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `NoiseDissolveInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `NoiseDissolveInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `NoiseDissolveInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `NoiseDissolveInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `NoiseDissolveInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `NoiseDissolveInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `NoiseDissolveInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `NoiseDissolveInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `NoiseDissolveInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `NoiseDissolveInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `NoiseDissolveInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `NoiseDissolveInOutProps.ease` *** ### edge? [#edge] \> `optional` **edge?**: `"hard"` | `"soft"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1946 `"hard"`: the component appears/disappears in crisp noise-shaped blotches. `"soft"`: a cloudy, gradual dissolve. #### Default [#default-3] ```ts "hard" ``` #### Inherited from [#inherited-from-13] `NoiseDissolveInOutProps.edge` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] `NoiseDissolveInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1861 Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn-json/index/interfaces/BlurTransitionProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-15] `NoiseDissolveInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-16] `NoiseDissolveInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `NoiseDissolveInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-18] `NoiseDissolveInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `NoiseDissolveInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `NoiseDissolveInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-21] `NoiseDissolveInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-22] `NoiseDissolveInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `NoiseDissolveInOutProps.modifyTarget` *** ### noiseScale? [#noisescale] \> `optional` **noiseScale?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1951 The scale of the noise pattern - higher values give smaller, more numerous blotches. #### Default [#default-5] ```ts 8 ``` #### Inherited from [#inherited-from-24] `NoiseDissolveInOutProps.noiseScale` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-25] `NoiseDissolveInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-26] `NoiseDissolveInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-27] `NoiseDissolveInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-28] `NoiseDissolveInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `NoiseDissolveInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `NoiseDissolveInOutProps.restSpeed` *** ### seed? [#seed] \> `optional` **seed?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1955 Picks the noise pattern. Random by default, so every dissolve looks different. #### Inherited from [#inherited-from-34] `NoiseDissolveInOutProps.seed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-35] `NoiseDissolveInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `NoiseDissolveInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `NoiseDissolveInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `NoiseDissolveInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `NoiseDissolveInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-40] `NoiseDissolveInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-41] `NoiseDissolveInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-42] `NoiseDissolveInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-43] `NoiseDissolveInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-44] `NoiseDissolveInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-45] `NoiseDissolveInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-46] `NoiseDissolveInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-47] `NoiseDissolveInOutProps.when` # Interface: PinchTransitionProps (/pixi-vn-json/index/interfaces/PinchTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:349](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L349) Configuration options for the pinch transition. ## Extends [#extends] * `PinchInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `PinchInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `PinchInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `PinchInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `PinchInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `PinchInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `PinchInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `PinchInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `PinchInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `PinchInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `PinchInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `PinchInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `PinchInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `PinchInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `PinchInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1861 Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn-json/index/interfaces/BlurTransitionProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] `PinchInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] `PinchInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] `PinchInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-17] `PinchInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] `PinchInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] `PinchInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] `PinchInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-21] `PinchInOutProps.mixer` *** ### mode? [#mode] \> `optional` **mode?**: `"pinch"` | `"bulge"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1984 `"pinch"`: sucked into/out of a point. `"bulge"`: puffed out from/into a point. #### Default [#default-4] ```ts "pinch" ``` #### Inherited from [#inherited-from-22] `PinchInOutProps.mode` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `PinchInOutProps.modifyTarget` *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1993 The center of the deformation, normalized to the component's own bounds. #### Default [#default-5] ```ts { x: 0.5, y: 0.5 } ``` #### Inherited from [#inherited-from-24] `PinchInOutProps.origin` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-25] `PinchInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-26] `PinchInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-27] `PinchInOutProps.power` *** ### radius? [#radius] \> `optional` **radius?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1988 The radius (pixels) of the deformation. Defaults to half the component's diagonal. #### Inherited from [#inherited-from-28] `PinchInOutProps.radius` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-29] `PinchInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-32] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `PinchInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-34] `PinchInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-35] `PinchInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `PinchInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `PinchInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `PinchInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `PinchInOutProps.stiffness` *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1979 How strong the deformation is, from `0` to `1` - where `pinchIn` starts and `pinchOut` ends. #### Default [#default-7] ```ts 1 ``` #### Inherited from [#inherited-from-40] `PinchInOutProps.strength` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-41] `PinchInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-42] `PinchInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-43] `PinchInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-44] `PinchInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-45] `PinchInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-46] `PinchInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-47] `PinchInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-48] `PinchInOutProps.when` # Interface: PixelateTransitionProps (/pixi-vn-json/index/interfaces/PixelateTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:197](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L197) Configuration options for the pixelate transition. ## Extends [#extends] * `PixelateInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `PixelateInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `PixelateInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `PixelateInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `PixelateInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `PixelateInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `PixelateInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `PixelateInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `PixelateInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `PixelateInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `PixelateInOutProps.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"up-left"` | `"up-right"` | `"down-left"` | `"down-right"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1839 The direction the pixel blocks drift as their size changes. Applies to both entering and exiting components, including the old component during a replacement. `"up-left"` moves from bottom-right towards top-left; the other values mirror either axis. #### Default [#default-3] ```ts "up-left" ``` #### Inherited from [#inherited-from-10] `PixelateInOutProps.direction` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] `PixelateInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] `PixelateInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] `PixelateInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] `PixelateInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1848 Whether the component itself also briefly fades in (`pixelateIn`) or out (`pixelateOut`) alongside the pixelation, softening what would otherwise be an instant pop-in/pop-out - the fade runs at a quarter of the effect's own duration, mirrored to the start of `pixelateIn` or the end of `pixelateOut`. Off by default: pixelation itself already reads as a deliberate, blocky appear/disappear, so a softening fade is less often wanted here than for blur/flash. #### Default [#default-4] ```ts false ``` #### Inherited from [#inherited-from-15] `PixelateInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-16] `PixelateInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `PixelateInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-18] `PixelateInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `PixelateInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `PixelateInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-21] `PixelateInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-22] `PixelateInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `PixelateInOutProps.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-24] `PixelateInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-25] `PixelateInOutProps.path` *** ### pixelSize? [#pixelsize] \> `optional` **pixelSize?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1832 The pixel size the effect starts from (`pixelateIn`) or ends at (`pixelateOut`). #### Default [#default-6] ```ts 32 ``` #### Inherited from [#inherited-from-26] `PixelateInOutProps.pixelSize` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-27] `PixelateInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-28] `PixelateInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `PixelateInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `PixelateInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-34] `PixelateInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-35] `PixelateInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-36] `PixelateInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-37] `PixelateInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-38] `PixelateInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-39] `PixelateInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-40] `PixelateInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-41] `PixelateInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-42] `PixelateInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-43] `PixelateInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-44] `PixelateInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-45] `PixelateInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-46] `PixelateInOutProps.when` # Interface: PixiVNJson (/pixi-vn-json/index/interfaces/PixiVNJson) Defined in: [src/schema/PixiVNJson.ts:8](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJson.ts#L8) PixiVNJson It can be defined as a programming language to write a narrative written in json. ## Properties [#properties] ### $schema? [#schema] \> `optional` **$schema?**: `string` Defined in: [src/schema/PixiVNJson.ts:19](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJson.ts#L19) The URI of the JSON Schema that describes and validates this document. You can point to a specific version of the schema, for example: * `"https://pixi-vn.com/schemas/1.13.0/schema.json"` — pin to a specific version * `"https://pixi-vn.com/schemas/latest/schema.json"` — always use the latest version Most editors (VS Code, WebStorm, etc.) use this field to provide auto-completion, hover documentation, and validation for the document. *** ### initialOperations? [#initialoperations] \> `optional` **initialOperations?**: ([`PixiVNJsonValueSet`](/pixi-vn-json/index/type-aliases/PixiVNJsonValueSet) | [`PixiVNJsonIfElse`](/pixi-vn-json/index/interfaces/PixiVNJsonIfElse)\<[`PixiVNJsonValueSet`](/pixi-vn-json/index/type-aliases/PixiVNJsonValueSet)>)\[] Defined in: [src/schema/PixiVNJson.ts:25](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJson.ts#L25) The operations to be executed before the narrative starts. For the set storage: They will be set only if there are no variables with the same key already. For the det tempstorage: if there are variables with the same key already, they will be overwritten. *** ### labels? [#labels] \> `optional` **labels?**: [`PixiVNJsonLabels`](/pixi-vn-json/index/type-aliases/PixiVNJsonLabels) Defined in: [src/schema/PixiVNJson.ts:29](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJson.ts#L29) The labels to be used in the narrative. They will be added to the system # Interface: PixiVNJsonAnimateBaseOptions (/pixi-vn-json/index/interfaces/PixiVNJsonAnimateBaseOptions) Defined in: [src/schema/PixiVNJsonCanvasAnimate.ts:14](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonCanvasAnimate.ts#L14) Additional options controlling the animation (duration, easing, repeat, etc.). ## Extends [#extends] * [`AnimationOptions`](/pixi-vn-json/docs-entry/type-aliases/AnimationOptions) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `AnimationOptions.aliasToRemoveAfter` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-1] `AnimationOptions.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-2] `AnimationOptions.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-3] `AnimationOptions.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-4] `AnimationOptions.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:485 A boolean indicating whether the animation must complete before the next `step` of the game. If `true`, the game will force the animation to finish before proceeding. When true, calling `narration.continue()` forces the current content to complete before advancing to the next narrative step. #### Default [#default-1] ```ts false ``` #### Inherited from [#inherited-from-5] `AnimationOptions.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-6] `AnimationOptions.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-7] `AnimationOptions.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-8] `AnimationOptions.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-9] `AnimationOptions.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-10] `AnimationOptions.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-11] `AnimationOptions.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-12] `AnimationOptions.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-13] `AnimationOptions.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-14] `AnimationOptions.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-15] `AnimationOptions.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-16] `AnimationOptions.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-17] `AnimationOptions.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-18] `AnimationOptions.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-19] `AnimationOptions.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-20] `AnimationOptions.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-21] `AnimationOptions.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-22] `AnimationOptions.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-23] `AnimationOptions.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-24] `AnimationOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-25] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-26] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-28] `AnimationOptions.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-29] `AnimationOptions.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-30] `AnimationOptions.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-31] `AnimationOptions.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-32] `AnimationOptions.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-33] `AnimationOptions.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-4] ```ts 100 @public ``` #### Inherited from [#inherited-from-34] `AnimationOptions.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-5] ```ts [] ``` #### Inherited from [#inherited-from-35] `AnimationOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-6] ```ts [] ``` #### Inherited from [#inherited-from-36] `AnimationOptions.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-37] `AnimationOptions.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-38] `AnimationOptions.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-39] `AnimationOptions.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-40] `AnimationOptions.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-41] `AnimationOptions.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-42] `AnimationOptions.when` # Interface: PixiVNJsonAnimateSequenceOptions (/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions) Defined in: [src/schema/PixiVNJsonCanvasAnimate.ts:40](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonCanvasAnimate.ts#L40) Additional options controlling the sequence playback. ## Extends [#extends] * [`SequenceOptions`](/pixi-vn-json/docs-entry/type-aliases/SequenceOptions) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `SequenceOptions.aliasToRemoveAfter` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:485 A boolean indicating whether the animation must complete before the next `step` of the game. If `true`, the game will force the animation to finish before proceeding. When true, calling `narration.continue()` forces the current content to complete before advancing to the next narrative step. #### Default [#default-1] ```ts false ``` #### Inherited from [#inherited-from-1] `SequenceOptions.completeOnContinue` *** ### defaultTransition? [#defaulttransition] \> `optional` **defaultTransition?**: `Transition` Defined in: node_modules/framer-motion/dist/dom.d.ts:78 #### Inherited from [#inherited-from-2] `SequenceOptions.defaultTransition` *** ### delay? [#delay] \> `optional` **delay?**: `number` Defined in: node_modules/framer-motion/dist/dom.d.ts:76 #### Inherited from [#inherited-from-3] `SequenceOptions.delay` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/framer-motion/dist/dom.d.ts:77 #### Inherited from [#inherited-from-4] `SequenceOptions.duration` *** ### onComplete? [#oncomplete] \> `optional` **onComplete?**: () => `void` Defined in: node_modules/framer-motion/dist/dom.d.ts:81 #### Returns [#returns] `void` #### Inherited from [#inherited-from-5] `SequenceOptions.onComplete` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/framer-motion/dist/dom.d.ts:79 #### Inherited from [#inherited-from-6] `SequenceOptions.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-7] `SequenceOptions.repeat` *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-8] `SequenceOptions.repeatDelay` *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-9] `SequenceOptions.repeatType` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/framer-motion/dist/dom.d.ts:80 #### Inherited from [#inherited-from-10] `SequenceOptions.skipAnimations` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-2] ```ts [] ``` #### Inherited from [#inherited-from-11] `SequenceOptions.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-3] ```ts [] ``` #### Inherited from [#inherited-from-12] `SequenceOptions.tickerIdToResume` # Interface: PixiVNJsonArithmeticOperationsArithmetic (/pixi-vn-json/index/interfaces/PixiVNJsonArithmeticOperationsArithmetic) Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:8](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L8) Binary arithmetic operation between two values (left OP right). ## Properties [#properties] ### leftValue [#leftvalue] \> **leftValue**: [`PixiVNJsonArithmeticOperations`](/pixi-vn-json/index/type-aliases/PixiVNJsonArithmeticOperations) | `StorageElementType` | [`PixiVNJsonValueGet`](/pixi-vn-json/index/type-aliases/PixiVNJsonValueGet) | [`PixiVNJsonConditionalStatements`](/pixi-vn-json/index/type-aliases/PixiVNJsonConditionalStatements)\ Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:13](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L13) Left value of the arithmetic operation *** ### operator [#operator] \> **operator**: `"*"` | `"/"` | `"+"` | `"-"` | `"%"` | `"POW"` | `"RANDOM"` | `"INTERSECTION"` Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:41](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L41) Operator of the arithmetic operation: * `"*"` multiplication * `"/"` division * `"+"` addition (concatenation for strings and arrays) * `"-"` subtraction (removal of elements for arrays) * `"%"` modulo * `"POW"` exponentiation * `"RANDOM"` random integer between leftValue and rightValue (inclusive) * `"INTERSECTION"` intersection of two arrays (only elements present in both arrays are included in the result) *** ### rightValue [#rightvalue] \> **rightValue**: [`PixiVNJsonArithmeticOperations`](/pixi-vn-json/index/type-aliases/PixiVNJsonArithmeticOperations) | `StorageElementType` | [`PixiVNJsonValueGet`](/pixi-vn-json/index/type-aliases/PixiVNJsonValueGet) | [`PixiVNJsonConditionalStatements`](/pixi-vn-json/index/type-aliases/PixiVNJsonConditionalStatements)\ Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:23](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L23) Right value of the arithmetic operation *** ### type [#type] \> **type**: `"arithmetic"` Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:9](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L9) # Interface: PixiVNJsonArithmeticOperationsArithmeticSingle (/pixi-vn-json/index/interfaces/PixiVNJsonArithmeticOperationsArithmeticSingle) Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:47](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L47) Unary arithmetic operation applied to a single value (e.g. INT, FLOOR, FLOAT). ## Properties [#properties] ### leftValue [#leftvalue] \> **leftValue**: [`PixiVNJsonArithmeticOperations`](/pixi-vn-json/index/type-aliases/PixiVNJsonArithmeticOperations) | `StorageElementType` | [`PixiVNJsonValueGet`](/pixi-vn-json/index/type-aliases/PixiVNJsonValueGet) | [`PixiVNJsonConditionalStatements`](/pixi-vn-json/index/type-aliases/PixiVNJsonConditionalStatements)\ Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:52](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L52) Left value of the arithmetic operation *** ### operator [#operator] \> **operator**: `"INT"` | `"FLOOR"` | `"FLOAT"` Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:65](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L65) Operator of the arithmetic operation: * `"INT"` truncates the value to an integer (removes the decimal part) * `"FLOOR"` rounds down to the nearest integer * `"FLOAT"` converts the value to a floating-point number *** ### type [#type] \> **type**: `"arithmeticsingle"` Defined in: [src/schema/PixiVNJsonArithmeticOperations.ts:48](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonArithmeticOperations.ts#L48) # Interface: PixiVNJsonCanvasImageContainerShowProps (/pixi-vn-json/index/interfaces/PixiVNJsonCanvasImageContainerShowProps) Defined in: [src/schema/PixiVNJsonCanvas.ts:53](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonCanvas.ts#L53) Display options for an image container. ## Extends [#extends] * [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions)\<[`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite)> ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`accessible`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`accessibleChildren`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`accessibleHint`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`accessiblePointerEvents`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`accessibleText`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`accessibleTitle`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`accessibleType`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:115 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`align`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * Container#visible For toggling visibility * Container#renderable For render control #### Inherited from [#inherited-from-8] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`alpha`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:568 #### Inherited from [#inherited-from-9] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`anchor`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`angle`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#angle) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-8] ```ts 'normal' ``` #### See [#see-1] * Container#alpha For transparency * Container#tint For color adjustments #### Inherited from [#inherited-from-11] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`blendMode`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-12] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`boundsArea`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-13] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`cacheAsTexture`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite)\<`ImageSpriteMemory`>\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * Container#addChild For adding children * Container#removeChild For removing children #### Inherited from [#inherited-from-14] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`children`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-9] ```ts false ``` #### Inherited from [#inherited-from-15] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`cullable`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-10] ```ts true ``` #### Inherited from [#inherited-from-16] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`cullableChildren`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-11] ```ts null ``` #### Inherited from [#inherited-from-17] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`cullArea`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-12] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-18] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`cursor`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-19] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`eventMode`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-20] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`filters`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-13] ```ts 0 ``` #### Inherited from [#inherited-from-21] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`height`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-22] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`hitArea`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-23] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactive`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-14] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-24] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactiveChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-25] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`isRenderGroup`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-15] ```ts null ``` #### Inherited from [#inherited-from-26] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`label`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`mask`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`oncontextmenu`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-18] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-29] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-31] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobaltouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-21] ```ts null ``` #### Inherited from [#inherited-from-32] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousedown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointercancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointertap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-50] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`onRender`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-51] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchcancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchend`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchendoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchstart`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onwheel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-62] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`origin`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * Container#addChild For adding to a parent * Container#removeChild For removing from parent #### Inherited from [#inherited-from-63] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`parent`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:145 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-64] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`percentagePosition`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:155 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`percentageX`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:165 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`percentageY`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-67] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`pivot`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-68] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`position`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-50] ```ts true ``` #### See [#see-9] * Container#visible For skipping transform updates * Container#alpha For transparency #### Inherited from [#inherited-from-69] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`renderable`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-61] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-70] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`rotation`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#rotation) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-62] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-71] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`scale`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-72] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`setMask`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-63] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-51] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-73] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`skew`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-64] ```ts container.sortableChildren = true; ``` #### Default [#default-52] ```ts false ``` #### Inherited from [#inherited-from-74] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`sortableChildren`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-53] ```ts false @internal ``` #### Inherited from [#inherited-from-75] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`sortDirty`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-54] ```ts 0 ``` #### Example [#example-65] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-76] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`tabIndex`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#tabindex) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-66] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-55] ```ts 0xFFFFFF ``` #### See [#see-10] * Container#alpha For transparency * Container#visible For visibility control #### Inherited from [#inherited-from-77] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`tint`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-67] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-56] ```ts true ``` #### See [#see-11] * Container#renderable For render-only control * Container#alpha For transparency #### Inherited from [#inherited-from-78] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`visible`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-68] ```ts new Container({ width: 100}); ``` #### Default [#default-57] ```ts 0 ``` #### Inherited from [#inherited-from-79] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`width`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-69] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-80] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`x`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:125 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-81] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`xAlign`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-70] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-82] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`y`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:135 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-83] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`yAlign`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-71] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn-json/docs-entry/interfaces/ImageSprite#sortablechildren) For enabling sorting * Container#sortChildren For manual sorting #### Default [#default-58] ```ts 0 ``` #### Inherited from [#inherited-from-84] [`ImageContainerOptions`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions).[`zIndex`](/pixi-vn-json/docs-entry/interfaces/ImageContainerOptions#zindex) # Interface: PixiVNJsonCanvasImageVideoShowProps (/pixi-vn-json/index/interfaces/PixiVNJsonCanvasImageVideoShowProps) Defined in: [src/schema/PixiVNJsonCanvas.ts:25](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonCanvas.ts#L25) Display options (position, scale, alpha, etc.) for an image or video sprite. ## Extends [#extends] * [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`accessible`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`accessibleChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`accessibleHint`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`accessiblePointerEvents`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`accessibleText`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`accessibleTitle`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`accessibleType`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:115 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`align`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * Container#visible For toggling visibility * Container#renderable For render control #### Inherited from [#inherited-from-8] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`alpha`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:73 The anchor point of the sprite (0-1 range). Controls the origin point for rotation, scaling, and positioning. Can be a number for uniform anchor or a PointData for separate x/y values. #### Default [#default-8] ```ts 0 ``` #### Example [#example-8] ```ts // Centered anchor anchor: 0.5 // Separate x/y anchor anchor: { x: 0.5, y: 0.5 } // Right-aligned anchor anchor: { x: 1, y: 0 } ``` #### Inherited from [#inherited-from-9] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`anchor`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-9] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`angle`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`autoGarbageCollect`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#autogarbagecollect) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-10] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-9] ```ts 'normal' ``` #### See [#see-1] * Container#alpha For transparency * Container#tint For color adjustments #### Inherited from [#inherited-from-12] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`blendMode`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-11] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-13] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`boundsArea`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-14] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`cacheAsTexture`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-12] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * Container#addChild For adding children * Container#removeChild For removing children #### Inherited from [#inherited-from-15] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`children`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-13] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-10] ```ts false ``` #### Inherited from [#inherited-from-16] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`cullable`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-14] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-11] ```ts true ``` #### Inherited from [#inherited-from-17] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`cullableChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-15] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-12] ```ts null ``` #### Inherited from [#inherited-from-18] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`cullArea`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-16] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-13] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-19] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`cursor`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-17] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-20] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`eventMode`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-18] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-21] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`filters`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-19] ```ts new Container({ height: 100}); ``` #### Default [#default-14] ```ts 0 ``` #### Inherited from [#inherited-from-22] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`height`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-20] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-23] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`hitArea`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) #### Example [#example-21] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-24] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactive`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-15] ```ts true ``` #### Example [#example-22] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-25] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactiveChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-26] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`isRenderGroup`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-16] ```ts null ``` #### Inherited from [#inherited-from-27] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`label`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-23] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`mask`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`oncontextmenu`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-19] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-30] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-32] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobaltouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-22] ```ts null ``` #### Inherited from [#inherited-from-33] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousedown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointercancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointertap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-45] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-46] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-51] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`onRender`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-52] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchcancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchend`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchendoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchstart`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-57] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onwheel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-58] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-63] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`origin`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * Container#addChild For adding to a parent * Container#removeChild For removing from parent #### Inherited from [#inherited-from-64] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`parent`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:145 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-65] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`percentagePosition`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:155 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`percentageX`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:165 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`percentageY`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-59] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-68] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`pivot`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-60] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-69] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`position`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-61] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-51] ```ts true ``` #### See [#see-9] * Container#visible For skipping transform updates * Container#alpha For transparency #### Inherited from [#inherited-from-70] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`renderable`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#renderable) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-71] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`rotation`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:86 Whether or not to round the x/y position to whole pixels. Useful for crisp pixel art style rendering. #### Default [#default-52] ```ts false ``` #### Example [#example-63] ```ts const sprite = new Sprite({ texture: Texture.from('sprite.png'), roundPixels: true // Ensures crisp rendering }); ``` #### Inherited from [#inherited-from-72] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`roundPixels`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#roundpixels) *** ### scale? [#scale] > `optional` **scale?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example [#example-64] ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ``` #### Inherited from [#inherited-from-73] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`scale`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#scale) *** ### setMask? [#setmask] > `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-74] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`setMask`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#setmask) *** ### skew? [#skew] > `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-65] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-53] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-75] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`skew`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#skew) *** ### sortableChildren? [#sortablechildren] > `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. > \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, > as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-66] ```ts container.sortableChildren = true; ``` #### Default [#default-54] ```ts false ``` #### Inherited from [#inherited-from-76] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`sortableChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#sortablechildren) *** ### sortDirty? [#sortdirty] > `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-55] ```ts false @internal ``` #### Inherited from [#inherited-from-77] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`sortDirty`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#sortdirty) *** ### tabIndex? [#tabindex] > `optional` **tabIndex?**: `number` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default [#default-56] ```ts 0 ``` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-78] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`tabIndex`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#tabindex) *** ### texture? [#texture] > `optional` **texture?**: `Texture`\<`TextureSource`\<`any`>> Defined in: node_modules/pixi.js/lib/scene/sprite/Sprite.d.ts:57 The texture to use for the sprite. If not provided, uses Texture.EMPTY #### Default [#default-57] ```ts Texture.EMPTY ``` #### Example [#example-68] ```ts // Create a sprite with a texture const sprite = new Sprite({ texture: Texture.from('path/to/image.png') }); // Update the texture later sprite.texture = Texture.from('path/to/another-image.png'); ``` #### Inherited from [#inherited-from-79] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`texture`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#texture) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-69] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * Container#alpha For transparency * Container#visible For visibility control #### Inherited from [#inherited-from-80] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`tint`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-70] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * Container#renderable For render-only control * Container#alpha For transparency #### Inherited from [#inherited-from-81] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`visible`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-71] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-82] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`width`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-72] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-83] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`x`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:125 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-84] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`xAlign`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-73] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-85] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`y`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:135 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`yAlign`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-74] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn-json/docs-entry/interfaces/ImageSprite#sortablechildren) For enabling sorting * Container#sortChildren For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-87] [`ImageSpriteOptions`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions).[`zIndex`](/pixi-vn-json/docs-entry/interfaces/ImageSpriteOptions#zindex) # Interface: PixiVNJsonCanvasTextShowProps (/pixi-vn-json/index/interfaces/PixiVNJsonCanvasTextShowProps) Defined in: [src/schema/PixiVNJsonCanvas.ts:81](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonCanvas.ts#L81) Display options (font, style, position, etc.) for a text element. ## Extends [#extends] * [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions) ## Properties [#properties] ### accessible? [#accessible] \> `optional` **accessible?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:31 Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set #### Default [#default] ```ts false ``` #### Example [#example] ```js const container = new Container(); container.accessible = true; ``` #### Inherited from [#inherited-from] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`accessible`](/pixi-vn-json/docs-entry/interfaces/TextOptions#accessible) *** ### accessibleChildren? [#accessiblechildren] \> `optional` **accessibleChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:126 Setting to false will prevent any children inside this container to be accessible. Defaults to true. #### Default [#default-1] ```ts true ``` #### Example [#example-1] ```js const container = new Container(); container.accessible = true; container.accessibleChildren = false; // This will prevent any children from being accessible const sprite = new Sprite(texture); sprite.accessible = true; // This will not work since accessibleChildren is false ``` #### Inherited from [#inherited-from-1] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`accessibleChildren`](/pixi-vn-json/docs-entry/interfaces/TextOptions#accessiblechildren) *** ### accessibleHint? [#accessiblehint] \> `optional` **accessibleHint?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:56 Sets the aria-label attribute of the shadow div #### Default [#default-2] ```ts null ``` #### Advanced [#advanced] #### Example [#example-2] ```js const container = new Container(); container.accessible = true; container.accessibleHint = 'This is a container'; ``` #### Inherited from [#inherited-from-2] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`accessibleHint`](/pixi-vn-json/docs-entry/interfaces/TextOptions#accessiblehint) *** ### accessiblePointerEvents? [#accessiblepointerevents] \> `optional` **accessiblePointerEvents?**: `PointerEvents` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:100 Specify the pointer-events the accessible div will use Defaults to auto. #### Default [#default-3] ```ts 'auto' ``` #### Advanced [#advanced-1] #### Example [#example-3] ```js const container = new Container(); container.accessible = true; container.accessiblePointerEvents = 'none'; // or 'auto', 'visiblePainted', etc. ``` #### Inherited from [#inherited-from-3] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`accessiblePointerEvents`](/pixi-vn-json/docs-entry/interfaces/TextOptions#accessiblepointerevents) *** ### accessibleText? [#accessibletext] \> `optional` **accessibleText?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:111 Sets the text content of the shadow div #### Default [#default-4] ```ts null ``` #### Example [#example-4] ```js const container = new Container(); container.accessible = true; container.accessibleText = 'This is a container'; ``` #### Inherited from [#inherited-from-4] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`accessibleText`](/pixi-vn-json/docs-entry/interfaces/TextOptions#accessibletext) *** ### accessibleTitle? [#accessibletitle] \> `optional` **accessibleTitle?**: `string` | `null` Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:44 Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container \[tabIndex]' #### Default [#default-5] ```ts null ``` #### Example [#example-5] ```js const container = new Container(); container.accessible = true; container.accessibleTitle = 'My Container'; ``` #### Inherited from [#inherited-from-5] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`accessibleTitle`](/pixi-vn-json/docs-entry/interfaces/TextOptions#accessibletitle) *** ### accessibleType? [#accessibletype] \> `optional` **accessibleType?**: keyof HTMLElementTagNameMap Defined in: node_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:86 Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button. #### Default [#default-6] ```ts 'button' ``` #### Advanced [#advanced-2] #### Example [#example-6] ```js const container = new Container(); container.accessible = true; container.accessibleType = 'button'; // or 'link', 'checkbox', etc. ``` #### Inherited from [#inherited-from-6] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`accessibleType`](/pixi-vn-json/docs-entry/interfaces/TextOptions#accessibletype) *** ### align? [#align] \> `optional` **align?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:115 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-7] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`align`](/pixi-vn-json/docs-entry/interfaces/TextOptions#align) *** ### alpha? [#alpha] \> `optional` **alpha?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:235 The opacity of the object relative to its parent's opacity. Value ranges from 0 (fully transparent) to 1 (fully opaque). #### Example [#example-7] ```ts new Container({ alpha: 0.5 }); // 50% opacity new Container({ alpha: 1 }); // Fully opaque ``` #### Default [#default-7] ```ts 1 ``` #### See [#see] * Container#visible For toggling visibility * Container#renderable For render control #### Inherited from [#inherited-from-8] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`alpha`](/pixi-vn-json/docs-entry/interfaces/TextOptions#alpha) *** ### anchor? [#anchor] \> `optional` **anchor?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:136 The anchor point of the text that controls the origin point for positioning and rotation. Can be a number (same value for x/y) or a PointData object. * (0,0) is top-left * (0.5,0.5) is center * (1,1) is bottom-right ```ts // Set anchor to center const text = new Text({ text: 'Hello Pixi!', anchor: 0.5 // Same as { x: 0.5, y: 0.5 } }); // Set anchor to top-left const text2 = new Text({ text: 'Hello Pixi!', anchor: { x: 0, y: 0 } // Top-left corner }); // Set anchor to bottom-right const text3 = new Text({ text: 'Hello Pixi!', anchor: { x: 1, y: 1 } // Bottom-right corner }); ``` #### Default [#default-8] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-9] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`anchor`](/pixi-vn-json/docs-entry/interfaces/TextOptions#anchor) *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:247 The angle of the object in degrees. \> \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; \> rotation is in radians, angle is in degrees. #### Example [#example-8] ```ts new Container({ angle: 45 }); // Rotate 45 degrees new Container({ angle: 90 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-10] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`angle`](/pixi-vn-json/docs-entry/interfaces/TextOptions#angle) *** ### autoGarbageCollect? [#autogarbagecollect] \> `optional` **autoGarbageCollect?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/view/ViewContainer.d.ts:29 If set to true, the resource will be garbage collected automatically when it is not used. #### Inherited from [#inherited-from-11] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`autoGarbageCollect`](/pixi-vn-json/docs-entry/interfaces/TextOptions#autogarbagecollect) *** ### autoGenerateMipmaps? [#autogeneratemipmaps] \> `optional` **autoGenerateMipmaps?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:62 Whether to generate mipmaps for the text texture. Improves rendering quality when the text is scaled down. #### Default [#default-9] ```ts undefined - Falls back to TextureSource.defaultOptions.autoGenerateMipmaps ``` #### Inherited from [#inherited-from-12] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`autoGenerateMipmaps`](/pixi-vn-json/docs-entry/interfaces/TextOptions#autogeneratemipmaps) *** ### blendMode? [#blendmode] \> `optional` **blendMode?**: `BLEND_MODES` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:206 The blend mode to be applied to the sprite. Controls how pixels are blended when rendering. Setting to 'normal' will reset to default blending. \> \[!NOTE] More blend modes are available after importing the `pixi.js/advanced-blend-modes` sub-export. #### Example [#example-9] ```ts // Basic blend modes new Container({ blendMode: 'normal' }); // Default blending new Container({ blendMode: 'add' }); // Additive blending new Container({ blendMode: 'multiply' }); // Multiply colors new Container({ blendMode: 'screen' }); // Screen blend ``` #### Default [#default-10] ```ts 'normal' ``` #### See [#see-1] * Container#alpha For transparency * Container#tint For color adjustments #### Inherited from [#inherited-from-13] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`blendMode`](/pixi-vn-json/docs-entry/interfaces/TextOptions#blendmode) *** ### boundsArea? [#boundsarea] \> `optional` **boundsArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:403 An optional bounds area for this container. Setting this rectangle will stop the renderer from recursively measuring the bounds of each children and instead use this single boundArea. \> \[!IMPORTANT] This is great for optimisation! If for example you have a \> 1000 spinning particles and you know they all sit within a specific bounds, \> then setting it will mean the renderer will not need to measure the \> 1000 children to find the bounds. Instead it will just use the bounds you set. #### Example [#example-10] ```ts const container = new Container({ boundsArea: new Rectangle(0, 0, 500, 500) // Set a fixed bounds area }); ``` #### Inherited from [#inherited-from-14] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`boundsArea`](/pixi-vn-json/docs-entry/interfaces/TextOptions#boundsarea) *** ### cacheAsTexture? [#cacheastexture] \> `optional` **cacheAsTexture?**: (`val`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.d.ts:5 #### Parameters [#parameters] ##### val [#val] `boolean` | `CacheAsTextureOptions` #### Returns [#returns] `void` #### Inherited from [#inherited-from-15] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`cacheAsTexture`](/pixi-vn-json/docs-entry/interfaces/TextOptions#cacheastexture) *** ### children? [#children] \> `readonly` `optional` **children?**: `ContainerChild`\[] Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:265 The array of children of this container. Each child must be a Container or extend from it. The array is read-only, but its contents can be modified using Container methods. #### Example [#example-11] ```ts new Container({ children: [ new Container(), // First child new Container(), // Second child ], }); ``` #### See [#see-2] * Container#addChild For adding children * Container#removeChild For removing children #### Inherited from [#inherited-from-16] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`children`](/pixi-vn-json/docs-entry/interfaces/TextOptions#children) *** ### cullable? [#cullable] \> `optional` **cullable?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:69 Controls whether this object should be culled when out of view. When true, the object will not be rendered if its bounds are outside the visible area. #### Example [#example-12] ```ts const sprite = new Sprite(texture); // Enable culling sprite.cullable = true; // Force object to always render sprite.cullable = false; ``` #### Remarks [#remarks] * Does not affect transform updates * Applies to this object only * Children follow their own cullable setting #### Default [#default-11] ```ts false ``` #### Inherited from [#inherited-from-17] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`cullable`](/pixi-vn-json/docs-entry/interfaces/TextOptions#cullable) *** ### cullableChildren? [#cullablechildren] \> `optional` **cullableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:92 Controls whether children of this container can be culled. When false, skips recursive culling checks for better performance. #### Example [#example-13] ```ts const container = new Container(); // Enable container culling container.cullable = true; // Disable child culling for performance container.cullableChildren = false; // Children will always render if container is visible container.addChild(sprite1, sprite2, sprite3); ``` #### Remarks [#remarks-1] * Improves performance for static scenes * Useful when children are always within container bounds * Parent culling still applies #### Default [#default-12] ```ts true ``` #### Inherited from [#inherited-from-18] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`cullableChildren`](/pixi-vn-json/docs-entry/interfaces/TextOptions#cullablechildren) *** ### cullArea? [#cullarea] \> `optional` **cullArea?**: `Rectangle` Defined in: node_modules/pixi.js/lib/culling/cullingMixin.d.ts:49 Custom shape used for culling calculations instead of object bounds. Defined in local space coordinates relative to the object. \> \[!NOTE] \> Setting this to a custom Rectangle allows you to define a specific area for culling, \> which can improve performance by avoiding expensive bounds calculations. #### Example [#example-14] ```ts const container = new Container(); // Define custom culling boundary container.cullArea = new Rectangle(0, 0, 800, 600); // Reset to use object bounds container.cullArea = null; ``` #### Remarks [#remarks-2] * Improves performance by avoiding bounds calculations * Useful for containers with many children * Set to null to use object bounds #### Default [#default-13] ```ts null ``` #### Inherited from [#inherited-from-19] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`cullArea`](/pixi-vn-json/docs-entry/interfaces/TextOptions#cullarea) *** ### cursor? [#cursor] \> `optional` **cursor?**: `Cursor` | `string` & `object` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:187 The cursor style to display when the mouse pointer is hovering over the object. Accepts any valid CSS cursor value or custom cursor URL. #### Example [#example-15] ```ts // Common cursor types sprite.cursor = 'pointer'; // Hand cursor for clickable elements sprite.cursor = 'grab'; // Grab cursor for draggable elements sprite.cursor = 'crosshair'; // Precise cursor for selection sprite.cursor = 'not-allowed'; // Indicate disabled state // Direction cursors sprite.cursor = 'n-resize'; // North resize sprite.cursor = 'ew-resize'; // East-west resize sprite.cursor = 'nesw-resize'; // Northeast-southwest resize // Custom cursor with fallback sprite.cursor = 'url("custom.png"), auto'; sprite.cursor = 'url("cursor.cur") 2 2, pointer'; // With hotspot offset ``` #### Default [#default-14] ```ts undefined ``` #### See [#see-3] * EventSystem.cursorStyles For setting global cursor styles * [https://developer.mozilla.org/en-US/docs/Web/CSS/cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) MDN Cursor Documentation #### Inherited from [#inherited-from-20] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`cursor`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#cursor) *** ### eventMode? [#eventmode] \> `optional` **eventMode?**: `EventMode` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:225 Enable interaction events for the Container. Touch, pointer and mouse events are supported. #### Example [#example-16] ```ts const sprite = new Sprite(texture); // Enable standard interaction (like buttons) sprite.eventMode = 'static'; sprite.on('pointerdown', () => console.log('clicked!')); // Enable for moving objects sprite.eventMode = 'dynamic'; sprite.on('pointermove', () => updatePosition()); // Disable all interaction sprite.eventMode = 'none'; // Only allow child interactions sprite.eventMode = 'passive'; ``` Available modes: * `'none'`: Ignores all interaction events, even on its children. Best for pure visuals. * `'passive'`: **(default)** Does not emit events and ignores hit testing on itself and non-interactive children. Interactive children will still emit events. * `'auto'`: Does not emit events but is hit tested if parent is interactive. Same as `interactive = false` in v7. * `'static'`: Emit events and is hit tested. Same as `interactive = true` in v7. Best for buttons/UI. * `'dynamic'`: Like static but also receives synthetic events when pointer is idle. Best for moving objects. Performance tips: * Use `'none'` for pure visual elements * Use `'passive'` for containers with some interactive children * Use `'static'` for standard UI elements * Use `'dynamic'` only when needed for moving/animated elements #### Since [#since] 7.2.0 #### Inherited from [#inherited-from-21] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`eventMode`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) *** ### filters? [#filters] \> `optional` **filters?**: `Filter` | readonly `Filter`\[] Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:37 Sets the filters for the displayObject. Filters are visual effects that can be applied to any display object and its children. \> \[!IMPORTANT] This is a WebGL/WebGPU only feature and will be ignored by the canvas renderer. #### Example [#example-17] ```ts new Container({ filters: [new BlurFilter(2), new ColorMatrixFilter()], }); ``` #### See [#see-4] Filter For filter base class #### Inherited from [#inherited-from-22] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`filters`](/pixi-vn-json/docs-entry/interfaces/TextOptions#filters) *** ### height? [#height] \> `optional` **height?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:29 The height of the display object, in pixels. #### Example [#example-18] ```ts new Container({ height: 100}); ``` #### Default [#default-15] ```ts 0 ``` #### Inherited from [#inherited-from-23] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`height`](/pixi-vn-json/docs-entry/interfaces/TextOptions#height) *** ### hitArea? [#hitarea] \> `optional` **hitArea?**: `IHitArea` | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:297 Defines a custom hit area for pointer interaction testing. When set, this shape will be used for hit testing instead of the container's standard bounds. #### Example [#example-19] ```ts import { Rectangle, Circle, Sprite } from 'pixi.js'; // Rectangular hit area const button = new Sprite(texture); button.eventMode = 'static'; button.hitArea = new Rectangle(0, 0, 100, 50); // Circular hit area const icon = new Sprite(texture); icon.eventMode = 'static'; icon.hitArea = new Circle(32, 32, 32); // Custom hit area with polygon const custom = new Sprite(texture); custom.eventMode = 'static'; custom.hitArea = new Polygon([0,0, 100,0, 100,100, 0,100]); // Custom hit testing logic sprite.hitArea = { contains(x: number, y: number) { // Custom collision detection return x >= 0 && x <= width && y >= 0 && y <= height; } }; ``` #### Remarks [#remarks-3] * Takes precedence over the container's bounds for hit testing * Can improve performance by simplifying collision checks * Useful for irregular shapes or precise click areas #### Inherited from [#inherited-from-24] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`hitArea`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#hitarea) *** ### interactive? [#interactive] \> `optional` **interactive?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:238 Whether this object should fire UI events. This is an alias for `eventMode` set to `'static'` or `'passive'`. Setting this to true will enable interaction events like `pointerdown`, `click`, etc. Setting it to false will disable all interaction events on this object. #### See [#see-5] [Container.eventMode](/pixi-vn-json/docs-entry/interfaces/ImageSprite#eventmode) #### Example [#example-20] ```ts // Enable interaction events sprite.interactive = true; // Sets eventMode = 'static' sprite.interactive = false; // Sets eventMode = 'passive' ``` #### Inherited from [#inherited-from-25] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactive`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactive) *** ### interactiveChildren? [#interactivechildren] \> `optional` **interactiveChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:261 Controls whether children of this container can receive pointer events. Setting this to false allows PixiJS to skip hit testing on all children, improving performance for containers with many non-interactive children. #### Default [#default-16] ```ts true ``` #### Example [#example-21] ```ts // Container with many visual-only children const container = new Container(); container.interactiveChildren = false; // Skip hit testing children // Menu with interactive buttons const menu = new Container(); menu.interactiveChildren = true; // Test all children menu.addChild(button1, button2, button3); // Performance optimization background.interactiveChildren = false; foreground.interactiveChildren = true; ``` #### Inherited from [#inherited-from-26] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`interactiveChildren`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#interactivechildren) *** ### isRenderGroup? [#isrendergroup] \> `optional` **isRenderGroup?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:188 #### See [#see-6] Container#isRenderGroup #### Inherited from [#inherited-from-27] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`isRenderGroup`](/pixi-vn-json/docs-entry/interfaces/TextOptions#isrendergroup) *** ### label? [#label] \> `optional` **label?**: `string` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.d.ts:8 The instance label of the object. #### Default [#default-17] ```ts null ``` #### Inherited from [#inherited-from-28] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`label`](/pixi-vn-json/docs-entry/interfaces/TextOptions#label) *** ### mask? [#mask] \> `optional` **mask?**: `Mask` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:22 The mask to apply, which can be a Container or null. If null, it clears the existing mask. #### Example [#example-22] ````ts // Set a mask sprite.setMask({ mask: graphics, inverse: false, }); #### Inherited from [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`mask`](/pixi-vn-json/docs-entry/interfaces/TextOptions#mask) *** ### onclick? > `optional` **onclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`\> \| `null` Defined in: node\_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:317 Property-based event handler for the `click` event. Fired when a pointer device (mouse, touch, etc.) completes a click action. #### Example ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('click', (event) => { console.log('Sprite clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onclick = (event) => { console.log('Clicked at:', event.global.x, event.global.y); }; ```` #### Default [#default-18] ```ts null ``` #### Inherited from [#inherited-from-29] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onclick) *** ### oncontextmenu? [#oncontextmenu] > `optional` **oncontextmenu?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:338 Property-based event handler for the `contextmenu` event. Fired when the browser is about to open its context menu over the object, such as on a right click. Call `event.preventDefault()` to keep the browser menu closed. #### Example [#example-23] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('contextmenu', (event) => { event.preventDefault(); }); // Using property-based handler sprite.oncontextmenu = (event) => { event.preventDefault(); }; ``` #### Default [#default-19] ```ts null ``` #### Inherited from [#inherited-from-30] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`oncontextmenu`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#oncontextmenu) *** ### onglobalmousemove? [#onglobalmousemove] > `optional` **onglobalmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:451 Property-based event handler for the `globalmousemove` event. Fired when the mouse moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-24] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalmousemove', (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }); // Using property-based handler sprite.onglobalmousemove = (event) => { // Move sprite to mouse position sprite.position.copyFrom(event.global); }; ``` #### Default [#default-20] ```ts null ``` #### Remarks [#remarks-4] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-31] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalmousemove) *** ### onglobalpointermove? [#onglobalpointermove] > `optional` **onglobalpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:658 Property-based event handler for the `globalpointermove` event. Fired when the pointer moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-25] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globalpointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobalpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-21] ```ts null ``` #### Remarks [#remarks-5] * Fires even when the mouse is outside the object's bounds * Useful for drag operations or global mouse tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globaltouchmove` #### Inherited from [#inherited-from-32] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobalpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobalpointermove) *** ### onglobaltouchmove? [#onglobaltouchmove] > `optional` **onglobaltouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:969 Property-based event handler for the `globaltouchmove` event. Fired when a touch interaction moves anywhere, regardless of whether the pointer is over this object. The object must have `eventMode` set to 'static' or 'dynamic' to receive this event. #### Example [#example-26] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('globaltouchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onglobaltouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-22] ```ts null ``` #### Remarks [#remarks-6] * Fires even when the touch is outside the object's bounds * Useful for drag operations or global touch tracking * Must have `eventMode` set appropriately to receive events * Part of the global move events family along with `globalpointermove` and `globalmousemove` #### Inherited from [#inherited-from-33] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onglobaltouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onglobaltouchmove) *** ### onmousedown? [#onmousedown] > `optional` **onmousedown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:360 Property-based event handler for the `mousedown` event. Fired when a mouse button is pressed while the pointer is over the object. #### Example [#example-27] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousedown', (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }); // Using property-based handler sprite.onmousedown = (event) => { sprite.alpha = 0.5; // Visual feedback console.log('Mouse button:', event.button); }; ``` #### Default [#default-23] ```ts null ``` #### Inherited from [#inherited-from-34] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousedown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousedown) *** ### onmouseenter? [#onmouseenter] > `optional` **onmouseenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:380 Property-based event handler for the `mouseenter` event. Fired when the mouse pointer enters the bounds of the object. Does not bubble. #### Example [#example-28] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseenter', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseenter = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-24] ```ts null ``` #### Inherited from [#inherited-from-35] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseenter) *** ### onmouseleave? [#onmouseleave] > `optional` **onmouseleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:400 Property-based event handler for the `mouseleave` event. Fired when the pointer leaves the bounds of the display object. Does not bubble. #### Example [#example-29] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-25] ```ts null ``` #### Inherited from [#inherited-from-36] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseleave) *** ### onmousemove? [#onmousemove] > `optional` **onmousemove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:422 Property-based event handler for the `mousemove` event. Fired when the pointer moves while over the display object. #### Example [#example-30] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mousemove', (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }); // Using property-based handler sprite.onmousemove = (event) => { // Get coordinates relative to the sprite console.log('Local:', event.getLocalPosition(sprite)); }; ``` #### Default [#default-26] ```ts null ``` #### Inherited from [#inherited-from-37] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmousemove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmousemove) *** ### onmouseout? [#onmouseout] > `optional` **onmouseout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:471 Property-based event handler for the `mouseout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-31] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-27] ```ts null ``` #### Inherited from [#inherited-from-38] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseout) *** ### onmouseover? [#onmouseover] > `optional` **onmouseover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:491 Property-based event handler for the `mouseover` event. Fired when the pointer moves onto the bounds of the display object. #### Example [#example-32] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseover', (event) => { sprite.scale.set(1.1); }); // Using property-based handler sprite.onmouseover = (event) => { sprite.scale.set(1.1); }; ``` #### Default [#default-28] ```ts null ``` #### Inherited from [#inherited-from-39] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseover) *** ### onmouseup? [#onmouseup] > `optional` **onmouseup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:511 Property-based event handler for the `mouseup` event. Fired when a mouse button is released over the display object. #### Example [#example-33] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-29] ```ts null ``` #### Inherited from [#inherited-from-40] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseup) *** ### onmouseupoutside? [#onmouseupoutside] > `optional` **onmouseupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:532 Property-based event handler for the `mouseupoutside` event. Fired when a mouse button is released outside the display object that initially registered a mousedown. #### Example [#example-34] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('mouseupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onmouseupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-30] ```ts null ``` #### Inherited from [#inherited-from-41] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onmouseupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onmouseupoutside) *** ### onpointercancel? [#onpointercancel] > `optional` **onpointercancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:552 Property-based event handler for the `pointercancel` event. Fired when a pointer device interaction is canceled or lost. #### Example [#example-35] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointercancel', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointercancel = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-31] ```ts null ``` #### Inherited from [#inherited-from-42] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointercancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointercancel) *** ### onpointerdown? [#onpointerdown] > `optional` **onpointerdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:572 Property-based event handler for the `pointerdown` event. Fired when a pointer device button (mouse, touch, pen, etc.) is pressed. #### Example [#example-36] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerdown', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointerdown = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-32] ```ts null ``` #### Inherited from [#inherited-from-43] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerdown) *** ### onpointerenter? [#onpointerenter] > `optional` **onpointerenter?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:592 Property-based event handler for the `pointerenter` event. Fired when a pointer device enters the bounds of the display object. Does not bubble. #### Example [#example-37] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerenter', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerenter = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-33] ```ts null ``` #### Inherited from [#inherited-from-44] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerenter`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerenter) *** ### onpointerleave? [#onpointerleave] > `optional` **onpointerleave?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:611 Property-based event handler for the `pointerleave` event. Fired when a pointer device leaves the bounds of the display object. Does not bubble. #### Example [#example-38] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerleave', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerleave = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-34] ```ts null ``` #### Inherited from [#inherited-from-45] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerleave`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerleave) *** ### onpointermove? [#onpointermove] > `optional` **onpointermove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:631 Property-based event handler for the `pointermove` event. Fired when a pointer device moves while over the display object. #### Example [#example-39] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointermove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.onpointermove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-35] ```ts null ``` #### Inherited from [#inherited-from-46] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointermove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointermove) *** ### onpointerout? [#onpointerout] > `optional` **onpointerout?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:678 Property-based event handler for the `pointerout` event. Fired when the pointer moves out of the bounds of the display object. #### Example [#example-40] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerout', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerout = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-36] ```ts null ``` #### Inherited from [#inherited-from-47] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerout`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerout) *** ### onpointerover? [#onpointerover] > `optional` **onpointerover?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:698 Property-based event handler for the `pointerover` event. Fired when the pointer moves over the bounds of the display object. #### Example [#example-41] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerover', (event) => { sprite.scale.set(1.2); }); // Using property-based handler sprite.onpointerover = (event) => { sprite.scale.set(1.2); }; ``` #### Default [#default-37] ```ts null ``` #### Inherited from [#inherited-from-48] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerover`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerover) *** ### onpointertap? [#onpointertap] > `optional` **onpointertap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:718 Property-based event handler for the `pointertap` event. Fired when a pointer device completes a tap action (e.g., touch or mouse click). #### Example [#example-42] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointertap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onpointertap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-38] ```ts null ``` #### Inherited from [#inherited-from-49] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointertap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointertap) *** ### onpointerup? [#onpointerup] > `optional` **onpointerup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:738 Property-based event handler for the `pointerup` event. Fired when a pointer device button (mouse, touch, pen, etc.) is released. #### Example [#example-43] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-39] ```ts null ``` #### Inherited from [#inherited-from-50] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerup) *** ### onpointerupoutside? [#onpointerupoutside] > `optional` **onpointerupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:759 Property-based event handler for the `pointerupoutside` event. Fired when a pointer device button is released outside the bounds of the display object that initially registered a pointerdown. #### Example [#example-44] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('pointerupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onpointerupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-40] ```ts null ``` #### Inherited from [#inherited-from-51] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onpointerupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onpointerupoutside) *** ### onRender? [#onrender] > `optional` **onRender?**: ((`renderer`) => `void`) | `null` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.d.ts:25 This callback is used when the container is rendered. It runs every frame during the render process, making it ideal for per-frame updates and animations. > \[!NOTE] In v7 many users used `updateTransform` for this, however the way v8 renders objects is different > and "updateTransform" is no longer called every frame #### Example [#example-45] ```ts // Basic rotation animation const container = new Container(); container.onRender = () => { container.rotation += 0.01; }; // Cleanup when done container.onRender = null; // Removes callback ``` #### Param [#param] **renderer** The renderer instance #### See [#see-7] Renderer For renderer capabilities #### Inherited from [#inherited-from-52] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`onRender`](/pixi-vn-json/docs-entry/interfaces/TextOptions#onrender) *** ### onrightclick? [#onrightclick] > `optional` **onrightclick?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:780 Property-based event handler for the `rightclick` event. Fired when the right mouse button is pressed and released on the object. To keep the browser's context menu closed, listen for `contextmenu` instead. #### Example [#example-46] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightclick', (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }); // Using property-based handler sprite.onrightclick = (event) => { console.log('Right-clicked at:', event.global.x, event.global.y); }; ``` #### Default [#default-41] ```ts null ``` #### Inherited from [#inherited-from-53] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightclick`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightclick) *** ### onrightdown? [#onrightdown] > `optional` **onrightdown?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:800 Property-based event handler for the `rightdown` event. Fired when a right mouse button is pressed down over the display object. #### Example [#example-47] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightdown', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.onrightdown = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-42] ```ts null ``` #### Inherited from [#inherited-from-54] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightdown`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightdown) *** ### onrightup? [#onrightup] > `optional` **onrightup?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:820 Property-based event handler for the `rightup` event. Fired when a right mouse button is released over the display object. #### Example [#example-48] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightup', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightup = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-43] ```ts null ``` #### Inherited from [#inherited-from-55] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightup`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightup) *** ### onrightupoutside? [#onrightupoutside] > `optional` **onrightupoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:841 Property-based event handler for the `rightupoutside` event. Fired when a right mouse button is released outside the bounds of the display object that initially registered a rightdown. #### Example [#example-49] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('rightupoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.onrightupoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-44] ```ts null ``` #### Inherited from [#inherited-from-56] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onrightupoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onrightupoutside) *** ### ontap? [#ontap] > `optional` **ontap?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:861 Property-based event handler for the `tap` event. Fired when a tap action (touch) is completed on the object. #### Example [#example-50] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('tap', (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontap = (event) => { console.log('Sprite tapped at:', event.global.x, event.global.y); }; ``` #### Default [#default-45] ```ts null ``` #### Inherited from [#inherited-from-57] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontap`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontap) *** ### ontouchcancel? [#ontouchcancel] > `optional` **ontouchcancel?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:881 Property-based event handler for the `touchcancel` event. Fired when a touch interaction is canceled, such as when the touch is interrupted. #### Example [#example-51] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchcancel', (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchcancel = (event) => { console.log('Touch canceled at:', event.global.x, event.global.y); }; ``` #### Default [#default-46] ```ts null ``` #### Inherited from [#inherited-from-58] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchcancel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchcancel) *** ### ontouchend? [#ontouchend] > `optional` **ontouchend?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:901 Property-based event handler for the `touchend` event. Fired when a touch interaction ends, such as when the finger is lifted from the screen. #### Example [#example-52] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchend', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchend = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-47] ```ts null ``` #### Inherited from [#inherited-from-59] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchend`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchend) *** ### ontouchendoutside? [#ontouchendoutside] > `optional` **ontouchendoutside?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:922 Property-based event handler for the `touchendoutside` event. Fired when a touch interaction ends outside the bounds of the display object that initially registered a touchstart. #### Example [#example-53] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchendoutside', (event) => { sprite.scale.set(1.0); }); // Using property-based handler sprite.ontouchendoutside = (event) => { sprite.scale.set(1.0); }; ``` #### Default [#default-48] ```ts null ``` #### Inherited from [#inherited-from-60] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchendoutside`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchendoutside) *** ### ontouchmove? [#ontouchmove] > `optional` **ontouchmove?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:942 Property-based event handler for the `touchmove` event. Fired when a touch interaction moves while over the display object. #### Example [#example-54] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchmove', (event) => { sprite.position.set(event.global.x, event.global.y); }); // Using property-based handler sprite.ontouchmove = (event) => { sprite.position.set(event.global.x, event.global.y); }; ``` #### Default [#default-49] ```ts null ``` #### Inherited from [#inherited-from-61] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchmove`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchmove) *** ### ontouchstart? [#ontouchstart] > `optional` **ontouchstart?**: `FederatedEventHandler`\<`FederatedPointerEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:989 Property-based event handler for the `touchstart` event. Fired when a touch interaction starts, such as when a finger touches the screen. #### Example [#example-55] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('touchstart', (event) => { sprite.scale.set(0.9); }); // Using property-based handler sprite.ontouchstart = (event) => { sprite.scale.set(0.9); }; ``` #### Default [#default-50] ```ts null ``` #### Inherited from [#inherited-from-62] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`ontouchstart`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#ontouchstart) *** ### onwheel? [#onwheel] > `optional` **onwheel?**: `FederatedEventHandler`\<`FederatedWheelEvent`> | `null` Defined in: node_modules/pixi.js/lib/events/FederatedEventTarget.d.ts:1011 Property-based event handler for the `wheel` event. Fired when the mouse wheel is scrolled while over the display object. #### Example [#example-56] ```ts const sprite = new Sprite(texture); sprite.eventMode = 'static'; // Using emitter handler sprite.on('wheel', (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }); // Using property-based handler sprite.onwheel = (event) => { sprite.scale.x += event.deltaY * 0.01; // Zoom in/out sprite.scale.y += event.deltaY * 0.01; // Zoom in/out }; ``` #### Default [#default-51] ```ts null ``` #### Inherited from [#inherited-from-63] [`ImageSprite`](/pixi-vn-json/docs-entry/interfaces/ImageSprite).[`onwheel`](/pixi-vn-json/docs-entry/interfaces/ImageSprite#onwheel) *** ### origin? [#origin] > `optional` **origin?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:334 The origin point around which the container rotates and scales. Unlike pivot, changing origin will not move the container's position. #### Example [#example-57] ```ts new Container({ origin: new Point(100, 100) }); // Rotate around point (100,100) new Container({ origin: 50 }); // Rotate around point (50, 50) new Container({ origin: { x: 150, y: 150 } }); // Rotate around point (150, 150) ``` #### Inherited from [#inherited-from-64] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`origin`](/pixi-vn-json/docs-entry/interfaces/TextOptions#origin) *** ### parent? [#parent] > `readonly` `optional` **parent?**: `Container`\<`ContainerChild`> Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:273 The display object container that contains this display object. This represents the parent-child relationship in the display tree. #### See [#see-8] * Container#addChild For adding to a parent * Container#removeChild For removing from parent #### Inherited from [#inherited-from-65] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`parent`](/pixi-vn-json/docs-entry/interfaces/TextOptions#parent) *** ### percentagePosition? [#percentageposition] > `optional` **percentagePosition?**: `number` | `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:145 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-66] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`percentagePosition`](/pixi-vn-json/docs-entry/interfaces/TextOptions#percentageposition) *** ### percentageX? [#percentagex] > `optional` **percentageX?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:155 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-67] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`percentageX`](/pixi-vn-json/docs-entry/interfaces/TextOptions#percentagex) *** ### percentageY? [#percentagey] > `optional` **percentageY?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:165 is a way to set the position of the element in the canvas calculated in percentage. For example, if you set the PixiContainer.pivot to 0.5, and: * if you set percentagePosition to 0.5, the element will be in the center of the canvas. * If you set percentagePosition to 0, the center of the element will be in the left end and top end of the canvas. * If you set percentagePosition to 1, the center of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does affect the percentagePosition. #### Inherited from [#inherited-from-68] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`percentageY`](/pixi-vn-json/docs-entry/interfaces/TextOptions#percentagey) *** ### pivot? [#pivot] > `optional` **pivot?**: `number` | `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:323 The center of rotation, scaling, and skewing for this display object in its local space. The `position` is the projection of `pivot` in the parent's local space. By default, the pivot is the origin (0, 0). #### Example [#example-58] ```ts new Container({ pivot: new Point(100, 200) }); // Set pivot to (100, 200) new Container({ pivot: 50 }); // Set pivot to (50, 50) new Container({ pivot: { x: 150, y: 150 } }); // Set pivot to (150, 150) ``` #### Inherited from [#inherited-from-69] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`pivot`](/pixi-vn-json/docs-entry/interfaces/TextOptions#pivot) *** ### position? [#position] > `optional` **position?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:343 The coordinate of the object relative to the local coordinates of the parent. #### Example [#example-59] ```ts new Container({ position: new Point(100, 200) }); // Set position to (100, 200) new Container({ position: { x: 150, y: 150 } }); // Set position to (150, 150) ``` #### Inherited from [#inherited-from-70] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`position`](/pixi-vn-json/docs-entry/interfaces/TextOptions#position) *** ### renderable? [#renderable] > `optional` **renderable?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:286 Controls whether this object can be rendered. If false the object will not be drawn, but the transform will still be updated. This is different from visible, which skips transform updates. #### Example [#example-60] ```ts new Container({ renderable: false }); // Will not be drawn, but transforms will update ``` #### Default [#default-52] ```ts true ``` #### See [#see-9] * Container#visible For skipping transform updates * Container#alpha For transparency #### Inherited from [#inherited-from-71] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`renderable`](/pixi-vn-json/docs-entry/interfaces/TextOptions#renderable) *** ### resolution? [#resolution] > `optional` **resolution?**: `number` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:175 The resolution/device pixel ratio for rendering. Higher values result in sharper text at the cost of performance. Set to null for auto-resolution based on device. #### Example [#example-61] ```ts const text = new Text({ text: 'Hello Pixi!', resolution: 2 // High DPI for sharper text }); const autoResText = new Text({ text: 'Auto Resolution', resolution: null // Use device's pixel ratio }); ``` #### Default [#default-53] ```ts null ``` #### Inherited from [#inherited-from-72] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`resolution`](/pixi-vn-json/docs-entry/interfaces/TextOptions#resolution) *** ### rotation? [#rotation] > `optional` **rotation?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:298 The rotation of the object in radians. > \[!NOTE] 'rotation' and 'angle' have the same effect on a display object; > rotation is in radians, angle is in degrees. #### Example [#example-62] ```ts new Container({ rotation: Math.PI / 4 }); // Rotate 45 degrees new Container({ rotation: Math.PI / 2 }); // Rotate 90 degrees ``` #### Inherited from [#inherited-from-73] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`rotation`](/pixi-vn-json/docs-entry/interfaces/TextOptions#rotation) *** ### roundPixels? [#roundpixels] > `optional` **roundPixels?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:225 Whether to round the x/y position to whole pixels. Enabling can prevent anti-aliasing of text edges but may cause slight position shifting. #### Example [#example-63] ````ts const text = new Text({ text: 'Rounded Text', roundPixels: true // Rounds position to whole pixels }); @default false #### Inherited from [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`roundPixels`](/pixi-vn-json/docs-entry/interfaces/TextOptions#roundpixels) *** ### scale? > `optional` **scale?**: `number` \| `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:310 The scale factors of this object along the local coordinate axes. The default scale is (1, 1). #### Example ```ts new Container({ scale: new Point(2, 2) }); // Scale by 2x new Container({ scale: 0.5 }); // Scale by 0.5x new Container({ scale: { x: 1.5, y: 1.5 } }); // Scale by 1.5x ```` #### Inherited from [#inherited-from-74] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`scale`](/pixi-vn-json/docs-entry/interfaces/TextOptions#scale) *** ### setMask? [#setmask] \> `optional` **setMask?**: (`options`) => `void` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.d.ts:23 #### Parameters [#parameters-1] ##### options [#options] `Partial`\<`MaskOptionsAndMask`> #### Returns [#returns-1] `void` #### Inherited from [#inherited-from-75] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`setMask`](/pixi-vn-json/docs-entry/interfaces/TextOptions#setmask) *** ### skew? [#skew] \> `optional` **skew?**: `PointData` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:354 The skew factor for the object in radians. Skewing is a transformation that distorts the object by rotating it differently at each point, creating a non-uniform shape. #### Example [#example-64] ```ts new Container({ skew: new Point(0.1, 0.2) }); // Skew by 0.1 radians on x and 0.2 radians on y new Container({ skew: { x: 0.1, y: 0.2 } }); // Skew by 0.1 radians on x and 0.2 radians on y ``` #### Default [#default-54] ```ts { x: 0, y: 0 } ``` #### Inherited from [#inherited-from-76] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`skew`](/pixi-vn-json/docs-entry/interfaces/TextOptions#skew) *** ### sortableChildren? [#sortablechildren] \> `optional` **sortableChildren?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:48 If set to true, the container will sort its children by `zIndex` value when the next render is called, or manually if `sortChildren()` is called. This actually changes the order of elements in the array of children, so it will affect the rendering order. \> \[!NOTE] Also be aware of that this may not work nicely with the `addChildAt()` function, \> as the `zIndex` sorting may cause the child to automatically sorted to another position. #### Example [#example-65] ```ts container.sortableChildren = true; ``` #### Default [#default-55] ```ts false ``` #### Inherited from [#inherited-from-77] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`sortableChildren`](/pixi-vn-json/docs-entry/interfaces/TextOptions#sortablechildren) *** ### sortDirty? [#sortdirty] \> `optional` **sortDirty?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:32 **`Internal`** Should children be sorted by zIndex at the next render call. Will get automatically set to true if a new child is added, or if a child's zIndex changes. #### Default [#default-56] ```ts false @internal ``` #### Inherited from [#inherited-from-78] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`sortDirty`](/pixi-vn-json/docs-entry/interfaces/TextOptions#sortdirty) *** ### style? [#style] \> `optional` **style?**: `TextStyle` | `TextStyleOptions` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:213 The style configuration for the text. Can be a TextStyle instance or a configuration object. Supports canvas text styles, HTML text styles, and bitmap text styles. #### Example [#example-66] ````ts const text = new Text({ text: 'Styled Text', style: { fontSize: 24, fill: 0xff1010, // Red color fontFamily: 'Arial', align: 'center', // Center alignment stroke: { color: '#4a1850', width: 5 }, // Purple stroke dropShadow: { color: '#000000', // Black shadow blur: 4, // Shadow blur distance: 6 // Shadow distance } } }); const htmlText = new HTMLText({ text: 'HTML Styled Text', style: { fontSize: '20px', fill: 'blue', fontFamily: 'Verdana', } }); const bitmapText = new BitmapText({ text: 'Bitmap Styled Text', style: { fontName: 'Arial', fontSize: 32, } }) #### Inherited from [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`style`](/pixi-vn-json/docs-entry/interfaces/TextOptions#style) *** ### tabIndex? > `optional` **tabIndex?**: `number` Defined in: node\_modules/pixi.js/lib/accessibility/accessibilityTarget.d.ts:72 Sets the tabIndex of the shadow div. You can use this to set the order of the elements when using the tab key to navigate. #### Default ```ts 0 ```` #### Example [#example-67] ```js const container = new Container(); container.accessible = true; container.tabIndex = 0; const sprite = new Sprite(texture); sprite.accessible = true; sprite.tabIndex = 1; ``` #### Inherited from [#inherited-from-79] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`tabIndex`](/pixi-vn-json/docs-entry/interfaces/TextOptions#tabindex) *** ### text? [#text] > `optional` **text?**: `TextString` Defined in: node_modules/pixi.js/lib/scene/text/AbstractText.d.ts:157 The text content to display. Use '\n' for line breaks. Accepts strings, numbers, or objects with toString() method. #### Example [#example-68] ```ts const text = new Text({ text: 'Hello Pixi!', }); const multilineText = new Text({ text: 'Line 1\nLine 2\nLine 3', }); const numberText = new Text({ text: 12345, // Will be converted to '12345' }); const objectText = new Text({ text: { toString: () => 'Object Text' }, // Custom toString }); ``` #### Default [#default-57] ```ts '' ``` #### Inherited from [#inherited-from-80] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`text`](/pixi-vn-json/docs-entry/interfaces/TextOptions#text) *** ### textureStyle? [#texturestyle] > `optional` **textureStyle?**: `TextureStyle` | `TextureStyleOptions` Defined in: node_modules/pixi.js/lib/scene/text/Text.d.ts:56 Optional texture style for the text texture. Only `scaleMode` is read (`nearest` or `linear`): the text gets a pooled texture with that scale mode. Every other field is ignored. #### Example [#example-69] ```ts const text = new Text({ text: 'Crisp Text', textureStyle: { scaleMode: 'nearest', // Pixel-perfect scaling } }); ``` #### Advanced [#advanced-3] #### Inherited from [#inherited-from-81] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`textureStyle`](/pixi-vn-json/docs-entry/interfaces/TextOptions#texturestyle) *** ### tint? [#tint] > `optional` **tint?**: `ColorSource` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:222 The tint applied to the sprite. This can be any valid ColorSource. #### Example [#example-70] ```ts new Container({ tint: 0xff0000 }); // Red tint new Container({ tint: 'blue' }); // Blue tint new Container({ tint: '#00ff00' }); // Green tint new Container({ tint: 'rgb(0,0,255)' }); // Blue tint ``` #### Default [#default-58] ```ts 0xFFFFFF ``` #### See [#see-10] * Container#alpha For transparency * Container#visible For visibility control #### Inherited from [#inherited-from-82] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`tint`](/pixi-vn-json/docs-entry/interfaces/TextOptions#tint) *** ### visible? [#visible] > `optional` **visible?**: `boolean` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:367 The visibility of the object. If false the object will not be drawn, and the transform will not be updated. #### Example [#example-71] ```ts new Container({ visible: false }); // Will not be drawn and transforms will not update new Container({ visible: true }); // Will be drawn and transforms will update ``` #### Default [#default-59] ```ts true ``` #### See [#see-11] * Container#renderable For render-only control * Container#alpha For transparency #### Inherited from [#inherited-from-83] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`visible`](/pixi-vn-json/docs-entry/interfaces/TextOptions#visible) *** ### width? [#width] > `optional` **width?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.d.ts:20 The width of the display object, in pixels. #### Example [#example-72] ```ts new Container({ width: 100}); ``` #### Default [#default-60] ```ts 0 ``` #### Inherited from [#inherited-from-84] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`width`](/pixi-vn-json/docs-entry/interfaces/TextOptions#width) *** ### x? [#x] > `optional` **x?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:377 The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x #### Example [#example-73] ```ts new Container({ x: 100 }); // Set x position to 100 ``` #### Inherited from [#inherited-from-85] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`x`](/pixi-vn-json/docs-entry/interfaces/TextOptions#x) *** ### xAlign? [#xalign] > `optional` **xAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:125 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-86] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`xAlign`](/pixi-vn-json/docs-entry/interfaces/TextOptions#xalign) *** ### y? [#y] > `optional` **y?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/Container.d.ts:387 The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y #### Example [#example-74] ```ts new Container({ y: 200 }); // Set y position to 200 ``` #### Inherited from [#inherited-from-87] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`y`](/pixi-vn-json/docs-entry/interfaces/TextOptions#y) *** ### yAlign? [#yalign] > `optional` **yAlign?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/ContainerMemory-BLRfP4w\_.d.ts:135 is a way to set the position of the element in the canvas. compared to position, align, it is a percentage used to determine the proximity from the edges of the canvas. For example: * if you set align to 0.5, the element will be in the center of the canvas. * if you set align to 0, the left end and a top end of the element will be in the left end and top end of the canvas. * if you set align to 1, the right end and a bottom end of the element will be in the right end and bottom end of the canvas. **Important:** The PixiContainer.pivot field does not affect the alignment. #### Inherited from [#inherited-from-88] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`yAlign`](/pixi-vn-json/docs-entry/interfaces/TextOptions#yalign) *** ### zIndex? [#zindex] > `optional` **zIndex?**: `number` Defined in: node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.d.ts:24 The zIndex of the container. Controls the rendering order of children within their parent container. A higher value will mean it will be moved towards the front of the rendering order. #### Example [#example-75] ```ts // Add in any order container.addChild(character, background, foreground); // Adjust rendering order background.zIndex = 0; character.zIndex = 1; foreground.zIndex = 2; ``` #### See [#see-12] * [Container#sortableChildren](/pixi-vn-json/docs-entry/interfaces/ImageSprite#sortablechildren) For enabling sorting * Container#sortChildren For manual sorting #### Default [#default-61] ```ts 0 ``` #### Inherited from [#inherited-from-89] [`TextOptions`](/pixi-vn-json/docs-entry/interfaces/TextOptions).[`zIndex`](/pixi-vn-json/docs-entry/interfaces/TextOptions#zindex) # Interface: PixiVNJsonIfElse (/pixi-vn-json/index/interfaces/PixiVNJsonIfElse) Defined in: [src/schema/PixiVNJsonIfElse.ts:8](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonIfElse.ts#L8) If-Else condition for PixiVNJson ## Type Parameters [#type-parameters] ### Then [#then] `Then` ## Properties [#properties] ### condition [#condition] \> **condition**: [`PixiVNJsonConditions`](/pixi-vn-json/index/type-aliases/PixiVNJsonConditions) Defined in: [src/schema/PixiVNJsonIfElse.ts:20](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonIfElse.ts#L20) The list of conditions to be checked. if is a StorageElementType or a [PixiVNJsonValueGet](/pixi-vn-json/index/type-aliases/PixiVNJsonValueGet): * if is a array or object, the condition is true if not empty * if is a string, the condition is true if not empty * if is a number, the condition is true if not zero * if is a boolean, the condition is true if true * if is null or undefined, the condition is false *** ### else? [#else] \> `optional` **else?**: `PixiVNJsonIfElse`\<`Then`> | `Then` Defined in: [src/schema/PixiVNJsonIfElse.ts:28](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonIfElse.ts#L28) The value to be returned if the condition is false. *** ### then [#then-1] \> **then**: `PixiVNJsonIfElse`\<`Then`> | `Then` Defined in: [src/schema/PixiVNJsonIfElse.ts:24](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonIfElse.ts#L24) The value to be returned if the condition is true. *** ### type [#type] \> **type**: `"ifelse"` Defined in: [src/schema/PixiVNJsonIfElse.ts:9](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonIfElse.ts#L9) # Interface: PixiVNJsonSoundEditProps (/pixi-vn-json/index/interfaces/PixiVNJsonSoundEditProps) Defined in: [src/schema/PixiVNJsonSound.ts:56](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonSound.ts#L56) Partial set of sound properties that can be applied when editing a currently playing sound. ## Extends [#extends] * `Partial`\<`Pick`\<[`MediaInterface`](/pixi-vn-json/docs-entry/interfaces/MediaInterface), `"playbackRate"` | `"mute"` | `"loop"` | `"paused"`>> * `Partial`\<`Pick`\<[`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel), `"volume"`>> ## Properties [#properties] ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:163 #### Inherited from [#inherited-from] `Partial.loop` *** ### mute? [#mute] \> `optional` **mute?**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:97 #### Inherited from [#inherited-from-1] `Partial.mute` *** ### paused? [#paused] \> `optional` **paused?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:7 Whether the sound is currently paused. #### Inherited from [#inherited-from-2] [`MediaInterface`](/pixi-vn-json/docs-entry/interfaces/MediaInterface).[`paused`](/pixi-vn-json/docs-entry/interfaces/MediaInterface#paused) *** ### playbackRate? [#playbackrate] \> `optional` **playbackRate?**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:174 #### Inherited from [#inherited-from-3] `Partial.playbackRate` *** ### volume? [#volume] \> `optional` **volume?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:35 The volume of this sound in the linear range \[0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player. #### Inherited from [#inherited-from-4] [`PixiVNJsonSoundPlayProps`](/pixi-vn-json/index/interfaces/PixiVNJsonSoundPlayProps).[`volume`](/pixi-vn-json/index/interfaces/PixiVNJsonSoundPlayProps#volume) # Interface: PixiVNJsonSoundPlayProps (/pixi-vn-json/index/interfaces/PixiVNJsonSoundPlayProps) Defined in: [src/schema/PixiVNJsonSound.ts:6](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonSound.ts#L6) Playback options such as volume, loop, channel, and start offset. ## Extends [#extends] * [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel) ## Properties [#properties] ### autostart? [#autostart] \> `optional` **autostart?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:9 #### Inherited from [#inherited-from] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`autostart`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#autostart) *** ### channel? [#channel] \> `optional` **channel?**: `string` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:76 The alias of the audio channel to play the sound on. If the channel does not exist it will be created automatically. Defaults to `SoundManagerInterface.defaultChannelAlias` ("general"). #### Inherited from [#inherited-from-1] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`channel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#channel) *** ### delay? [#delay] \> `optional` **delay?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:64 The delay in seconds before playback starts. If specified, playback is scheduled to begin after the delay has elapsed rather than starting immediately in a paused state. #### Inherited from [#inherited-from-2] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`delay`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#delay) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:68 The offset in seconds from the start of the sound at which to begin playback. #### Inherited from [#inherited-from-3] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`elapsed`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#elapsed) *** ### fadeIn? [#fadein] \> `optional` **fadeIn?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:13 #### Inherited from [#inherited-from-4] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`fadeIn`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#fadein) *** ### fadeOut? [#fadeout] \> `optional` **fadeOut?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:14 #### Inherited from [#inherited-from-5] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`fadeOut`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#fadeout) *** ### filters? [#filters] \> `optional` **filters?**: `ToneAudioNode`\<`ToneWithContextOptions`>\[] Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:48 A collection of audio filters/effects to apply to this sound. Install "tone" for the full list of available filters. #### Example [#example] ```ts import * as Tone from "tone"; const filters = [new Tone.FeedbackDelay("8n", 0.5)]; ``` #### Inherited from [#inherited-from-6] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`filters`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#filters) *** ### loop? [#loop] \> `optional` **loop?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:8 #### Inherited from [#inherited-from-7] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`loop`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#loop) *** ### loopEnd? [#loopend] \> `optional` **loopEnd?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:11 #### Inherited from [#inherited-from-8] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`loopEnd`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#loopend) *** ### loopStart? [#loopstart] \> `optional` **loopStart?**: `Time` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:10 #### Inherited from [#inherited-from-9] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`loopStart`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#loopstart) *** ### mute? [#mute] \> `optional` **mute?**: `boolean` Defined in: node_modules/tone/build/esm/source/Source.d.ts:10 #### Inherited from [#inherited-from-10] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`mute`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#mute) *** ### ~~muted?~~ [#muted] \> `optional` **muted?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:56 #### Deprecated [#deprecated] Use [mute](#mute) instead. #### Inherited from [#inherited-from-11] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`muted`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#muted) *** ### playbackRate? [#playbackrate] \> `optional` **playbackRate?**: `number` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:7 #### Inherited from [#inherited-from-12] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`playbackRate`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#playbackrate) *** ### reverse? [#reverse] \> `optional` **reverse?**: `boolean` Defined in: node_modules/tone/build/esm/source/buffer/Player.d.ts:12 #### Inherited from [#inherited-from-13] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`reverse`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#reverse) *** ### ~~speed?~~ [#speed] \> `optional` **speed?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:52 #### Deprecated [#deprecated-1] Use [playbackRate](#playbackrate) instead. #### Inherited from [#inherited-from-14] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`speed`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#speed) *** ### volume? [#volume] \> `optional` **volume?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/SoundGameState-C_6ZsQX6.d.ts:35 The volume of this sound in the linear range \[0, 1], where 0 is silence and 1 is full volume. This is converted to decibels internally before being passed to the Tone.js Player. #### Inherited from [#inherited-from-15] [`SoundPlayOptionsWithChannel`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel).[`volume`](/pixi-vn-json/docs-entry/interfaces/SoundPlayOptionsWithChannel#volume) # Interface: PushInOutTransitionProps (/pixi-vn-json/index/interfaces/PushInOutTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:102](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L102) Configuration options for the push transition (direction, duration, easing, etc.). ## Extends [#extends] * [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`aliasToRemoveAfter`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#aliastoremoveafter) *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`animateOldComponentOut`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`autoplay`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`bounce`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`bounceDamping`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`bounceStiffness`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`completeOnContinue`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`damping`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`delay`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`delayChildren`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1704 The direction of the push effect. #### Default [#default-3] ```ts "right" ``` #### Inherited from [#inherited-from-10] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`direction`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#direction) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`driver`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`duration`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`ease`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`elapsed`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`from`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`inherit`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-17] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`isSync`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`mass`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`max`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`min`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#min) *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-21] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`mixer`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#mixer) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-22] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`modifyTarget`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#modifytarget) *** ### motionBlur? [#motionblur] \> `optional` **motionBlur?**: `number` | `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1710 Adds a motion-blur trail along the movement, ramping up mid-move and back to sharp at the end. `true` uses a 40px trail; a number sets the trail length (pixels). #### Default [#default-5] ```ts false ``` #### Inherited from [#inherited-from-23] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`motionBlur`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#motionblur) *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-24] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`out`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#out) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-25] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`path`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-26] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`power`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-27] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`reduceMotion`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-31] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`restDelta`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-32] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`restSpeed`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-33] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`skipAnimations`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#skipanimations) *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-34] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`staggerChildren`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#staggerchildren) *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-35] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`staggerDirection`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#staggerdirection) *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-36] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`startTime`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#starttime) *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-37] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`stiffness`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#stiffness) *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-38] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`tickerAliasToResume`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#tickeraliastoresume) *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-39] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`tickerIdToResume`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#tickeridtoresume) *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-40] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`timeConstant`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#timeconstant) *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-41] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`times`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#times) *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-42] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`type`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#type) *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-43] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`velocity`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#velocity) *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-44] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`visualDuration`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#visualduration) *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-45] [`PushInOutProps`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps).[`when`](/pixi-vn-json/docs-entry/interfaces/PushInOutProps#when) # Interface: RippleTransitionProps (/pixi-vn-json/index/interfaces/RippleTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:292](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L292) Configuration options for the ripple transition. ## Extends [#extends] * `RippleInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `RippleInOutProps.aliasToRemoveAfter` *** ### amplitude? [#amplitude] \> `optional` **amplitude?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1927 The amplitude of the ripple. #### Default [#default-1] ```ts 30 ``` #### Inherited from [#inherited-from-1] `RippleInOutProps.amplitude` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-2] `RippleInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-3] `RippleInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-4] `RippleInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-5] `RippleInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-6] `RippleInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-7] `RippleInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-8] `RippleInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-9] `RippleInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-10] `RippleInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] `RippleInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] `RippleInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] `RippleInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] `RippleInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1861 Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn-json/index/interfaces/BlurTransitionProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-15] `RippleInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-16] `RippleInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `RippleInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-18] `RippleInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `RippleInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `RippleInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-21] `RippleInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-22] `RippleInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `RippleInOutProps.modifyTarget` *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1922 The point the ripple starts from, normalized to the component's own bounds. #### Default [#default-5] ```ts { x: 0.5, y: 0.5 } ``` #### Inherited from [#inherited-from-24] `RippleInOutProps.origin` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-25] `RippleInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-26] `RippleInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-27] `RippleInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-28] `RippleInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `RippleInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `RippleInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-34] `RippleInOutProps.skipAnimations` *** ### speed? [#speed] \> `optional` **speed?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1938 The speed (pixels-per-second, in the ripple's own time) the ring travels outward. The ring always travels until it has left the component; `speed` only shapes the ring. #### Default [#default-6] ```ts 500 ``` #### Inherited from [#inherited-from-35] `RippleInOutProps.speed` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `RippleInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `RippleInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `RippleInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `RippleInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-40] `RippleInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-41] `RippleInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-42] `RippleInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-43] `RippleInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-44] `RippleInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-45] `RippleInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-46] `RippleInOutProps.visualDuration` *** ### wavelength? [#wavelength] \> `optional` **wavelength?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1932 The wavelength of the ripple. #### Default [#default-10] ```ts 160 ``` #### Inherited from [#inherited-from-47] `RippleInOutProps.wavelength` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-48] `RippleInOutProps.when` # Interface: SplitTransitionProps (/pixi-vn-json/index/interfaces/SplitTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:159](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L159) Configuration options for the split transition. ## Extends [#extends] * `SplitInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `SplitInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `SplitInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `SplitInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `SplitInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `SplitInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `SplitInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `SplitInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `SplitInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `SplitInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `SplitInOutProps.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"inward"` | `"outward"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1764 `"inward"`: reveal from the edges towards the split line; conceal from the split line outwards. `"outward"`: reveal from the split line towards the edges; conceal from the edges inwards. During replacement, the old component uses the opposite mode so its conceal follows the reveal. #### Default [#default-3] ```ts "inward" ``` #### Inherited from [#inherited-from-10] `SplitInOutProps.direction` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] `SplitInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] `SplitInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] `SplitInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] `SplitInOutProps.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] `SplitInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] `SplitInOutProps.inherit` *** ### invert? [#invert] \> `optional` **invert?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1721 If true, the effect is inverted: a "reveal" mask conceals instead, and vice versa. #### Default [#default-4] ```ts false ``` #### Inherited from [#inherited-from-17] `SplitInOutProps.invert` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-18] `SplitInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `SplitInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `SplitInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-21] `SplitInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-22] `SplitInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `SplitInOutProps.modifyTarget` *** ### orientation? [#orientation] \> `optional` **orientation?**: `"horizontal"` | `"vertical"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1769 The axis the two mask panels move apart on/towards. #### Default [#default-6] ```ts "vertical" ``` #### Inherited from [#inherited-from-24] `SplitInOutProps.orientation` *** ### origin? [#origin] \> `optional` **origin?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1775 The origin of the split line, normalized to the component's own bounds (`0` to `1` on the axis perpendicular to [orientation](#orientation)). #### Default [#default-7] ```ts 0.5 ``` #### Inherited from [#inherited-from-25] `SplitInOutProps.origin` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-26] `SplitInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-27] `SplitInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-28] `SplitInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-29] `SplitInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-32] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `SplitInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-34] `SplitInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-35] `SplitInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `SplitInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `SplitInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `SplitInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-8] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `SplitInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-40] `SplitInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-10] ```ts [] ``` #### Inherited from [#inherited-from-41] `SplitInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-42] `SplitInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-43] `SplitInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-44] `SplitInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-45] `SplitInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-46] `SplitInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-47] `SplitInOutProps.when` # Interface: TvTransitionProps (/pixi-vn-json/index/interfaces/TvTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:330](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L330) Configuration options for the tv transition. ## Extends [#extends] * `TvInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `TvInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `TvInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `TvInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `TvInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `TvInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `TvInOutProps.bounceStiffness` *** ### brightness? [#brightness] \> `optional` **brightness?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1967 How bright the collapsed line glows (`1` = no change). #### Default [#default-1] ```ts 3 ``` #### Inherited from [#inherited-from-6] `TvInOutProps.brightness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-7] `TvInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-8] `TvInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-9] `TvInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-10] `TvInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] `TvInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] `TvInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] `TvInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] `TvInOutProps.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] `TvInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] `TvInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-17] `TvInOutProps.isSync` *** ### lineThickness? [#linethickness] \> `optional` **lineThickness?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1962 The height of the collapsed bright line, as a fraction of the component's own height. #### Default [#default-4] ```ts 0.02 ``` #### Inherited from [#inherited-from-18] `TvInOutProps.lineThickness` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-5] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `TvInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `TvInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-21] `TvInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-22] `TvInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `TvInOutProps.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-24] `TvInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-25] `TvInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-26] `TvInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-27] `TvInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-31] `TvInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `TvInOutProps.restSpeed` *** ### scanlines? [#scanlines] \> `optional` **scanlines?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1972 Whether CRT scanlines/noise are shown during the transition. #### Default [#default-6] ```ts true ``` #### Inherited from [#inherited-from-33] `TvInOutProps.scanlines` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-34] `TvInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-35] `TvInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-36] `TvInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-37] `TvInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-38] `TvInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-39] `TvInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-40] `TvInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-41] `TvInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-42] `TvInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-43] `TvInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-44] `TvInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-45] `TvInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-46] `TvInOutProps.when` # Interface: TwistTransitionProps (/pixi-vn-json/index/interfaces/TwistTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:254](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L254) Configuration options for the twist transition. ## Extends [#extends] * `TwistInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `TwistInOutProps.aliasToRemoveAfter` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1893 How far (degrees) the swirl is wound up - where `twistIn` starts and `twistOut` ends. Negate the angle to reverse the rotation. During replacement the old component uses the opposite angle, so it winds up in the same rotational sense as the new component unwinds. #### Default [#default-1] ```ts 540 ``` #### Inherited from [#inherited-from-1] `TwistInOutProps.angle` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-2] `TwistInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-3] `TwistInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-4] `TwistInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-5] `TwistInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-6] `TwistInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-7] `TwistInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-8] `TwistInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-9] `TwistInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-10] `TwistInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] `TwistInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] `TwistInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] `TwistInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] `TwistInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1861 Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn-json/index/interfaces/BlurTransitionProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-15] `TwistInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-16] `TwistInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `TwistInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-18] `TwistInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-19] `TwistInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-20] `TwistInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-21] `TwistInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-22] `TwistInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-23] `TwistInOutProps.modifyTarget` *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1903 The center of the swirl, normalized to the component's own bounds (`0` to `1` on each axis). #### Default [#default-5] ```ts { x: 0.5, y: 0.5 } ``` #### Inherited from [#inherited-from-24] `TwistInOutProps.origin` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-25] `TwistInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-26] `TwistInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-27] `TwistInOutProps.power` *** ### radius? [#radius] \> `optional` **radius?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1898 The radius (pixels) of the swirl. Defaults to half the component's diagonal, so the whole component swirls. #### Inherited from [#inherited-from-28] `TwistInOutProps.radius` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-29] `TwistInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-32] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `TwistInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-34] `TwistInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-35] `TwistInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-36] `TwistInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-37] `TwistInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-38] `TwistInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-6] ```ts 100 @public ``` #### Inherited from [#inherited-from-39] `TwistInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-40] `TwistInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-41] `TwistInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-42] `TwistInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-43] `TwistInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-44] `TwistInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-45] `TwistInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-46] `TwistInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-47] `TwistInOutProps.when` # Interface: WarpTransitionProps (/pixi-vn-json/index/interfaces/WarpTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:273](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L273) Configuration options for the warp transition. ## Extends [#extends] * `WarpInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `WarpInOutProps.aliasToRemoveAfter` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] `WarpInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] `WarpInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] `WarpInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] `WarpInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] `WarpInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] `WarpInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] `WarpInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] `WarpInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] `WarpInOutProps.delayChildren` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-10] `WarpInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-11] `WarpInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-12] `WarpInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-13] `WarpInOutProps.elapsed` *** ### fadeComponent? [#fadecomponent] \> `optional` **fadeComponent?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1861 Whether the component itself also fades in (`xIn`) or out (`xOut`) alongside the filter effect, at a quarter of the effect's own duration, mirrored to the start of `xIn` or the end of `xOut` (same behavior as [BlurInOutProps.fadeComponent](/pixi-vn-json/index/interfaces/BlurTransitionProps#fadecomponent)). The default depends on the transition. #### Inherited from [#inherited-from-14] `WarpInOutProps.fadeComponent` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] `WarpInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] `WarpInOutProps.inherit` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-17] `WarpInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-3] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] `WarpInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] `WarpInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] `WarpInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-21] `WarpInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-22] `WarpInOutProps.modifyTarget` *** ### origin? [#origin] \> `optional` **origin?**: `Partial`\<`PointData`> Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1915 The point the streaks radiate from, normalized to the component's own bounds. #### Default [#default-4] ```ts { x: 0.5, y: 0.5 } ``` #### Inherited from [#inherited-from-23] `WarpInOutProps.origin` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-24] `WarpInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-25] `WarpInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-26] `WarpInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-27] `WarpInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-31] `WarpInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `WarpInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-33] `WarpInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-34] `WarpInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-35] `WarpInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-36] `WarpInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-5] ```ts 100 @public ``` #### Inherited from [#inherited-from-37] `WarpInOutProps.stiffness` *** ### strength? [#strength] \> `optional` **strength?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1910 The zoom-blur strength `warpIn` starts from and `warpOut` ends at. #### Default [#default-6] ```ts 0.6 ``` #### Inherited from [#inherited-from-38] `WarpInOutProps.strength` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-7] ```ts [] ``` #### Inherited from [#inherited-from-39] `WarpInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-40] `WarpInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-41] `WarpInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-42] `WarpInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-43] `WarpInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-44] `WarpInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-45] `WarpInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-46] `WarpInOutProps.when` # Interface: WipeTransitionProps (/pixi-vn-json/index/interfaces/WipeTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:121](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L121) Configuration options for the wipe transition. ## Extends [#extends] * `WipeInOutProps` ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] `WipeInOutProps.aliasToRemoveAfter` *** ### angle? [#angle] \> `optional` **angle?**: `number` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1730 The angle (in degrees) the wipe boundary sweeps towards. `0` is left-to-right, `90` is bottom-to-top, `180` is right-to-left, `270` is top-to-bottom, and any other value produces a diagonal wipe. #### Default [#default-1] ```ts 0 ``` #### Inherited from [#inherited-from-1] `WipeInOutProps.angle` *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-2] `WipeInOutProps.animateOldComponentOut` *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-3] `WipeInOutProps.autoplay` *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-4] `WipeInOutProps.bounce` *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-5] `WipeInOutProps.bounceDamping` *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-6] `WipeInOutProps.bounceStiffness` *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-2] ```ts true ``` #### Inherited from [#inherited-from-7] `WipeInOutProps.completeOnContinue` *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-3] ```ts 10 @public ``` #### Inherited from [#inherited-from-8] `WipeInOutProps.damping` *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-9] `WipeInOutProps.delay` *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-10] `WipeInOutProps.delayChildren` *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1736 A convenience shorthand for [angle](#angle): `"right"` (`0`), `"up"` (`90`), `"left"` (`180`), `"down"` (`270`). Ignored if `angle` is also set. #### Default [#default-4] ```ts "right" ``` #### Inherited from [#inherited-from-11] `WipeInOutProps.direction` *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-12] `WipeInOutProps.driver` *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-13] `WipeInOutProps.duration` *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-14] `WipeInOutProps.ease` *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-15] `WipeInOutProps.elapsed` *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-16] `WipeInOutProps.from` *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-17] `WipeInOutProps.inherit` *** ### invert? [#invert] \> `optional` **invert?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1721 If true, the effect is inverted: a "reveal" mask conceals instead, and vice versa. #### Default [#default-5] ```ts false ``` #### Inherited from [#inherited-from-18] `WipeInOutProps.invert` *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-19] `WipeInOutProps.isSync` *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-6] ```ts 1 @public ``` #### Inherited from [#inherited-from-20] `WipeInOutProps.mass` *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-21] `WipeInOutProps.max` *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-22] `WipeInOutProps.min` *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-23] `WipeInOutProps.mixer` *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-24] `WipeInOutProps.modifyTarget` *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-25] `WipeInOutProps.out` *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-26] `WipeInOutProps.path` *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-27] `WipeInOutProps.power` *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-28] `WipeInOutProps.reduceMotion` *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-30] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-31] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-32] `WipeInOutProps.restDelta` *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-33] `WipeInOutProps.restSpeed` *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation skips straight to its final value instead of tweening. Used by `MotionConfig`'s `skipAnimations` to opt entire subtrees out of animation (e.g. for E2E screenshot stability). #### Inherited from [#inherited-from-34] `WipeInOutProps.skipAnimations` *** ### ~~staggerChildren?~~ [#staggerchildren] \> `optional` **staggerChildren?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2480 When using variants, animations of child components can be staggered by this duration (in seconds). For instance, if `staggerChildren` is `0.01`, the first child will be delayed by `0` seconds, the second by `0.01`, the third by `0.02` and so on. The calculated stagger delay will be added to `delayChildren`. #### Deprecated [#deprecated] * Use `delayChildren: stagger(interval)` instead. #### Inherited from [#inherited-from-35] `WipeInOutProps.staggerChildren` *** ### ~~staggerDirection?~~ [#staggerdirection] \> `optional` **staggerDirection?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2489 The direction in which to stagger children. A value of `1` staggers from the first to the last while `-1` staggers from the last to the first. #### Deprecated [#deprecated-1] * Use `delayChildren: stagger(interval, { from: "last" })` instead. #### Inherited from [#inherited-from-36] `WipeInOutProps.staggerDirection` *** ### startTime? [#starttime] \> `optional` **startTime?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2529 #### Inherited from [#inherited-from-37] `WipeInOutProps.startTime` *** ### stiffness? [#stiffness] \> `optional` **stiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2362 Stiffness of the spring. Higher values will create more sudden movement. Set to `100` by default. #### Default [#default-7] ```ts 100 @public ``` #### Inherited from [#inherited-from-38] `WipeInOutProps.stiffness` *** ### tickerAliasToResume? [#tickeraliastoresume] \> `optional` **tickerAliasToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:474 If you want to resume tickers that were previously paused, provide the aliases of the canvas components whose tickers should be resumed. #### Default [#default-8] ```ts [] ``` #### Inherited from [#inherited-from-39] `WipeInOutProps.tickerAliasToResume` *** ### tickerIdToResume? [#tickeridtoresume] \> `optional` **tickerIdToResume?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:479 A string containing the ticker ID to resume after the animation completes. #### Default [#default-9] ```ts [] ``` #### Inherited from [#inherited-from-40] `WipeInOutProps.tickerIdToResume` *** ### timeConstant? [#timeconstant] \> `optional` **timeConstant?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2401 Adjusting the time constant will change the duration of the deceleration, thereby affecting its feel. Set to `700` by default. #### Inherited from [#inherited-from-41] `WipeInOutProps.timeConstant` *** ### times? [#times] \> `optional` **times?**: `number`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2499 #### Inherited from [#inherited-from-42] `WipeInOutProps.times` *** ### type? [#type] \> `optional` **type?**: `AnimationGeneratorType` Defined in: node_modules/motion-dom/dist/index.d.ts:2521 Type of animation to use. * "tween": Duration-based animation with ease curve * "spring": Physics or duration-based spring animation * false: Use an instant animation #### Inherited from [#inherited-from-43] `WipeInOutProps.type` *** ### velocity? [#velocity] \> `optional` **velocity?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2302 #### Inherited from [#inherited-from-44] `WipeInOutProps.velocity` *** ### visualDuration? [#visualduration] \> `optional` **visualDuration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2337 If visualDuration is set, this will override duration. The visual duration is a time, set in seconds, that the animation will take to visually appear to reach its target. In other words, the bulk of the transition will occur before this time, and the "bouncy bit" will mostly happen after. This makes it easier to edit a spring, as well as visually coordinate it with other time-based animations. #### Inherited from [#inherited-from-45] `WipeInOutProps.visualDuration` *** ### when? [#when] \> `optional` **when?**: `string` | `false` Defined in: node_modules/motion-dom/dist/index.d.ts:2458 Describes the relationship between the transition and its children. Set to `false` by default. #### Remarks [#remarks] When using variants, the transition can be scheduled in relation to its children with either `"beforeChildren"` to finish this transition before starting children transitions, `"afterChildren"` to finish children transitions before starting this transition. #### Inherited from [#inherited-from-46] `WipeInOutProps.when` # Interface: ZoomInOutTransitionProps (/pixi-vn-json/index/interfaces/ZoomInOutTransitionProps) Defined in: [src/schema/PixiVNJsonMediaTransiotions.ts:83](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/schema/PixiVNJsonMediaTransiotions.ts#L83) Configuration options for the zoom transition (scale, duration, easing, etc.). ## Extends [#extends] * [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps) ## Properties [#properties] ### aliasToRemoveAfter? [#aliastoremoveafter] \> `optional` **aliasToRemoveAfter?**: `string` | `string`\[] Defined in: node_modules/@drincs/pixi-vn/dist/tickers.d.ts:464 An array of strings containing the aliases of the canvas components to remove after the animation completes. #### Default [#default] ```ts [] ``` #### Inherited from [#inherited-from] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`aliasToRemoveAfter`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#aliastoremoveafter) *** ### animateOldComponentOut? [#animateoldcomponentout] \> `optional` **animateOldComponentOut?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1673 If true, the component being replaced leaves with the matching out animation (`moveOut`, `wipeOut`, ...), started at the same time as the in animation. If false, it stays untouched under the new component and is removed once the in animation is done. The default depends on the transition: `false` for `moveIn`/`zoomIn`, `true` for the others. #### Inherited from [#inherited-from-1] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`animateOldComponentOut`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#animateoldcomponentout) *** ### autoplay? [#autoplay] \> `optional` **autoplay?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2528 #### Inherited from [#inherited-from-2] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`autoplay`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#autoplay) *** ### bounce? [#bounce] \> `optional` **bounce?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2351 `bounce` determines the "bounciness" of a spring animation. `0` is no bounce, and `1` is extremely bouncy. Negative values, down to `-1`, make an overdamped spring that starts quicker and eases more gently into its target. If `duration` is set, this defaults to `0.25`. Note: `bounce` and `duration` will be overridden if `stiffness`, `damping` or `mass` are set. #### Inherited from [#inherited-from-3] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`bounce`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#bounce) *** ### bounceDamping? [#bouncedamping] \> `optional` **bounceDamping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2425 If `min` or `max` is set, this affects the damping of the bounce spring. If set to `0`, spring will oscillate indefinitely. Set to `10` by default. #### Inherited from [#inherited-from-4] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`bounceDamping`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#bouncedamping) *** ### bounceStiffness? [#bouncestiffness] \> `optional` **bounceStiffness?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2417 If `min` or `max` is set, this affects the stiffness of the bounce spring. Higher values will create more sudden movement. Set to `500` by default. #### Inherited from [#inherited-from-5] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`bounceStiffness`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#bouncestiffness) *** ### completeOnContinue? [#completeoncontinue] \> `optional` **completeOnContinue?**: `boolean` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1660 If true, the transition will be completed before the next step. For example, if the transition is a dissolve transition, the "alpha" of the texture will be 1 before the next step. #### Default [#default-1] ```ts true ``` #### Inherited from [#inherited-from-6] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`completeOnContinue`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#completeoncontinue) *** ### damping? [#damping] \> `optional` **damping?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2371 Strength of opposing force. If set to 0, spring will oscillate indefinitely. Set to `10` by default. #### Default [#default-2] ```ts 10 @public ``` #### Inherited from [#inherited-from-7] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`damping`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#damping) *** ### delay? [#delay] \> `optional` **delay?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2717 #### Inherited from [#inherited-from-8] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`delay`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#delay) *** ### delayChildren? [#delaychildren] \> `optional` **delayChildren?**: `number` | `DynamicOption`\<`number`> Defined in: node_modules/motion-dom/dist/index.d.ts:2467 When using variants, children animations will start after this duration (in seconds). You can add the `transition` property to both the `motion.div` and the `variant` directly. Adding it to the `variant` generally offers more flexibility, as it allows you to customize the delay per visual state. #### Inherited from [#inherited-from-9] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`delayChildren`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#delaychildren) *** ### direction? [#direction] \> `optional` **direction?**: `"left"` | `"right"` | `"up"` | `"down"` Defined in: node_modules/@drincs/pixi-vn/dist/canvas.d.ts:1697 The direction of the zoom effect. #### Default [#default-3] ```ts "right" ``` #### Inherited from [#inherited-from-10] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`direction`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#direction) *** ### driver? [#driver] \> `optional` **driver?**: `Driver` Defined in: node_modules/motion-dom/dist/index.d.ts:2513 #### Inherited from [#inherited-from-11] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`driver`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#driver) *** ### duration? [#duration] \> `optional` **duration?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2527 The duration of the tween animation. Set to `0.3` by default, 0r `0.8` if animating a series of keyframes. #### Inherited from [#inherited-from-12] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`duration`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#duration) *** ### ease? [#ease] \> `optional` **ease?**: `Easing` | `Easing`\[] Defined in: node_modules/motion-dom/dist/index.d.ts:2498 #### Inherited from [#inherited-from-13] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`ease`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#ease) *** ### elapsed? [#elapsed] \> `optional` **elapsed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2512 The duration of time already elapsed in the animation. Set to `0` by default. #### Inherited from [#inherited-from-14] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`elapsed`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#elapsed) *** ### from? [#from] \> `optional` **from?**: `any` Defined in: node_modules/motion-dom/dist/index.d.ts:2530 #### Inherited from [#inherited-from-15] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`from`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#from) *** ### inherit? [#inherit] \> `optional` **inherit?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2537 If true, this transition will shallow-merge with its parent transition instead of replacing it. Inner keys win. #### Inherited from [#inherited-from-16] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`inherit`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#inherit) *** ### isSync? [#issync] \> `optional` **isSync?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2269 #### Inherited from [#inherited-from-17] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`isSync`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#issync) *** ### mass? [#mass] \> `optional` **mass?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2380 Mass of the moving object. Higher values will result in more lethargic movement. Set to `1` by default. #### Default [#default-4] ```ts 1 @public ``` #### Inherited from [#inherited-from-18] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`mass`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#mass) *** ### max? [#max] \> `optional` **max?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2437 Maximum constraint. If set, the value will "bump" against this value (or immediately snap to it, if the initial animation value exceeds this value). #### Inherited from [#inherited-from-19] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`max`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#max) *** ### min? [#min] \> `optional` **min?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2431 Minimum constraint. If set, the value will "bump" against this value (or immediately spring to it if the animation starts as less than this value). #### Inherited from [#inherited-from-20] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`min`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#min) *** ### mixer? [#mixer] \> `optional` **mixer?**: (`from`, `to`) => `Mixer`\<`any`> | `undefined` Defined in: node_modules/motion-dom/dist/index.d.ts:2601 Replaces the function that blends between each pair of keyframes that aren't numbers. It receives the two keyframes and returns a function that maps progress (`0`-`1`, or beyond with springs and overshooting easing) to a value, or `undefined` to blend them as usual. For example, a mixer that morphs paths can animate `d` between paths of different shapes, and return `undefined` for values that aren't paths, like `fill`, so they blend as usual: ```jsx ``` Animations between numbers (not strings with units, like `"100px"`), and those where the mixer returns `undefined` for every pair, run as they would without it. The rest run on the main thread, where the mixer can be called. Animations that only run in the browser, like those from `motion/mini`, don't use it. Values Motion can't animate, like text without numbers, still change at once. A mixer can be asked for the same pair more than once, so keep any costly setup for when its function is first called. #### Parameters [#parameters] ##### from [#from-1] `any` ##### to [#to] `any` #### Returns [#returns] `Mixer`\<`any`> | `undefined` #### Inherited from [#inherited-from-21] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`mixer`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#mixer) *** ### modifyTarget? [#modifytarget] \> `optional` **modifyTarget?**: (`v`) => `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2407 A function that receives the automatically-calculated target and returns a new one. Useful for snapping the target to a grid. #### Parameters [#parameters-1] ##### v [#v] `number` #### Returns [#returns-1] `number` #### Inherited from [#inherited-from-22] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`modifyTarget`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#modifytarget) *** ### out? [#out] \> `optional` **out?**: `boolean` | `Transition`\<`any`> Defined in: node_modules/motion-dom/dist/index.d.ts:2556 The transition a value uses when it leaves this state for a lower-priority one, like `whileHover` ending and values returning to `animate`. `true` reuses this transition. Otherwise, the state being entered defines the transition. On `initial`, it's used for the mount animation. ```jsx ``` #### Inherited from [#inherited-from-23] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`out`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#out) *** ### path? [#path] \> `optional` **path?**: `MotionPath` | `MotionPath` & `ValueTransition` Defined in: node_modules/motion-dom/dist/index.d.ts:2575 The path the element travels between its old and new x/y positions. Slot in a path factory (e.g. `arc()`) to swap the default straight-line interpolation for something curved. Can be used in keyframe animations (`transition.path`) and layout animations (`transition.layout.path`), including with `useAnimate`. #### Inherited from [#inherited-from-24] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`path`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#path) *** ### power? [#power] \> `optional` **power?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2394 A higher power value equals a further target. Set to `0.8` by default. #### Inherited from [#inherited-from-25] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`power`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#power) *** ### reduceMotion? [#reducemotion] \> `optional` **reduceMotion?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2727 Whether to reduce motion for transform/layout animations. * `true`: Skip transform/layout animations (instant transition) * `false`: Always animate transforms/layout * `undefined`: Use device preference (default behavior) #### Inherited from [#inherited-from-26] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`reduceMotion`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#reducemotion) *** ### repeat? [#repeat] \> `optional` **repeat?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2280 The number of times to repeat the transition. Set to `Infinity` for perpetual repeating. Without setting `repeatType`, this will loop the animation. #### Inherited from [#inherited-from-27] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeat`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeat) *** ### repeatDelay? [#repeatdelay] \> `optional` **repeatDelay?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2299 When repeating an animation, `repeatDelay` will set the duration of the time to wait, in seconds, between each repetition. #### Inherited from [#inherited-from-28] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatDelay`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeatdelay) *** ### repeatType? [#repeattype] \> `optional` **repeatType?**: `RepeatType` Defined in: node_modules/motion-dom/dist/index.d.ts:2292 How to repeat the animation. This can be either: "loop": Repeats the animation from the start "reverse": Alternates between forward and backwards playback "mirror": Switches `from` and `to` alternately #### Inherited from [#inherited-from-29] [`PixiVNJsonAnimateSequenceOptions`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions).[`repeatType`](/pixi-vn-json/index/interfaces/PixiVNJsonAnimateSequenceOptions#repeattype) *** ### restDelta? [#restdelta] \> `optional` **restDelta?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2317 End animation if distance is below this value and speed is below `restSpeed`. When animation ends, spring gets "snapped" to. Set to `0.01` by default. #### Inherited from [#inherited-from-30] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`restDelta`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#restdelta) *** ### restSpeed? [#restspeed] \> `optional` **restSpeed?**: `number` Defined in: node_modules/motion-dom/dist/index.d.ts:2309 End animation if absolute speed (in units per second) drops below this value and delta is smaller than `restDelta`. Set to `0.01` by default. #### Inherited from [#inherited-from-31] [`ZoomInOutProps`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps).[`restSpeed`](/pixi-vn-json/docs-entry/interfaces/ZoomInOutProps#restspeed) *** ### skipAnimations? [#skipanimations] \> `optional` **skipAnimations?**: `boolean` Defined in: node_modules/motion-dom/dist/index.d.ts:2564 If true, the animation sk