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/scene/text-html/utils/getFontCss.ts | src/scene/text-html/utils/getFontCss.ts | import { Cache } from '../../../assets/cache/Cache';
import { type FontFaceCache } from '../../../assets/loader/parsers/loadWebFont';
import { loadFontCSS } from './loadFontCSS';
/** @internal */
export const FontStylePromiseCache = new Map<string, Promise<string>>();
/**
* takes the font families and returns a css ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/getSVGUrl.ts | src/scene/text-html/utils/getSVGUrl.ts | import type { HTMLTextRenderData } from '../HTMLTextRenderData';
import type { HTMLTextStyle } from '../HTMLTextStyle';
/**
* takes all the data and returns a svg url string can be loaded by an image element
* @param text - The text to measure
* @param style - The style to use
* @param resolution - The resolution ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/loadSVGImage.ts | src/scene/text-html/utils/loadSVGImage.ts | import { type ImageLike } from '../../../environment/ImageLike';
/**
* This function loads an SVG image into an IImage element.
* The image can then be uploaded as texture to the GPU.
* iOS has a bug where embedded fonts are not available immediately after the image loads,
* so we wait an arbitrary amount of time ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/measureHtmlText.ts | src/scene/text-html/utils/measureHtmlText.ts | /* eslint-disable no-restricted-globals */
import { HTMLTextRenderData } from '../HTMLTextRenderData';
import type { Size } from '../../../maths/misc/Size';
import type { HTMLTextStyle } from '../HTMLTextStyle';
let tempHTMLTextRenderData: HTMLTextRenderData;
/**
* Measures the HTML text without actually generating... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/loadFontCSS.ts | src/scene/text-html/utils/loadFontCSS.ts | import { loadFontAsBase64 } from './loadFontAsBase64';
/**
* Options for the font CSS style
* @category text
* @internal
*/
export interface FontCSSStyleOptions
{
/**
* The font family to use in the CSS
* @example
* 'Arial' or ['Arial', 'Helvetica']
*/
fontFamily: string | string[]
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/getTemporaryCanvasFromImage.ts | src/scene/text-html/utils/getTemporaryCanvasFromImage.ts | import { type ImageLike } from '../../../environment/ImageLike';
import { CanvasPool } from '../../../rendering/renderers/shared/texture/CanvasPool';
import type { CanvasAndContext } from '../../../rendering/renderers/shared/texture/CanvasPool';
/**
* This function converts an image to a canvas, and returns the canv... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/loadFontAsBase64.ts | src/scene/text-html/utils/loadFontAsBase64.ts | import { DOMAdapter } from '../../../environment/adapter';
/**
* Resolves a font url to a base64 string
* @param url - The url to load the font from
* @returns - The font as a base64 string
* @internal
*/
export async function loadFontAsBase64(url: string): Promise<string>
{
const response = await DOMAdapter.... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/textStyleToCSS.ts | src/scene/text-html/utils/textStyleToCSS.ts | import { Color } from '../../../color/Color';
import type { ConvertedStrokeStyle } from '../../graphics/shared/FillTypes';
import type { TextStyle } from '../../text/TextStyle';
import type { HTMLTextStyle, HTMLTextStyleOptions } from '../HTMLTextStyle';
/**
* Internally converts all of the style properties into CSS... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/getFontCss.test.ts | src/scene/text-html/__tests__/getFontCss.test.ts | import { getFontCss } from '../utils/getFontCss';
import { basePath, getApp } from '@test-utils';
import { Assets } from '~/assets';
describe('getFontCss', () =>
{
beforeAll(async () =>
{
await getApp();
await Assets.load(`${basePath}fonts/outfit.woff2`);
});
it('should load a font an... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/loadFontCss.test.ts | src/scene/text-html/__tests__/loadFontCss.test.ts | import { loadFontCSS } from '../utils/loadFontCSS';
import { basePath } from '@test-utils';
describe('loadFontCSS', () =>
{
it('should load a font', async () =>
{
const css = await loadFontCSS({
fontFamily: 'Herborn',
fontWeight: 'normal',
fontStyle: 'normal',
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/textStyleToCSS.test.ts | src/scene/text-html/__tests__/textStyleToCSS.test.ts | import { HTMLTextStyle } from '../HTMLTextStyle';
import { textStyleToCSS } from '../utils/textStyleToCSS';
function formatCSSString(cssString: string)
{
return cssString
.replace(/\s+/g, ' ') // Replace multiple white spaces with a single space
.replace(/\s*;\s*/g, '; ') // Normalize spaces around... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/HTMLTextStyle.test.ts | src/scene/text-html/__tests__/HTMLTextStyle.test.ts | import { HTMLTextStyle } from '../HTMLTextStyle';
describe('HTMLTextStyle', () =>
{
it('should create an instance', () =>
{
expect(new HTMLTextStyle()).toBeTruthy();
});
describe('constructor', () =>
{
it('should set properties from constructor', () =>
{
const s... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/sanitiseText.test.ts | src/scene/text-html/__tests__/sanitiseText.test.ts | import { HTMLText } from '../HTMLText';
describe('HTMLText', () =>
{
describe('text sanitization', () =>
{
let htmlText: HTMLText;
beforeEach(() =>
{
htmlText = new HTMLText();
});
describe('_sanitiseText', () =>
{
it('should replace <br... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/HTMLText.test.ts | src/scene/text-html/__tests__/HTMLText.test.ts | import { HTMLText } from '../HTMLText';
import { getWebGLRenderer } from '@test-utils';
describe('HTMLText', () =>
{
it('should create an HTMLText element', () =>
{
const text = new HTMLText({
text: 'Hello World',
});
expect(text.text).toBe('Hello World');
text.des... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/extractFontFamilies.test.ts | src/scene/text-html/__tests__/extractFontFamilies.test.ts | import { HTMLTextStyle } from '../HTMLTextStyle';
import { extractFontFamilies } from '../utils/extractFontFamilies';
describe('extractFontFamilies', () =>
{
it('should extract font family correctly if embedded in the text string', async () =>
{
const families = extractFontFamilies(
'Hello<... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/__tests__/measureHtmlText.test.ts | src/scene/text-html/__tests__/measureHtmlText.test.ts | import { HTMLTextStyle } from '../HTMLTextStyle';
import { measureHtmlText } from '../utils/measureHtmlText';
describe('measureHtmlText', () =>
{
it('should measure default text', () =>
{
const style = new HTMLTextStyle();
const size = measureHtmlText('Hello World', style);
expect(size... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-simple/MeshSimple.ts | src/scene/mesh-simple/MeshSimple.ts | import { definedProps } from '../container/utils/definedProps';
import { Mesh } from '../mesh/shared/Mesh';
import { MeshGeometry } from '../mesh/shared/MeshGeometry';
import type { TypedArray } from '../../rendering/renderers/shared/buffer/Buffer';
import type { Topology } from '../../rendering/renderers/shared/geome... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-simple/RopeGeometry.ts | src/scene/mesh-simple/RopeGeometry.ts | import { MeshGeometry } from '../mesh/shared/MeshGeometry';
import type { PointData } from '../../maths/point/PointData';
import type { MeshGeometryOptions } from '../mesh/shared/MeshGeometry';
/**
* Constructor options used for `RopeGeometry` instances.
* ```js
* const ropeGeometry = new RopeGeometry({
* poin... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-simple/MeshRope.ts | src/scene/mesh-simple/MeshRope.ts | import { definedProps } from '../container/utils/definedProps';
import { Mesh } from '../mesh/shared/Mesh';
import { RopeGeometry } from './RopeGeometry';
import type { PointData } from '../../maths/point/PointData';
import type { Texture } from '../../rendering/renderers/shared/texture/Texture';
import type { MeshOpt... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/__tests__/allowChildren.test.ts | src/scene/__tests__/allowChildren.test.ts | import { Container } from '../container/Container';
import { Graphics } from '../graphics/shared/Graphics';
import { Mesh } from '../mesh/shared/Mesh';
import { MeshGeometry } from '../mesh/shared/MeshGeometry';
import { Sprite } from '../sprite/Sprite';
import { NineSliceSprite } from '../sprite-nine-slice/NineSliceSp... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/__tests__/roundPixels.test.ts | src/scene/__tests__/roundPixels.test.ts | import '~/environment-browser/browserAll';
import { Container } from '../container/Container';
import { Graphics } from '../graphics/shared/Graphics';
import { Mesh } from '../mesh/shared/Mesh';
import { Sprite } from '../sprite/Sprite';
import { TilingSprite } from '../sprite-tiling/TilingSprite';
import { QuadGeometr... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/view/ViewContainer.ts | src/scene/view/ViewContainer.ts | import { type GCable, type GCData } from '../../rendering/renderers/shared/GCSystem';
import { type InstructionSet } from '../../rendering/renderers/shared/instructions/InstructionSet';
import { type RenderPipe } from '../../rendering/renderers/shared/instructions/RenderPipe';
import { type GPUDataOwner, type Renderer ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-perspective/PerspectivePlaneGeometry.ts | src/scene/mesh-perspective/PerspectivePlaneGeometry.ts | import { PlaneGeometry } from '../mesh-plane/PlaneGeometry';
import { applyProjectiveTransformationToPlane } from './utils/applyProjectiveTransformationToPlane';
import { compute2DProjection } from './utils/compute2DProjections';
import type { ArrayFixed } from '../../utils/types';
import type { PlaneGeometryOptions }... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-perspective/PerspectiveMesh.ts | src/scene/mesh-perspective/PerspectiveMesh.ts | import { Texture } from '../../rendering/renderers/shared/texture/Texture';
import { definedProps } from '../container/utils/definedProps';
import { Mesh } from '../mesh/shared/Mesh';
import { PerspectivePlaneGeometry } from './PerspectivePlaneGeometry';
import type { MeshPlaneOptions } from '../mesh-plane/MeshPlane';... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-perspective/utils/compute2DProjections.ts | src/scene/mesh-perspective/utils/compute2DProjections.ts | import type { ArrayFixed } from '../../../utils/types';
type Matrix3x3 = ArrayFixed<number, 9>;
type Vector3 = ArrayFixed<number, 3>;
function computeAdjugate(out: Matrix3x3, matrix: Matrix3x3): Matrix3x3
{
const a00 = matrix[0];
const a01 = matrix[1];
const a02 = matrix[2];
const a10 = matrix[3];
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh-perspective/utils/applyProjectiveTransformationToPlane.ts | src/scene/mesh-perspective/utils/applyProjectiveTransformationToPlane.ts | import type { ArrayFixed } from '../../../utils/types';
import type { PlaneGeometry } from '../../mesh-plane/PlaneGeometry';
/**
* Apply a projective transformation to a plane geometry
* @param width - The width of the plane
* @param height - The height of the plane
* @param geometry - The plane geometry to apply ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite/SpritePipe.ts | src/scene/sprite/SpritePipe.ts | import { ExtensionType } from '../../extensions/Extensions';
import { BatchableSprite } from './BatchableSprite';
import type { InstructionSet } from '../../rendering/renderers/shared/instructions/InstructionSet';
import type { RenderPipe } from '../../rendering/renderers/shared/instructions/RenderPipe';
import type {... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite/BatchableSprite.ts | src/scene/sprite/BatchableSprite.ts | import { type GPUData } from '../view/ViewContainer';
import type { Matrix } from '../../maths/matrix/Matrix';
import type { Batch, Batcher } from '../../rendering/batcher/shared/Batcher';
import type { DefaultBatchableQuadElement } from '../../rendering/batcher/shared/DefaultBatcher';
import type { Topology } from '.... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite/Sprite.ts | src/scene/sprite/Sprite.ts | import { ObservablePoint } from '../../maths/point/ObservablePoint';
import { Texture } from '../../rendering/renderers/shared/texture/Texture';
import { updateQuadBounds } from '../../utils/data/updateQuadBounds';
import { deprecation } 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/__tests__/Sprite.test.ts | src/scene/sprite/__tests__/Sprite.test.ts | import { Container } from '../../container/Container';
import { NineSliceSprite } from '../../sprite-nine-slice/NineSliceSprite';
import { Sprite } from '../Sprite';
import { getTexture, getWebGLRenderer } from '@test-utils';
import { Point, Rectangle } from '~/maths';
import { RenderTexture, Texture, TextureSource } f... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/layers/RenderLayer.ts | src/scene/layers/RenderLayer.ts | import { type InstructionSet } from '../../rendering/renderers/shared/instructions/InstructionSet';
import { type Renderer } from '../../rendering/renderers/types';
import { warn } from '../../utils/logging/warn';
import { type Bounds } from '../container/bounds/Bounds';
import { Container } from '../container/Containe... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/layers/__tests__/RenderLayer.test.ts | src/scene/layers/__tests__/RenderLayer.test.ts | import { RenderLayer } from '../RenderLayer';
import { Container } from '~/scene';
describe('RenderLayer', () =>
{
let layer: RenderLayer;
let container1: Container;
let container2: Container;
beforeEach(() =>
{
layer = new RenderLayer();
container1 = new Container();
conta... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-split/SplitText.ts | src/scene/text-split/SplitText.ts | import { type ContainerOptions } from '../container/Container';
import { type Text } from '../text/Text';
import { TextStyle } from '../text/TextStyle';
import { canvasTextSplit } from '../text/utils/canvasTextSplit';
import { type AbstractSplitOptions, AbstractSplitText } from './AbstractSplitText';
import { type Text... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-split/AbstractSplitText.ts | src/scene/text-split/AbstractSplitText.ts | import { type PointData } from '../../maths/point/PointData';
import { Container, type ContainerOptions } from '../container/Container';
import { type DestroyOptions } from '../container/destroyTypes';
import { TextStyle, type TextStyleOptions } from '../text/TextStyle';
import { type SplitableTextObject, type TextSpli... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-split/SplitBitmapText.ts | src/scene/text-split/SplitBitmapText.ts | import { type ContainerOptions } from '../container/Container';
import { TextStyle } from '../text/TextStyle';
import { type BitmapText } from '../text-bitmap/BitmapText';
import { bitmapTextSplit } from '../text-bitmap/utils/bitmapTextSplit';
import {
type AbstractSplitOptions,
AbstractSplitText
} from './Abst... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-split/types.ts | src/scene/text-split/types.ts | import { type Container } from '../container/Container';
import { type Text } from '../text/Text';
import { type BitmapText } from '../text-bitmap/BitmapText';
/**
* Types of text objects that can be split into characters, words, and lines.
* Currently supports Text and BitmapText instances.
* @internal
*/
export ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-split/__tests__/SegmentedText.test.ts | src/scene/text-split/__tests__/SegmentedText.test.ts | import { Text } from '../../text/Text';
import { TextStyle } from '../../text/TextStyle';
import { BitmapText } from '../../text-bitmap/BitmapText';
import { SplitBitmapText } from '../SplitBitmapText';
import { SplitText } from '../SplitText';
describe('SegmentedText', () =>
{
describe('constructor', () =>
{
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/TilingSpritePipe.ts | src/scene/sprite-tiling/TilingSpritePipe.ts | import { ExtensionType } from '../../extensions/Extensions';
import { getAdjustedBlendModeBlend } from '../../rendering/renderers/shared/state/getAdjustedBlendModeBlend';
import { State } from '../../rendering/renderers/shared/state/State';
import { type Renderer, RendererType } from '../../rendering/renderers/types';
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/TilingSprite.ts | src/scene/sprite-tiling/TilingSprite.ts | import { Cache } from '../../assets/cache/Cache';
import { ObservablePoint } from '../../maths/point/ObservablePoint';
import { Texture } from '../../rendering/renderers/shared/texture/Texture';
import { deprecation, v8_0_0 } from '../../utils/logging/deprecation';
import { Transform } from '../../utils/misc/Transform'... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/TilingSpriteMixins.d.ts | src/scene/sprite-tiling/TilingSpriteMixins.d.ts | declare global
{
namespace PixiMixins
{
interface RendererPipes
{
tilingSprite: import('./TilingSpritePipe').TilingSpritePipe;
}
}
}
export {};
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/init.ts | src/scene/sprite-tiling/init.ts | import { extensions } from '../../extensions/Extensions';
import { TilingSpritePipe } from './TilingSpritePipe';
extensions.add(TilingSpritePipe);
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/shader/tilingBit.ts | src/scene/sprite-tiling/shader/tilingBit.ts | /** @internal */
export const tilingBit = {
name: 'tiling-bit',
vertex: {
header: /* wgsl */`
struct TilingUniforms {
uMapCoord:mat3x3<f32>,
uClampFrame:vec4<f32>,
uClampOffset:vec2<f32>,
uTextureTransform:mat3x3<f32>,
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/shader/TilingSpriteShader.ts | src/scene/sprite-tiling/shader/TilingSpriteShader.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import {
compileHighShaderGlProgram,
compileHighShaderGpuProgram
} from '../../../rendering/high-shader/compileHighShaderToProgram';
import { localUniformBit, localUniformBitGl } from '../../../rendering/high-shader/shader-bits/localUniformBit';
import { ro... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/utils/QuadGeometry.ts | src/scene/sprite-tiling/utils/QuadGeometry.ts | import { MeshGeometry } from '../../mesh/shared/MeshGeometry';
/** @internal */
export class QuadGeometry extends MeshGeometry
{
constructor()
{
super({
positions: new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]),
uvs: new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]),
indices: n... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/utils/applyMatrix.ts | src/scene/sprite-tiling/utils/applyMatrix.ts | import type { Matrix } from '../../../maths/matrix/Matrix';
import type { TypedArray } from '../../../rendering/renderers/shared/buffer/Buffer';
/**
* @param array
* @param stride
* @param offset
* @param matrix
* @internal
*/
export function applyMatrix(array: TypedArray, stride: number, offset: number, matrix:... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/utils/setPositions.ts | src/scene/sprite-tiling/utils/setPositions.ts | import type { TilingSprite } from '../TilingSprite';
/**
* @param tilingSprite
* @param positions
* @internal
*/
export function setPositions(tilingSprite: TilingSprite, positions: Float32Array)
{
const anchorX = tilingSprite.anchor.x;
const anchorY = tilingSprite.anchor.y;
positions[0] = -anchorX * t... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/utils/setUvs.ts | src/scene/sprite-tiling/utils/setUvs.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { applyMatrix } from './applyMatrix';
import type { TilingSprite } from '../TilingSprite';
/**
* @param tilingSprite
* @param uvs
* @internal
*/
export function setUvs(tilingSprite: TilingSprite, uvs: Float32Array)
{
const texture = tilingSprite.te... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-tiling/__tests__/TilingSprite.test.ts | src/scene/sprite-tiling/__tests__/TilingSprite.test.ts | import { Bounds } from '../../container/bounds/Bounds';
import { getGlobalBounds } from '../../container/bounds/getGlobalBounds';
import { Container } from '../../container/Container';
import { TilingSprite } from '../TilingSprite';
import '../init';
import '../../mesh/init';
import { getTexture, getWebGLRenderer } fro... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/init.ts | src/scene/mesh/init.ts | import { extensions } from '../../extensions/Extensions';
import { MeshPipe } from './shared/MeshPipe';
extensions.add(MeshPipe);
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/MeshMixins.d.ts | src/scene/mesh/MeshMixins.d.ts | declare global
{
namespace PixiMixins
{
interface RendererPipes
{
mesh: import('./shared/MeshPipe').MeshPipe;
}
}
}
export {};
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/gpu/GpuMeshAdapter.ts | src/scene/mesh/gpu/GpuMeshAdapter.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { Matrix } from '../../../maths/matrix/Matrix';
import { compileHighShaderGpuProgram } from '../../../rendering/high-shader/compileHighShaderToProgram';
import { localUniformBit } from '../../../rendering/high-shader/shader-bits/localUniformBit';
im... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/__tests__/Mesh.test.ts | src/scene/mesh/__tests__/Mesh.test.ts | import { Container } from '../../container/Container';
import { Mesh } from '../shared/Mesh';
import { MeshGeometry } from '../shared/MeshGeometry';
import '../init';
import { getTexture, getWebGLRenderer } from '@test-utils';
function getMesh(batched = true)
{
const size = 10;
const quadGeometry = new MeshGe... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/gl/GlMeshAdaptor.ts | src/scene/mesh/gl/GlMeshAdaptor.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { Matrix } from '../../../maths/matrix/Matrix';
import { compileHighShaderGlProgram } from '../../../rendering/high-shader/compileHighShaderToProgram';
import { localUniformBitGl } from '../../../rendering/high-shader/shader-bits/localUniformBit';
i... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/shared/MeshPipe.ts | src/scene/mesh/shared/MeshPipe.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { Matrix } from '../../../maths/matrix/Matrix';
import { BindGroup } from '../../../rendering/renderers/gpu/shader/BindGroup';
import { UniformGroup } from '../../../rendering/renderers/shared/shader/UniformGroup';
import { getAdjustedBlendModeBlend... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/shared/Mesh.ts | src/scene/mesh/shared/Mesh.ts | import { pointInTriangle } from '../../../maths/point/pointInTriangle';
import { Geometry } from '../../../rendering/renderers/shared/geometry/Geometry';
import { State } from '../../../rendering/renderers/shared/state/State';
import { Texture } from '../../../rendering/renderers/shared/texture/Texture';
import { depre... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/shared/getTextureDefaultMatrix.ts | src/scene/mesh/shared/getTextureDefaultMatrix.ts | import type { Matrix } from '../../../maths/matrix/Matrix';
import type { Texture } from '../../../rendering/renderers/shared/texture/Texture';
/**
* @param texture
* @param out
* @internal
*/
export function getTextureDefaultMatrix(texture: Texture, out: Matrix): Matrix
{
const { width, height } = texture.fra... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/shared/BatchableMesh.ts | src/scene/mesh/shared/BatchableMesh.ts | import type { Matrix } from '../../../maths/matrix/Matrix';
import type { Batch, Batcher } from '../../../rendering/batcher/shared/Batcher';
import type { DefaultBatchableMeshElement } from '../../../rendering/batcher/shared/DefaultBatcher';
import type { Topology } from '../../../rendering/renderers/shared/geometry/co... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/mesh/shared/MeshGeometry.ts | src/scene/mesh/shared/MeshGeometry.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 { deprecation, v8_0_0 } from '../../../utils/logging/deprecation';
import ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/TextMixins.d.ts | src/scene/text/TextMixins.d.ts | declare global
{
namespace PixiMixins
{
interface RendererSystems
{
canvasText: import('./canvas/CanvasTextSystem').CanvasTextSystem;
}
interface RendererPipes
{
text: import('./canvas/CanvasTextPipe').CanvasTextPipe;
}
}
}
export {};
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/AbstractText.ts | src/scene/text/AbstractText.ts | import { ObservablePoint } from '../../maths/point/ObservablePoint';
import { deprecation, v8_0_0 } from '../../utils/logging/deprecation';
import { ViewContainer, type ViewContainerOptions } from '../view/ViewContainer';
import type { Size } from '../../maths/misc/Size';
import type { PointData } from '../../maths/po... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/init.ts | src/scene/text/init.ts | import { extensions } from '../../extensions/Extensions';
import { CanvasTextPipe } from './canvas/CanvasTextPipe';
import { CanvasTextSystem } from './canvas/CanvasTextSystem';
extensions.add(CanvasTextSystem);
extensions.add(CanvasTextPipe);
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/Text.ts | src/scene/text/Text.ts | import { TextureStyle, type TextureStyleOptions } from '../../rendering/renderers/shared/texture/TextureStyle';
import { AbstractText, ensureTextOptions } from './AbstractText';
import { type BatchableText } from './canvas/BatchableText';
import { CanvasTextGenerator } from './canvas/CanvasTextGenerator';
import { Canv... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/TextStyle.ts | src/scene/text/TextStyle.ts | import EventEmitter from 'eventemitter3';
import { Color, type ColorSource } from '../../color/Color';
import { type Filter } from '../../filters/Filter';
import { uid } from '../../utils/data/uid';
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 | true |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/CanvasTextPipe.ts | src/scene/text/canvas/CanvasTextPipe.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { GCManagedHash } from '../../../utils/data/GCManagedHash';
import { updateTextBounds } from '../utils/updateTextBounds';
import { BatchableText } from './BatchableText';
import type { InstructionSet } from '../../../rendering/renderers/shared/inst... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/CanvasTextGenerator.ts | src/scene/text/canvas/CanvasTextGenerator.ts | import { Color } from '../../../color/Color';
import { Rectangle } from '../../../maths/shapes/Rectangle';
import { type CanvasAndContext, CanvasPool } from '../../../rendering/renderers/shared/texture/CanvasPool';
import { getCanvasBoundingBox } from '../../../utils/canvas/getCanvasBoundingBox';
import { type TextStyl... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/CanvasTextMetrics.ts | src/scene/text/canvas/CanvasTextMetrics.ts | import { lru } from 'tiny-lru';
import { DOMAdapter } from '../../../environment/adapter';
import { fontStringFromTextStyle } from './utils/fontStringFromTextStyle';
import type { ICanvas, ICanvasRenderingContext2DSettings } from '../../../environment/canvas/ICanvas';
import type { ICanvasRenderingContext2D } from '..... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/BatchableText.ts | src/scene/text/canvas/BatchableText.ts | import { BatchableSprite } from '../../sprite/BatchableSprite';
/** @internal */
export class BatchableText extends BatchableSprite
{
public currentKey: string;
}
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/CanvasTextSystem.ts | src/scene/text/canvas/CanvasTextSystem.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { type Filter } from '../../../filters/Filter';
import { TexturePool } from '../../../rendering/renderers/shared/texture/TexturePool';
import { TextureStyle } from '../../../rendering/renderers/shared/texture/TextureStyle';
import { deprecation } fr... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/utils/fontStringFromTextStyle.ts | src/scene/text/canvas/utils/fontStringFromTextStyle.ts | import type { TextStyle } from '../../TextStyle';
const genericFontFamilies = [
'serif',
'sans-serif',
'monospace',
'cursive',
'fantasy',
'system-ui',
];
/**
* Generates a font style string to use for `TextMetrics.measureFont()`.
* @param style
* @returns Font style string, for passing to `... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/utils/getCanvasFillStyle.ts | src/scene/text/canvas/utils/getCanvasFillStyle.ts | import { Color } from '../../../../color/Color';
import { Matrix } from '../../../../maths/matrix/Matrix';
import { Texture } from '../../../../rendering/renderers/shared/texture/Texture';
import { warn } from '../../../../utils/logging/warn';
import { FillGradient } from '../../../graphics/shared/fill/FillGradient';
i... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/canvas/__tests__/CanvasTextMetrics.test.ts | src/scene/text/canvas/__tests__/CanvasTextMetrics.test.ts | import '~/environment-browser/browserAll';
import { CanvasTextMetrics } from '../CanvasTextMetrics';
describe('CanvasTextMetrics.experimentalLetterSpacingSupported', () =>
{
it('should return a boolean on first call', () =>
{
CanvasTextMetrics._experimentalLetterSpacingSupported = undefined as any;
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/utils/generateTextStyleKey.ts | src/scene/text/utils/generateTextStyleKey.ts | import { Color } from '../../../color/Color';
import { type Filter } from '../../../filters/Filter';
import type { ConvertedFillStyle, ConvertedStrokeStyle } from '../../graphics/shared/FillTypes';
import type { HTMLTextStyle } from '../../text-html/HTMLTextStyle';
import type { TextStyle } from '../TextStyle';
const... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/utils/getPo2TextureFromSource.ts | src/scene/text/utils/getPo2TextureFromSource.ts | import { type ImageLike } from '../../../environment/ImageLike';
import { TexturePool } from '../../../rendering/renderers/shared/texture/TexturePool';
import { Bounds } from '../../container/bounds/Bounds';
import type { ICanvas } from '../../../environment/canvas/ICanvas';
import type { Texture } from '../../../rend... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/utils/canvasTextSplit.ts | src/scene/text/utils/canvasTextSplit.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { Container } from '../../container/Container';
import { type ConvertedStrokeStyle } from '../../graphics/shared/FillTypes';
import { type SplitOptions } from '../../text-split/SplitText';
import { type TextSplitOutput } from '../../text-split/types';
import... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/utils/updateTextBounds.ts | src/scene/text/utils/updateTextBounds.ts | import { updateQuadBounds } from '../../../utils/data/updateQuadBounds';
import { type BatchableSprite } from '../../sprite/BatchableSprite';
import { type AbstractText } from '../AbstractText';
import { type TextStyle, type TextStyleOptions } from '../TextStyle';
/**
* Updates the bounds of the given batchable sprit... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/utils/__tests__/getPo2TextureFromSource.test.ts | src/scene/text/utils/__tests__/getPo2TextureFromSource.test.ts | import { getPo2TextureFromSource } from '../getPo2TextureFromSource';
describe('getPo2TextureFromSource', () =>
{
it('should give correct texture', () =>
{
const canvas = document.createElement('canvas');
canvas.width = 100;
canvas.height = 100;
const texture = getPo2TextureFr... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/__tests__/TextStyle.test.ts | src/scene/text/__tests__/TextStyle.test.ts | /* eslint-disable jest/no-commented-out-tests */
import { FillGradient } from '../../graphics/shared/fill/FillGradient';
import { FillPattern } from '../../graphics/shared/fill/FillPattern';
import { GraphicsContext } from '../../graphics/shared/GraphicsContext';
import { HTMLTextStyle } from '../../text-html/HTMLTextS... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/__tests__/Text.test.ts | src/scene/text/__tests__/Text.test.ts | import { Container } from '../../container/Container';
import { Sprite } from '../../sprite/Sprite';
import { BitmapText } from '../../text-bitmap/BitmapText';
import { Text } from '../Text';
import { TextStyle } from '../TextStyle';
import '../../graphics/init';
import '../../text-bitmap/init';
import '../init';
impor... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/__tests__/TextMetrics.test.ts | src/scene/text/__tests__/TextMetrics.test.ts | /**
* Fonts render slightly differently between platforms so tests that depend on a specific
* widths or breaking of words may not be cross-platform
*/
import { lru } from 'tiny-lru';
import { CanvasTextMetrics } from '../canvas/CanvasTextMetrics';
import { TextStyle } from '../TextStyle';
import type { TextStyleO... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/sdfShader/SdfShader.ts | src/scene/text/sdfShader/SdfShader.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import {
compileHighShaderGlProgram,
compileHighShaderGpuProgram
} from '../../../rendering/high-shader/compileHighShaderToProgram';
import { colorBit, colorBitGl } from '../../../rendering/high-shader/shader-bits/colorBit';
import {
generateTextureBatc... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/sdfShader/shader-bits/localUniformMSDFBit.ts | src/scene/text/sdfShader/shader-bits/localUniformMSDFBit.ts | // TODO eventually we should not use this bit, but instead use the localUniformBit
// have the MSDF bit be merged in with the localUniformBit
/** @internal */
export const localUniformMSDFBit = {
name: 'local-uniform-msdf-bit',
vertex: {
header: /* wgsl */`
struct LocalUniforms {
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text/sdfShader/shader-bits/mSDFBit.ts | src/scene/text/sdfShader/shader-bits/mSDFBit.ts | /** @internal */
export const mSDFBit = {
name: 'msdf-bit',
fragment: {
header: /* wgsl */`
fn calculateMSDFAlpha(msdfColor:vec4<f32>, shapeColor:vec4<f32>, distance:f32) -> f32 {
// MSDF
var median = msdfColor.r + msdfColor.g + msdfColor.b -
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-animated/AnimatedSprite.ts | src/scene/sprite-animated/AnimatedSprite.ts | import { Texture } from '../../rendering/renderers/shared/texture/Texture';
import { UPDATE_PRIORITY } from '../../ticker/const';
import { Ticker } from '../../ticker/Ticker';
import { type DestroyOptions } from '../container/destroyTypes';
import { Sprite } from '../sprite/Sprite';
import type { SpriteOptions } from ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | true |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/sprite-animated/__tests__/AnimatedSprite.test.ts | src/scene/sprite-animated/__tests__/AnimatedSprite.test.ts | import { AnimatedSprite } from '../AnimatedSprite';
import { Texture } from '~/rendering';
import type { Ticker } from '~/ticker';
const ticker1 = { deltaTime: 1 } as Ticker;
const ticker4 = { deltaTime: 4 } as Ticker;
const ticker5 = { deltaTime: 5 } as Ticker;
describe('AnimatedSprite', () =>
{
describe('insta... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/const.ts | src/utils/const.ts | import EventEmitter from 'eventemitter3';
/**
* Regexp for data URI.
* Based on: {@link https://github.com/ragingwind/data-uri-regex}
* @type {RegExp}
* @default /(?:^data:image\/([\w+]+);(?:[\w=]+|charset=[\w-]+)?(?:;base64)?,)/i
* @example
* import { DATA_URI } from 'pixi.js';
*
* DATA_URI.test('data:image/p... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/utils.ts | src/utils/utils.ts | import earcutModule from 'earcut';
/**
* A high performance event emitter
* @see {@link https://github.com/primus/eventemitter3}
* @class EventEmitter
* @category utils
*/
export { default as EventEmitter } from 'eventemitter3';
/**
* A polygon triangulation library
* @see {@link https://github.com/mapbox/earc... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/path.ts | src/utils/path.ts | import { DOMAdapter } from '../environment/adapter';
function assertPath(path: string)
{
if (typeof path !== 'string')
{
throw new TypeError(`Path must be a string. Received ${JSON.stringify(path)}`);
}
}
function removeUrlParams(url: string): string
{
const re = url.split('?')[0];
return... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/sayHello.ts | src/utils/sayHello.ts | import { DOMAdapter } from '../environment/adapter';
import { VERSION } from './const';
let saidHello = false;
/**
* Prints out the version and renderer information for this running instance of PixiJS.
* @param type - The name of the renderer this instance is using.
* @returns {void}
* @category utils
* @advance... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/types.ts | src/utils/types.ts | /**
* A utility type that represents a tuple of length L containing elements of type T.
* @category utils
* @advanced
*/
export type ArrayFixed<T, L extends number> = [ T, ...Array<T> ] & { length: L };
/**
* A dictionary type that maps string keys to values of type T.
* @category utils
* @advanced
*/
export t... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/index.ts | src/utils/index.ts | // Auto-generated code, do not edit manually
export * from './browser/detectVideoAlphaMode';
export * from './browser/isMobile';
export * from './browser/isSafari';
export * from './browser/isWebGLSupported';
export * from './browser/isWebGPUSupported';
export * from './browser/unsafeEvalSupported';
export * from './ca... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/misc/Transform.ts | src/utils/misc/Transform.ts | import { Matrix } from '../../maths/matrix/Matrix';
import { ObservablePoint } from '../../maths/point/ObservablePoint';
import type { Observer } from '../../maths/point/ObservablePoint';
/**
* Options for the {@link Transform} constructor.
* @category utils
* @advanced
*/
export interface TransformOptions
{
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/misc/NOOP.ts | src/utils/misc/NOOP.ts | /** @internal */
export const NOOP = () =>
{
// empty!
};
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/global/globalHooks.ts | src/utils/global/globalHooks.ts | import { type ExtensionMetadata, ExtensionType } from '../../extensions/Extensions';
import { VERSION } from '../const';
import type { Application } from '../../app/Application';
import type { System } from '../../rendering/renderers/shared/system/System';
import type { Renderer } from '../../rendering/renderers/types... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/pool/GlobalResourceRegistry.ts | src/utils/pool/GlobalResourceRegistry.ts | /** Interface for objects that can be cleaned up by the PoolCollector. */
interface Cleanable
{
clear(): void;
}
/**
* A singleton collector that manages and provides cleanup for registered pools and caches.
* Useful for cleaning up all pools/caches at once during application shutdown or reset.
* @category util... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/pool/Pool.ts | src/utils/pool/Pool.ts | /**
* A generic class for managing a pool of items.
* @template T The type of items in the pool. Must implement {@link PoolItem}.
* @category utils
* @advanced
*/
export class Pool<T extends PoolItem>
{
/** @internal */
public readonly _classType: PoolItemConstructor<T>;
private readonly _pool: T[] = [... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/pool/PoolGroup.ts | src/utils/pool/PoolGroup.ts | import { GlobalResourceRegistry } from './GlobalResourceRegistry';
import { Pool } from './Pool';
import type { PoolItem, PoolItemConstructor } from './Pool';
/**
* A type alias for a constructor of a Pool.
* @template T The type of items in the pool. Must extend PoolItem.
* @category utils
* @advanced
*/
export... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/pool/__tests__/Pool.test.ts | src/utils/pool/__tests__/Pool.test.ts | import { Pool } from '../Pool';
class TestItem
{
public value: number;
constructor()
{
this.value = 0;
}
public init(data?: unknown)
{
this.value = data as number || 0;
}
public reset()
{
this.value = 0;
}
}
describe('Pool', () =>
{
it('should cre... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/logging/deprecation.ts | src/utils/logging/deprecation.ts | // A set of warning messages already fired
const warnings: Set<string> = new Set();
/**
* deprecation name for version 8.0.0
* @ignore
* @internal
*/
export const v8_0_0 = '8.0.0';
/**
* deprecation name for version 8.1.0
* @ignore
* @internal
*/
export const v8_3_4 = '8.3.4';
/**
* Options for managing depr... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/logging/logDebugTexture.ts | src/utils/logging/logDebugTexture.ts | import type { Texture } from '../../rendering/renderers/shared/texture/Texture';
import type { Renderer } from '../../rendering/renderers/types';
/**
* Logs a texture to the console as a base64 image.
* This can be very useful for debugging issues with rendering.
* @param texture - The texture to log
* @param rend... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/utils/logging/warn.ts | src/utils/logging/warn.ts | let warnCount = 0;
const maxWarnings = 500;
/**
* Logs a PixiJS warning message to the console. Stops logging after 500 warnings have been logged.
* @param args - The warning message(s) to log
* @returns {void}
* @category utils
* @ignore
*/
export function warn(...args: any[])
{
if (warnCount === maxWarning... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.