repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/rendering/batcher/shared/DefaultBatcher.ts
src/rendering/batcher/shared/DefaultBatcher.ts
import { ExtensionType } from '../../../extensions/Extensions'; import { Batcher } from './Batcher'; import { BatchGeometry } from './BatchGeometry'; import { DefaultShader } from './DefaultShader'; import type { Matrix } from '../../../maths/matrix/Matrix'; import type { Shader } from '../../renderers/shared/shader/S...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/app/TickerPlugin.ts
src/app/TickerPlugin.ts
import { ExtensionType } from '../extensions/Extensions'; import { UPDATE_PRIORITY } from '../ticker/const'; import { Ticker } from '../ticker/Ticker'; import type { ExtensionMetadata } from '../extensions/Extensions'; /** * Application options for the {@link TickerPlugin}. * These options control the animation loo...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/app/Application.ts
src/app/Application.ts
import { extensions, ExtensionType } from '../extensions/Extensions'; import { autoDetectRenderer } from '../rendering/renderers/autoDetectRenderer'; import { Container } from '../scene/container/Container'; import { ApplicationInitHook } from '../utils/global/globalHooks'; import { deprecation, v8_0_0 } from '../utils...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/app/init.ts
src/app/init.ts
import { extensions } from '../extensions/Extensions'; import { ResizePlugin } from './ResizePlugin'; import { TickerPlugin } from './TickerPlugin'; extensions.add(ResizePlugin); extensions.add(TickerPlugin);
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/app/ApplicationMixins.d.ts
src/app/ApplicationMixins.d.ts
import type { Ticker } from '../ticker/Ticker'; import type { ResizePluginOptions } from './ResizePlugin'; import type { TickerPluginOptions } from './TickerPlugin'; declare global { namespace PixiMixins { // Extend the Application interface with resize and ticker functionalities interface Appl...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/app/ResizePlugin.ts
src/app/ResizePlugin.ts
import { ExtensionType } from '../extensions/Extensions'; import type { ExtensionMetadata } from '../extensions/Extensions'; import type { Renderer } from '../rendering/renderers/types'; type ResizeableRenderer = Pick<Renderer, 'resize'>; /** * Application options for the {@link ResizePlugin}. * These options cont...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/app/index.ts
src/app/index.ts
// Auto-generated code, do not edit manually export * from './Application'; export * from './ResizePlugin'; export * from './TickerPlugin';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/app/__tests__/Application.test.ts
src/app/__tests__/Application.test.ts
import { Application } from '../Application'; import { basePath, getApp, nextTick } from '@test-utils'; import { Assets } from '~/assets'; import { extensions, ExtensionType } from '~/extensions'; import { Container, Graphics, Sprite, Text } from '~/scene'; import { GlobalResourceRegistry } from '~/utils'; import type...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/environment-browser/browserAll.ts
src/environment-browser/browserAll.ts
import '../accessibility/init'; import '../app/init'; import '../events/init'; import '../dom/init'; import '../spritesheet/init'; import '../rendering/init'; import '../scene/graphics/init'; import '../scene/mesh/init'; import '../scene/particle-container/init'; import '../scene/text/init'; import '../scene/text-bitma...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/environment-browser/BrowserAdapter.ts
src/environment-browser/BrowserAdapter.ts
/* eslint-disable no-restricted-globals */ import { type Adapter } from '../environment/adapter'; import { type ImageLike } from '../environment/ImageLike'; /** * This is an implementation of the {@link Adapter} interface. * It can be used to make Pixi work in the browser. * @category environment * @property {Func...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/environment-browser/browserExt.ts
src/environment-browser/browserExt.ts
import { ExtensionType } from '../extensions/Extensions'; /** * Extension for the browser environment. * @category environment * @internal */ export const browserExt = { extension: { type: ExtensionType.Environment, name: 'browser', priority: -1, }, test: () => true, load: a...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/environment-browser/index.ts
src/environment-browser/index.ts
// Auto-generated code, do not edit manually export * from './BrowserAdapter'; export * from './browserExt';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/extensions/index.ts
src/extensions/index.ts
// Auto-generated code, do not edit manually export * from './Extensions';
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/extensions/Extensions.ts
src/extensions/Extensions.ts
/** * Collection of valid extension types. * @category extensions * @advanced */ enum ExtensionType { /** extensions that are registered as Application plugins */ Application = 'application', /** extensions that are registered as WebGL render pipes */ WebGLPipes = 'webgl-pipes', /** extensions ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/extensions/__tests__/extensions.test.ts
src/extensions/__tests__/extensions.test.ts
import { extensions } from '../Extensions'; import type { ExtensionMetadata, ExtensionType } from '../Extensions'; const exampleType = 'test-extension' as ExtensionType; const exampleType2 = 'test-extension2' as ExtensionType; const example = { extension: { type: exampleType, name: 'test', } ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/SceneMixins.d.ts
src/scene/SceneMixins.d.ts
/* eslint-disable @typescript-eslint/no-empty-object-type */ import { type CollectRenderablesMixin } from './container/container-mixins/collectRenderablesMixin'; import { type GetFastGlobalBoundsMixin } from './container/container-mixins/getFastGlobalBoundsMixin'; import type { ContainerChild } from './container/Conta...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/index.ts
src/scene/index.ts
// Auto-generated code, do not edit manually export * from './container/bounds/Bounds'; export * from './container/bounds/getFastGlobalBounds'; export * from './container/bounds/getGlobalBounds'; export * from './container/bounds/getLocalBounds'; export * from './container/bounds/getRenderableBounds'; export * from './...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/TextBitmapMixins.d.ts
src/scene/text-bitmap/TextBitmapMixins.d.ts
declare global { namespace PixiMixins { interface RendererPipes { bitmapText: import('./BitmapTextPipe').BitmapTextPipe; } } } export {};
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/DynamicBitmapFont.ts
src/scene/text-bitmap/DynamicBitmapFont.ts
import { Color } from '../../color/Color'; import { Rectangle } from '../../maths/shapes/Rectangle'; import { CanvasPool } from '../../rendering/renderers/shared/texture/CanvasPool'; import { ImageSource } from '../../rendering/renderers/shared/texture/sources/ImageSource'; import { Texture } from '../../rendering/rend...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/AbstractBitmapFont.ts
src/scene/text-bitmap/AbstractBitmapFont.ts
import EventEmitter from 'eventemitter3'; import { deprecation, v8_0_0 } from '../../utils/logging/deprecation'; import type { Texture } from '../../rendering/renderers/shared/texture/Texture'; import type { FontMetrics } from '../text/canvas/CanvasTextMetrics'; /** * @category text * @advanced */ export interface...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/init.ts
src/scene/text-bitmap/init.ts
import { extensions } from '../../extensions/Extensions'; import { BitmapTextPipe } from './BitmapTextPipe'; extensions.add(BitmapTextPipe);
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/BitmapTextPipe.ts
src/scene/text-bitmap/BitmapTextPipe.ts
import { Cache } from '../../assets/cache/Cache'; import { ExtensionType } from '../../extensions/Extensions'; import { GCManagedHash } from '../../utils/data/GCManagedHash'; import { Graphics } from '../graphics/shared/Graphics'; import { CanvasTextMetrics } from '../text/canvas/CanvasTextMetrics'; import { SdfShader ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/BitmapFont.ts
src/scene/text-bitmap/BitmapFont.ts
import { groupD8 } from '../../maths/matrix/groupD8'; import { Rectangle } from '../../maths/shapes/Rectangle'; import { Texture } from '../../rendering/renderers/shared/texture/Texture'; import { AbstractBitmapFont } from './AbstractBitmapFont'; import { BitmapFontManager } from './BitmapFontManager'; import type { F...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/BitmapText.ts
src/scene/text-bitmap/BitmapText.ts
import { warn } from '../../utils/logging/warn'; import { AbstractText, ensureTextOptions } from '../text/AbstractText'; import { TextStyle } from '../text/TextStyle'; import { BitmapFontManager } from './BitmapFontManager'; import { type BitmapTextGraphics } from './BitmapTextPipe'; import type { View } from '../../r...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/BitmapFontManager.ts
src/scene/text-bitmap/BitmapFontManager.ts
import { lru } from 'tiny-lru'; import { Cache } from '../../assets/cache/Cache'; import { type TextureStyle, type TextureStyleOptions } from '../../rendering/renderers/shared/texture/TextureStyle'; import { deprecation, v8_0_0 } from '../../utils/logging/deprecation'; import { warn } from '../../utils/logging/warn'; i...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/utils/getBitmapTextLayout.ts
src/scene/text-bitmap/utils/getBitmapTextLayout.ts
import type { TextStyle } from '../../text/TextStyle'; import type { AbstractBitmapFont } from '../AbstractBitmapFont'; /** * The layout data for a bitmap text. * This contains the width, height, scale, offsetY and lines of text. * Each line contains its width, character positions, characters, space width and space...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/utils/bitmapTextSplit.ts
src/scene/text-bitmap/utils/bitmapTextSplit.ts
import { Container } from '../../container/Container'; import { CanvasTextMetrics } from '../../text/canvas/CanvasTextMetrics'; import { type TextStyle } from '../../text/TextStyle'; import { type SplitOptions } from '../../text-split/SplitText'; import { type TextSplitOutput } from '../../text-split/types'; import { B...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/utils/resolveCharacters.ts
src/scene/text-bitmap/utils/resolveCharacters.ts
/** * Processes the passed character set data and returns a flattened array of all the characters. * * Ignored because not directly exposed. * @ignore * @param {string | string[] | string[][] } chars * @returns {string[]} the flattened array of characters */ export function resolveCharacters(chars: string | (str...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/__tests__/BitmapFont.test.ts
src/scene/text-bitmap/__tests__/BitmapFont.test.ts
import { TextStyle } from '../../text/TextStyle'; import { BitmapFont } from '../BitmapFont'; import { BitmapFontManager } from '../BitmapFontManager'; import { Cache } from '~/assets'; import { Rectangle } from '~/maths'; import { groupD8 } from '~/maths/matrix/groupD8'; import { Texture } from '~/rendering'; describ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/__tests__/BitmapFontLoader.test.ts
src/scene/text-bitmap/__tests__/BitmapFontLoader.test.ts
import { Sprite } from '../../sprite/Sprite'; import { loadBitmapFont } from '../asset/loadBitmapFont'; import { BitmapFont } from '../BitmapFont'; import { basePath, getWebGLRenderer } from '@test-utils'; import { Cache, Loader, loadTextures, loadTxt } from '~/assets'; import type { Texture } from '~/rendering'; des...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/__tests__/BitmapText.test.ts
src/scene/text-bitmap/__tests__/BitmapText.test.ts
import { Text } from '../../text/Text'; import { loadBitmapFont } from '../asset/loadBitmapFont'; import { type BitmapFont } from '../BitmapFont'; import { BitmapText } from '../BitmapText'; import '../../text/init'; import '../init'; import '../../graphics/init'; import { basePath, getWebGLRenderer } from '@test-utils...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/__tests__/BitmapFontManager.test.ts
src/scene/text-bitmap/__tests__/BitmapFontManager.test.ts
import { TextStyle } from '../../text/TextStyle'; import { BitmapFontManager } from '../BitmapFontManager'; import { Cache } from '~/assets'; import type { BitmapFont } from '../BitmapFont'; describe('BitmapFontManager', () => { it('should install a font and be accessible', async () => { BitmapFontMan...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/asset/bitmapFontXMLParser.ts
src/scene/text-bitmap/asset/bitmapFontXMLParser.ts
import type { BitmapFontData, RawCharData } from '../AbstractBitmapFont'; /** @internal */ export const bitmapFontXMLParser = { test(data: string | XMLDocument | BitmapFontData): boolean { const xml = data as Document; return typeof xml !== 'string' && 'getElementsByTagName' in xml...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/asset/loadBitmapFont.ts
src/scene/text-bitmap/asset/loadBitmapFont.ts
import { LoaderParserPriority } from '../../../assets/loader/parsers/LoaderParser'; import { copySearchParams } from '../../../assets/utils/copySearchParams'; import { DOMAdapter } from '../../../environment/adapter'; import { ExtensionType } from '../../../extensions/Extensions'; import { path } from '../../../utils/p...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/asset/bitmapFontXMLStringParser.ts
src/scene/text-bitmap/asset/bitmapFontXMLStringParser.ts
import { DOMAdapter } from '../../../environment/adapter'; import { bitmapFontXMLParser } from './bitmapFontXMLParser'; import type { BitmapFontData } from '../AbstractBitmapFont'; /** @internal */ export const bitmapFontXMLStringParser = { test(data: string | XMLDocument | BitmapFontData): boolean { ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/asset/bitmapFontTextParser.ts
src/scene/text-bitmap/asset/bitmapFontTextParser.ts
import type { BitmapFontData, RawCharData } from '../AbstractBitmapFont'; /** * Internal data format used to convert to BitmapFontData. * @private */ export interface BitmapFontRawData { info: { face: string; size: string; }[]; common: { lineHeight: string, base: string }[]; page: { ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/asset/__tests__/bitmapFontXMLStringParser.test.ts
src/scene/text-bitmap/asset/__tests__/bitmapFontXMLStringParser.test.ts
/* eslint-disable max-len */ import { bitmapFontXMLStringParser } from '../bitmapFontXMLStringParser'; const rawFontString = `<?xml version="1.0"?> <font> <info face="ERAMv1_1" size="12" bold="0" italic="0" charset="" unicode="1" stretchH="100" smooth="0" aa="0" padding="0,0,0,0" spacing="0,0" outline="0"/> <commo...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-bitmap/asset/__tests__/bitmapFontTextParser.test.ts
src/scene/text-bitmap/asset/__tests__/bitmapFontTextParser.test.ts
import { bitmapFontTextParser } from '../bitmapFontTextParser'; const rawFontString = ` info face="sans-serif" size=36 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=1,1 common lineHeight=36 base=27 scaleW=256 scaleH=256 pages=1 packed=0 page id=0 file="sans-serif.png" chars co...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/ParticleMixins.d.ts
src/scene/particle-container/ParticleMixins.d.ts
declare global { namespace PixiMixins { interface RendererPipes { particle: import('./shared/ParticleContainerPipe').ParticleContainerPipe; } } } export {};
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/init.ts
src/scene/particle-container/init.ts
import { extensions } from '../../extensions/Extensions'; import { GlParticleContainerPipe } from './shared/GlParticleContainerPipe'; import { GpuParticleContainerPipe } from './shared/GpuParticleContainerPipe'; // NOTE: this is the first occurrence of needing both gl and gpu pipes in the same file // This could cause...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/gpu/GpuParticleContainerAdaptor.ts
src/scene/particle-container/gpu/GpuParticleContainerAdaptor.ts
import type { WebGPURenderer } from '../../../rendering/renderers/gpu/WebGPURenderer'; import type { ParticleContainer } from '../shared/ParticleContainer'; import type { ParticleContainerAdaptor, ParticleContainerPipe } from '../shared/ParticleContainerPipe'; /** @internal */ export class GpuParticleContainerAdaptor ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/gl/GlParticleContainerAdaptor.ts
src/scene/particle-container/gl/GlParticleContainerAdaptor.ts
import type { WebGLRenderer } from '../../../rendering/renderers/gl/WebGLRenderer'; import type { ParticleContainer } from '../shared/ParticleContainer'; import type { ParticleContainerAdaptor, ParticleContainerPipe } from '../shared/ParticleContainerPipe'; /** @internal */ export class GlParticleContainerAdaptor impl...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/ParticleBuffer.ts
src/scene/particle-container/shared/ParticleBuffer.ts
import { Buffer } from '../../../rendering/renderers/shared/buffer/Buffer'; import { BufferUsage } from '../../../rendering/renderers/shared/buffer/const'; import { Geometry } from '../../../rendering/renderers/shared/geometry/Geometry'; import { getAttributeInfoFromFormat } from '../../../rendering/renderers/shared/ge...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/particleData.ts
src/scene/particle-container/shared/particleData.ts
import type { VertexFormat } from '../../../rendering/renderers/shared/geometry/const'; import type { IParticle } from './Particle'; /** @internal */ export interface ParticleRendererProperty { attributeName: string; format: VertexFormat; code: string; dynamic: boolean; // optional update function ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/ParticleContainerPipe.ts
src/scene/particle-container/shared/ParticleContainerPipe.ts
import { Matrix } from '../../../maths/matrix/Matrix'; import { UniformGroup } from '../../../rendering/renderers/shared/shader/UniformGroup'; import { getAdjustedBlendModeBlend } from '../../../rendering/renderers/shared/state/getAdjustedBlendModeBlend'; import { State } from '../../../rendering/renderers/shared/state...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/GpuParticleContainerPipe.ts
src/scene/particle-container/shared/GpuParticleContainerPipe.ts
import { ExtensionType } from '../../../extensions/Extensions'; import { GpuParticleContainerAdaptor } from '../gpu/GpuParticleContainerAdaptor'; import { ParticleContainerPipe } from './ParticleContainerPipe'; import type { WebGPURenderer } from '../../../rendering/renderers/gpu/WebGPURenderer'; /** * WebGPU render...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/ParticleContainer.ts
src/scene/particle-container/shared/ParticleContainer.ts
import { Bounds } from '../../container/bounds/Bounds'; import { ViewContainer, type ViewContainerOptions } from '../../view/ViewContainer'; import { type ParticleBuffer } from './ParticleBuffer'; import { particleData } from './particleData'; import type { Instruction } from '../../../rendering/renderers/shared/instr...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/Particle.ts
src/scene/particle-container/shared/Particle.ts
import { Color } from '../../../color/Color'; import { Texture } from '../../../rendering/renderers/shared/texture/Texture'; import { bgr2rgb } from '../../container/container-mixins/getGlobalMixin'; import { assignWithIgnore } from '../../container/utils/assignWithIgnore'; import type { ColorSource } from '../../../c...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/GlParticleContainerPipe.ts
src/scene/particle-container/shared/GlParticleContainerPipe.ts
import { ExtensionType } from '../../../extensions/Extensions'; import { GlParticleContainerAdaptor } from '../gl/GlParticleContainerAdaptor'; import { ParticleContainerPipe } from './ParticleContainerPipe'; import type { WebGLRenderer } from '../../../rendering/renderers/gl/WebGLRenderer'; /** * WebGL renderer for ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/shader/ParticleShader.ts
src/scene/particle-container/shared/shader/ParticleShader.ts
import { Color } from '../../../../color/Color'; import { Matrix } from '../../../../maths/matrix/Matrix'; import { GlProgram } from '../../../../rendering/renderers/gl/shader/GlProgram'; import { GpuProgram } from '../../../../rendering/renderers/gpu/shader/GpuProgram'; import { Shader } from '../../../../rendering/re...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/utils/generateParticleUpdateFunction.ts
src/scene/particle-container/shared/utils/generateParticleUpdateFunction.ts
import { getAttributeInfoFromFormat } from '../../../../rendering/renderers/shared/geometry/utils/getAttributeInfoFromFormat'; import type { IParticle } from '../Particle'; import type { ParticleRendererProperty } from '../particleData'; // TODO rename to update function /** @internal */ export type ParticleUpdat...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/utils/createIndicesForQuads.ts
src/scene/particle-container/shared/utils/createIndicesForQuads.ts
/** * Generic Mask Stack data structure * @function createIndicesForQuads * @param {number} size - Number of quads * @param {Uint16Array|Uint32Array} [outBuffer] - Buffer for output, length has to be `6 * size` * @returns {Uint16Array|Uint32Array} - Resulting index buffer * @internal */ export function createInd...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/__tests__/ParticleContainer.test.ts
src/scene/particle-container/shared/__tests__/ParticleContainer.test.ts
import { ParticleContainer } from '../ParticleContainer'; import { getWebGLRenderer } from '@test-utils'; import { Rectangle } from '~/maths'; import { Texture } from '~/rendering'; import { Container, Particle } from '~/scene'; describe('ParticleContainer', () => { describe('constructor', () => { it('...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/particle-container/shared/__tests__/Particle.test.ts
src/scene/particle-container/shared/__tests__/Particle.test.ts
import { Particle } from '../Particle'; import { Texture } from '~/rendering'; describe('Particle', () => { describe('tint', () => { it('should apply number tint correctly', () => { const particle = new Particle({ texture: Texture.WHITE, tint: 0xffcc9...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-plane/PlaneGeometry.ts
src/scene/mesh-plane/PlaneGeometry.ts
import { deprecation, v8_0_0 } from '../../utils/logging/deprecation'; import { MeshGeometry } from '../mesh/shared/MeshGeometry'; import type { MeshGeometryOptions } from '../mesh/shared/MeshGeometry'; /** * Constructor options used for `PlaneGeometry` instances. * ```js * const planeGeometry = new PlaneGeometry(...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-plane/MeshPlane.ts
src/scene/mesh-plane/MeshPlane.ts
import { definedProps } from '../container/utils/definedProps'; import { Mesh } from '../mesh/shared/Mesh'; import { PlaneGeometry } from './PlaneGeometry'; import type { Texture } from '../../rendering/renderers/shared/texture/Texture'; import type { DestroyOptions } from '../container/destroyTypes'; import type { Me...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-nine-slice/NineSliceSpritePipe.ts
src/scene/sprite-nine-slice/NineSliceSpritePipe.ts
import { ExtensionType } from '../../extensions/Extensions'; import { GCManagedHash } from '../../utils/data/GCManagedHash'; import { BatchableMesh } from '../mesh/shared/BatchableMesh'; import { type GPUData } from '../view/ViewContainer'; import { NineSliceGeometry } from './NineSliceGeometry'; import type { Instruc...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-nine-slice/init.ts
src/scene/sprite-nine-slice/init.ts
import { extensions } from '../../extensions/Extensions'; import { NineSliceSpritePipe } from './NineSliceSpritePipe'; extensions.add(NineSliceSpritePipe);
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-nine-slice/NineSliceGeometry.ts
src/scene/sprite-nine-slice/NineSliceGeometry.ts
import { type PointData } from '../../maths/point/PointData'; import { PlaneGeometry } from '../mesh-plane/PlaneGeometry'; /** * Options for the NineSliceGeometry. * @category scene * @advanced */ export interface NineSliceGeometryOptions { /** The width of the NineSlicePlane, setting this will actually modif...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-nine-slice/NineSliceSprite.ts
src/scene/sprite-nine-slice/NineSliceSprite.ts
import { ObservablePoint } from '../../maths/point/ObservablePoint'; import { type PointData } from '../../maths/point/PointData'; import { Texture } from '../../rendering/renderers/shared/texture/Texture'; import { deprecation, v8_0_0 } from '../../utils/logging/deprecation'; import { ViewContainer, type ViewContainer...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-nine-slice/NineSliceSpriteMixins.d.ts
src/scene/sprite-nine-slice/NineSliceSpriteMixins.d.ts
declare global { namespace PixiMixins { interface RendererPipes { nineSliceSprite: import('./NineSliceSpritePipe').NineSliceSpritePipe; } } } export {};
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-nine-slice/__tests__/NineSliceSprite.test.ts
src/scene/sprite-nine-slice/__tests__/NineSliceSprite.test.ts
import { Bounds } from '../../container/bounds/Bounds'; import { getGlobalBounds } from '../../container/bounds/getGlobalBounds'; import { NineSliceSprite } from '../NineSliceSprite'; import '../../mesh/init'; import '../init'; import { getTexture } from '@test-utils'; import { Point } from '~/maths'; import { Texture ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/destroyTypes.ts
src/scene/container/destroyTypes.ts
/** * Base options for destroying display objects. * Controls how deep the destruction process should go through the display tree. * @example * ```ts * // Basic destruction - only this container * container.destroy({ children: false }); * * // Deep destruction - container and all children * container.destroy({...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/CustomRenderPipe.ts
src/scene/container/CustomRenderPipe.ts
import { ExtensionType } from '../../extensions/Extensions'; import type { InstructionSet } from '../../rendering/renderers/shared/instructions/InstructionSet'; import type { InstructionPipe, RenderPipe } from '../../rendering/renderers/shared/instructions/RenderPipe'; import type { Renderer } from '../../rendering/re...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/RenderGroup.ts
src/scene/container/RenderGroup.ts
import { Matrix } from '../../maths/matrix/Matrix'; import { InstructionSet } from '../../rendering/renderers/shared/instructions/InstructionSet'; import { type SCALE_MODE } from '../../rendering/renderers/shared/texture/const'; import { TexturePool } from '../../rendering/renderers/shared/texture/TexturePool'; import ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/RenderGroupSystem.ts
src/scene/container/RenderGroupSystem.ts
import { ExtensionType } from '../../extensions/Extensions'; import { Matrix } from '../../maths/matrix/Matrix'; import { TexturePool } from '../../rendering/renderers/shared/texture/TexturePool'; import { TextureStyle } from '../../rendering/renderers/shared/texture/TextureStyle'; import { Bounds } from './bounds/Boun...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/Container.ts
src/scene/container/Container.ts
import EventEmitter from 'eventemitter3'; import { Color, type ColorSource } from '../../color/Color'; import { cullingMixin } from '../../culling/cullingMixin'; import { extensions } from '../../extensions/Extensions'; import { Matrix } from '../../maths/matrix/Matrix'; import { DEG_TO_RAD, RAD_TO_DEG } from '../../ma...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
true
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/RenderGroupPipe.ts
src/scene/container/RenderGroupPipe.ts
import { ExtensionType } from '../../extensions/Extensions'; import { Matrix } from '../../maths/matrix/Matrix'; import { BigPool } from '../../utils/pool/PoolGroup'; import { BatchableSprite } from '../sprite/BatchableSprite'; import { executeInstructions } from './utils/executeInstructions'; import type { Instructio...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/RenderContainer.ts
src/scene/container/RenderContainer.ts
import { ViewContainer } from '../view/ViewContainer'; import type { Point } from '../../maths/point/Point'; import type { Instruction } from '../../rendering/renderers/shared/instructions/Instruction'; import type { Renderer } from '../../rendering/renderers/types'; import type { Bounds, BoundsData } from './bounds/B...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/Effect.ts
src/scene/container/Effect.ts
import type { Point } from '../../maths/point/Point'; import type { PointData } from '../../maths/point/PointData'; import type { Bounds } from './bounds/Bounds'; import type { Container } from './Container'; /** * An effect that can be applied to a container. This is used to create effects such as filters/masks etc....
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/validateRenderables.ts
src/scene/container/utils/validateRenderables.ts
import type { RenderPipe } from '../../../rendering/renderers/shared/instructions/RenderPipe'; import type { RenderPipes } from '../../../rendering/renderers/types'; import type { RenderGroup } from '../RenderGroup'; /** * @param renderGroup * @param renderPipes * @internal */ export function validateRenderables(r...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/checkChildrenDidChange.ts
src/scene/container/utils/checkChildrenDidChange.ts
import type { Container } from '../Container'; /** * This function will crawl through the container essentially check if the children have changed. * * This function checkChildrenDidChange recursively checks if any child in a Container * or its children has changed. It does this by comparing a generated changeId f...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/executeInstructions.ts
src/scene/container/utils/executeInstructions.ts
import type { InstructionPipe } from '../../../rendering/renderers/shared/instructions/RenderPipe'; import type { RenderPipes } from '../../../rendering/renderers/types'; import type { RenderGroup } from '../RenderGroup'; /** * @param renderGroup * @param renderer * @internal */ export function executeInstructions...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/updateLocalTransform.ts
src/scene/container/utils/updateLocalTransform.ts
import type { Matrix } from '../../../maths/matrix/Matrix'; import type { Container } from '../Container'; /** * Updates the local transform of a container based on its properties. * @param lt - The matrix to update with the local transform values. * @param container - The container whose local transform is being u...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/updateRenderGroupTransforms.ts
src/scene/container/utils/updateRenderGroupTransforms.ts
import { Container, UPDATE_BLEND, UPDATE_COLOR, UPDATE_VISIBLE } from '../Container'; import { clearList } from './clearList'; import { multiplyColors } from './multiplyColors'; import type { ViewContainer } from '../../view/ViewContainer'; import type { RenderGroup } from '../RenderGroup'; const tempContainer = new ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/collectAllRenderables.ts
src/scene/container/utils/collectAllRenderables.ts
import { type InstructionSet } from '../../../rendering/renderers/shared/instructions/InstructionSet'; import { type Renderer, type RenderPipes } from '../../../rendering/renderers/types'; import { deprecation } from '../../../utils/logging/deprecation'; import { type Container } from '../Container'; /** * Deprecated...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/clearList.ts
src/scene/container/utils/clearList.ts
/** * nulls all slots in an array from a certain index. * assume that when a null item is hit, the rest are also null. * Which will be the case for where this is used! * @param list - the array to clean * @param index - the index to start from * @category utils * @internal */ export function clearList(list: Arr...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/definedProps.ts
src/scene/container/utils/definedProps.ts
/** * Returns a new object with all properties from the input object that have defined values. * @template T - The type of the input object. * @param {T} obj - The input object. * @returns {T} - A new object with only the defined properties from the input object. * @category utils * @ignore */ export function de...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/assignWithIgnore.ts
src/scene/container/utils/assignWithIgnore.ts
/** * Assigns properties from one object to another, using an optional array of property names to ignore. * @param target - The target object to assign properties to. * @param options - The object to assign properties from. * @param ignore - An object of property names to ignore ({ propToIgnore: true }). * @catego...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/updateWorldTransform.ts
src/scene/container/utils/updateWorldTransform.ts
import type { Matrix } from '../../../maths/matrix/Matrix'; /** * @param local * @param parent * @param world * @deprecated * @internal */ export function updateWorldTransform(local: Matrix, parent: Matrix, world: Matrix): void { const lta = local.a; const ltb = local.b; const ltc = local.c; cons...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/multiplyHexColors.ts
src/scene/container/utils/multiplyHexColors.ts
/** * @param color1 * @param color2 * @internal */ export function multiplyHexColors(color1: number, color2: number): number { if (color1 === 0xFFFFFF || !color2) return color2; if (color2 === 0xFFFFFF || !color1) return color1; const r1 = (color1 >> 16) & 0xFF; const g1 = (color1 >> 8) & 0xFF; ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/multiplyColors.ts
src/scene/container/utils/multiplyColors.ts
import { multiplyHexColors } from './multiplyHexColors'; const WHITE_BGR = 0xFFFFFF; /** * @param localBGRColor * @param parentBGRColor * @internal */ export function multiplyColors(localBGRColor: number, parentBGRColor: number) { if (localBGRColor === WHITE_BGR) { return parentBGRColor; } ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/__tests__/definedProps.test.ts
src/scene/container/utils/__tests__/definedProps.test.ts
import { definedProps } from '../definedProps'; describe('definedProps', () => { it('should remove all undefined props', async () => { const obj: { a: number; b?: number; c: number; } = { a: 1, b: undefined, c: 3, }...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/__tests__/assignWithIgnore.test.ts
src/scene/container/utils/__tests__/assignWithIgnore.test.ts
import { assignWithIgnore } from '../assignWithIgnore'; describe('assignWithIgnore', () => { it('should assign all properties props', async () => { const target = {}; const options = { a: 1, b: 2, c: 3, }; assignWithIgnore(target, options); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/__tests__/multiplyColors.test.ts
src/scene/container/utils/__tests__/multiplyColors.test.ts
import { multiplyColors } from '../multiplyColors'; describe('multiplyColors', () => { it('should take other color if one of BGR colors is WHITE', async () => { const result1 = multiplyColors(0xFFFFFF, 0x123456); expect(result1).toBe(0x123456); const result2 = multiplyColors(0x123456,...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/utils/__tests__/checkChildrenDidChange.test.ts
src/scene/container/utils/__tests__/checkChildrenDidChange.test.ts
import { Container } from '../../Container'; import { checkChildrenDidChange } from '../checkChildrenDidChange'; describe('checkChildrenDidChange', () => { it('should correctly manage ids', async () => { const container = new Container(); const child = new Container(); container.addCh...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/Container.Hierarchy.test.ts
src/scene/container/__tests__/Container.Hierarchy.test.ts
import { Container } from '../Container'; import { getWebGLRenderer } from '@test-utils'; function assertRemovedFromParent(parent: Container, container: Container, child: Container, functionToAssert: () => void) { parent.addChild(child); expect(parent.children.length).toEqual(1); expect(child.parent).toEq...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/getGlobalTransform.test.ts
src/scene/container/__tests__/getGlobalTransform.test.ts
import { Container } from '../Container'; import { Matrix } from '~/maths'; describe('getGlobalTransform', () => { let outputMatrix: Matrix; beforeEach(() => { outputMatrix = new Matrix(); }); describe('with no arguments', () => { it('should return a new Matrix instance', () =...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/DummyEffect.ts
src/scene/container/__tests__/DummyEffect.ts
import type { PointData } from '../../../maths/point/PointData'; import type { Bounds } from '../bounds/Bounds'; import type { Effect } from '../Effect'; /** @internal */ export class DummyEffect implements Effect { public pipe: string; public priority: number; public addBounds?(bounds: Bounds): void {...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/transform-blend.test.ts
src/scene/container/__tests__/transform-blend.test.ts
import { Container } from '../Container'; import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms'; describe('Transform Blend Modes', () => { it('should not cause a rebuild if blend mode is changed on a layer', async () => { const root = new Container({ isRenderGroup: true });...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/getGlobalAlpha.test.ts
src/scene/container/__tests__/getGlobalAlpha.test.ts
import { Container } from '../Container'; describe('getGlobalAlpha', () => { describe('with no arguments', () => { it('should default to skipUpdate = false', () => { const parent = new Container({ alpha: 0.5 }); const container = new Container({ alpha: 0.5 }); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/RenderGroupSystem.test.ts
src/scene/container/__tests__/RenderGroupSystem.test.ts
import '~/rendering/renderers/shared/texture/Texture'; import { Container } from '../Container'; import '../../text/init'; import { getWebGLRenderer } from '@test-utils'; import { Text } from '~/scene'; describe('RenderGroupSystem', () => { it('should reset childrenRenderablesToUpdate index between renders', async...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/transform-alpha.test.ts
src/scene/container/__tests__/transform-alpha.test.ts
import { Container } from '../Container'; import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms'; describe('Transform Alpha', () => { it('should cap render group alpha to between zero and one', async () => { const root = new Container({ isRenderGroup: true }); const...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/display-status.test.ts
src/scene/container/__tests__/display-status.test.ts
import { Application } from '../../../app/Application'; import { Container } from '../Container'; describe('Container Display Status', () => { it('should update display status correctly for root containers', () => { const root = new Container(); // Initially, both local and global should be 0b...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/getChildByName.test.ts
src/scene/container/__tests__/getChildByName.test.ts
import { Container } from '../Container'; // import '../../src/scene/container/container-mixins/findMixin'; describe('Container#name', () => { it('should contain property', () => { const obj = new Container(); expect(obj.label).toBeDefined(); expect(obj.label).toBeNull(); }); }); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/toGlobal.test.ts
src/scene/container/__tests__/toGlobal.test.ts
import { Container } from '../Container'; import { Point } from '~/maths'; describe('toGlobal', () => { let parent: Container; let container: Container; let point: Point; beforeEach(() => { parent = new Container(); container = new Container(); point = new Point(100, 100); ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/getGlobalTint.test.ts
src/scene/container/__tests__/getGlobalTint.test.ts
import { Container } from '../Container'; describe('getGlobalTint', () => { describe('with skipUpdate = false', () => { it('should return container tint when no parent exists', () => { const container = new Container(); container.tint = 0xFF0000; // Red exp...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/Container.test.ts
src/scene/container/__tests__/Container.test.ts
import { RenderLayer } from '../../layers/RenderLayer'; import { Container } from '../Container'; import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms'; import { Matrix } from '~/maths/matrix/Matrix'; describe('Container', () => { describe('constructor', () => { it('should ...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/toLocal.test.ts
src/scene/container/__tests__/toLocal.test.ts
import { Container } from '../Container'; import { Point } from '~/maths'; describe('toLocal', () => { it('should return correct local coordinates of a displayObject', () => { const parent = new Container(); const container = new Container(); parent.addChild(container); const...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false
pixijs/pixijs
https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/scene.test.ts
src/scene/container/__tests__/scene.test.ts
import { Container } from '../Container'; describe('Scene', () => { it('should add a child', async () => { const container = new Container(); const child = new Container(); container.addChild(child); expect(container.children).toHaveLength(1); expect(container.childre...
typescript
MIT
98ea728fc887ea93a1131a61cac66ab4fc45eebe
2026-01-04T15:41:01.429164Z
false