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/container/__tests__/getLocalBounds.test.ts | src/scene/container/__tests__/getLocalBounds.test.ts | import { Graphics } from '../../graphics/shared/Graphics';
import { Sprite } from '../../sprite/Sprite';
import { Bounds } from '../bounds/Bounds';
import { getLocalBounds } from '../bounds/getLocalBounds';
import { Container } from '../Container';
import { DummyEffect } from './DummyEffect';
import { DummyView } from ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/transform.test.ts | src/scene/container/__tests__/transform.test.ts | import { Container } from '../Container';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
import { DummyView } from './DummyView';
import { Matrix } from '~/maths';
describe('Transform updates', () =>
{
it('should calculate local transform correctly', async () =>
{
c... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/Container.Events.test.ts | src/scene/container/__tests__/Container.Events.test.ts | import { Container } from '../Container';
describe('Container Events', () =>
{
it('should trigger "added", "removed", "childAdded", and "childRemoved" events on itself and children', () =>
{
const container = new Container();
const child = new Container();
let triggeredAdded = false;
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/transform-visibility.test.ts | src/scene/container/__tests__/transform-visibility.test.ts | import { Container } from '../Container';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
describe('Transform Visibility', () =>
{
it('should not cause a rebuild if visibility 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__/getGlobalBounds.test.ts | src/scene/container/__tests__/getGlobalBounds.test.ts | import { Bounds } from '../bounds/Bounds';
import { getGlobalBounds } from '../bounds/getGlobalBounds';
import { Container } from '../Container';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
import { DummyEffect } from './DummyEffect';
import { DummyView } from './DummyView';
impo... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/mask.test.ts | src/scene/container/__tests__/mask.test.ts | import { Graphics } from '../../graphics/shared/Graphics';
import { Container } from '../Container';
describe('Mask Tests', () =>
{
it('should correctly set a mask to null and back', async () =>
{
const container = new Container({
label: 'container',
});
const mask = new Gr... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/getGlobalFastBounds.test.ts | src/scene/container/__tests__/getGlobalFastBounds.test.ts | import { RenderLayer } from '../../layers/RenderLayer';
import { Bounds } from '../bounds/Bounds';
import { Container } from '../Container';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
import { DummyEffect } from './DummyEffect';
import { DummyView } from './DummyView';
import { ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/getGlobalPosition.test.ts | src/scene/container/__tests__/getGlobalPosition.test.ts | import { Container } from '../Container';
describe('Container#getGlobalPosition', () =>
{
it('should exist', () =>
{
const obj = new Container();
expect(obj.getGlobalPosition).toBeDefined();
expect(obj.getGlobalPosition).toBeInstanceOf(Function);
});
it('should return correct ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/transform-tint.test.ts | src/scene/container/__tests__/transform-tint.test.ts | import { Container } from '../Container';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
function check32BitColorMatches(color1: number, color2: number[] | number): void
{
const r = (color1 >> 24) & 0xFF;
const g = (color1 >> 16) & 0xFF;
const b = (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/__tests__/DummyView.ts | src/scene/container/__tests__/DummyView.ts | import { Bounds } from '../../../scene/container/bounds/Bounds';
import { Container } from '../Container';
import type { Point } from '../../../maths/point/Point';
import type { View, ViewObserver } from '../../../rendering/renderers/shared/view/View';
import type { ContainerOptions } from '../Container';
interface D... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/RenderGroup.test.ts | src/scene/container/__tests__/RenderGroup.test.ts | import { Sprite } from '../../sprite/Sprite';
import { Container } from '../Container';
import { RenderGroup } from '../RenderGroup';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
import { getWebGLRenderer } from '@test-utils';
import { Texture } from '~/rendering';
import { BigPoo... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/Container.Visual.test.ts | src/scene/container/__tests__/Container.Visual.test.ts | import { Container } from '../Container';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
import { DEG_TO_RAD, RAD_TO_DEG } from '~/maths';
import { Sprite } from '~/scene';
describe('Container Visual', () =>
{
describe('mask', () =>
{
// todo: ticket: https://github... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/depthSorting.test.ts | src/scene/container/__tests__/depthSorting.test.ts | import { Container } from '../Container';
describe('Depth sorting', () =>
{
it('should depth sort children correctly', async () =>
{
const container = new Container();
const child1 = new Container();
const child2 = new Container();
const child3 = new Container();
conta... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/getChildByLabel.test.ts | src/scene/container/__tests__/getChildByLabel.test.ts | import { Container } from '../Container';
describe('Container#Label', () =>
{
it('should contain property', () =>
{
const obj = new Container();
expect(obj.label).toBeDefined();
expect(obj.label).toBeNull();
});
});
describe('Container#getChildByLabel', () =>
{
it('should exis... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/Container.Culling.test.ts | src/scene/container/__tests__/Container.Culling.test.ts | /* eslint-disable jest/no-commented-out-tests */
// import { getRenderer } from '../utils/getRenderer';
// import type { WebGLRenderer } from '../../src/rendering/renderers/gl/WebGLRenderer';
// note: culling is not ported in v8 yet, keeping these tests for reference
describe('Container Culling', () =>
{
it('shou... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/Container.Sort.test.ts | src/scene/container/__tests__/Container.Sort.test.ts | import { Container } from '../Container';
describe('Container Sort', () =>
{
describe('sortDirty', () =>
{
it('should set sortDirty flag to true when adding a new child', () =>
{
const parent = new Container();
const child = new Container();
parent.sortableC... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/renderable.test.ts | src/scene/container/__tests__/renderable.test.ts | import { Container } from '../Container';
import { DummyView } from './DummyView';
describe('Renderable Containers', () =>
{
it('should register a renderable update correctly in the render group', async () =>
{
const container = new Container({
isRenderGroup: true,
});
cons... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/__tests__/root-visibility.test.ts | src/scene/container/__tests__/root-visibility.test.ts | import { Container } from '../Container';
import { updateRenderGroupTransforms } from '../utils/updateRenderGroupTransforms';
describe('Root Container Visibility Bug Fix', () =>
{
it('should not render when root container visibility is false', async () =>
{
// Create a root container that acts as a ren... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/sortMixin.ts | src/scene/container/container-mixins/sortMixin.ts | import type { Container } from '../Container';
/** @ignore */
export interface SortMixinConstructor
{
/**
* The zIndex of the container.
*
* Controls the rendering order of children within their parent container.
*
* A higher value will mean it will be moved towards the front of the render... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/getFastGlobalBoundsMixin.ts | src/scene/container/container-mixins/getFastGlobalBoundsMixin.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { type Renderable } from '../../../rendering/renderers/shared/Renderable';
import { type RenderLayer } from '../../layers/RenderLayer';
import { Bounds } from '../bounds/Bounds';
import { boundsPool } from '../bounds/utils/matrixAndBoundsPool';
import type ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/onRenderMixin.ts | src/scene/container/container-mixins/onRenderMixin.ts | import type { Renderer } from '../../../rendering/renderers/types';
import type { Container } from '../Container';
/** @internal */
export interface OnRenderMixinConstructor
{
/**
* This callback is used when the container is rendered. It runs every frame during the render process,
* making it ideal for ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/getGlobalMixin.ts | src/scene/container/container-mixins/getGlobalMixin.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { updateTransformBackwards } from '../bounds/getGlobalBounds';
import { matrixPool } from '../bounds/utils/matrixAndBoundsPool';
import { multiplyColors } from '../utils/multiplyColors';
import type { Container } from '../Container';
/**
* Converts a colo... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/toLocalGlobalMixin.ts | src/scene/container/container-mixins/toLocalGlobalMixin.ts | import { Point } from '../../../maths/point/Point';
import { matrixPool } from '../bounds/utils/matrixAndBoundsPool';
import type { PointData } from '../../../maths/point/PointData';
import type { Container } from '../Container';
/**
* Interface for a mixin that provides methods to convert between local and global c... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/childrenHelperMixin.ts | src/scene/container/container-mixins/childrenHelperMixin.ts | import { removeItems } from '../../../utils/data/removeItems';
import { deprecation, v8_0_0 } from '../../../utils/logging/deprecation';
import type { Container, ContainerChild } from '../Container';
/**
* Mixin interface for containers that allows them to manage children.
* It provides methods for adding, removing... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/findMixin.ts | src/scene/container/container-mixins/findMixin.ts | import { deprecation, v8_0_0 } from '../../../utils/logging/deprecation';
import type { Container } from '../Container';
/** @ignore */
export interface FindMixinConstructor
{
/**
* The instance label of the object.
* @default null
*/
label?: string;
}
/**
* The FindMixin interface provides m... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/measureMixin.ts | src/scene/container/container-mixins/measureMixin.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { Bounds } from '../bounds/Bounds';
import { getGlobalBounds } from '../bounds/getGlobalBounds';
import { getLocalBounds } from '../bounds/getLocalBounds';
import { checkChildrenDidChange } from '../utils/checkChildrenDidChange';
import type { Size } from '... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/collectRenderablesMixin.ts | src/scene/container/container-mixins/collectRenderablesMixin.ts | import { type InstructionSet } from '../../../rendering/renderers/shared/instructions/InstructionSet';
import { type InstructionPipe } from '../../../rendering/renderers/shared/instructions/RenderPipe';
import { type Renderer, type RenderPipes } from '../../../rendering/renderers/types';
import { type RenderLayer } fro... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/effectsMixin.ts | src/scene/container/container-mixins/effectsMixin.ts | import { FilterEffect } from '../../../filters/FilterEffect';
import { MaskEffectManager } from '../../../rendering/mask/MaskEffectManager';
import type { Filter } from '../../../filters/Filter';
import type { Rectangle } from '../../../maths/shapes/Rectangle';
import type { MaskEffect } from '../../../rendering/mask/... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/container-mixins/cacheAsTextureMixin.ts | src/scene/container/container-mixins/cacheAsTextureMixin.ts | import { deprecation } from '../../../utils/logging/deprecation';
import type { Container } from '../Container';
import type { CacheAsTextureOptions } from '../RenderGroup';
/** @ignore */
export interface CacheAsTextureMixinConstructor
{
cacheAsTexture?: (val: boolean | CacheAsTextureOptions) => void;
}
/**
* ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/bounds/getFastGlobalBounds.ts | src/scene/container/bounds/getFastGlobalBounds.ts | import { deprecation } from '../../../utils/logging/deprecation';
import type { Container } from '../Container';
import type { Bounds } from './Bounds';
/**
* Does exactly the same as getGlobalBounds, but does instead makes use of transforming AABBs
* of the various children within the scene graph. This is much fas... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/bounds/getLocalBounds.ts | src/scene/container/bounds/getLocalBounds.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { boundsPool, matrixPool } from './utils/matrixAndBoundsPool';
import type { Renderable } from '../../../rendering/renderers/shared/Renderable';
import type { Container } from '../Container';
import type { Bounds } from './Bounds';
/**
* @param target
* ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/bounds/getRenderableBounds.ts | src/scene/container/bounds/getRenderableBounds.ts | import { Matrix } from '../../../maths';
import type { Renderable } from '../../../rendering/renderers/shared/Renderable';
import type { Bounds } from './Bounds';
/**
* This matrix is used for calculations of the bounds for renderables placed inside cacheAsTexture render groups.
* @ignore
* @internal
*/
const tem... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/bounds/Bounds.ts | src/scene/container/bounds/Bounds.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { Rectangle } from '../../../maths/shapes/Rectangle';
/**
* A simple axis-aligned bounding box (AABB) data structure used to define rectangular boundaries.
* Provides a clearer alternative to array-based bounds representation [minX, minY, maxX, maxY].
* ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/bounds/getGlobalBounds.ts | src/scene/container/bounds/getGlobalBounds.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { boundsPool, matrixPool } from './utils/matrixAndBoundsPool';
import type { Renderable } from '../../../rendering/renderers/shared/Renderable';
import type { Container } from '../Container';
import type { Bounds } from './Bounds';
/**
* Gets the global b... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/container/bounds/utils/matrixAndBoundsPool.ts | src/scene/container/bounds/utils/matrixAndBoundsPool.ts | import { Matrix } from '../../../../maths/matrix/Matrix';
import { BigPool } from '../../../../utils/pool/PoolGroup';
import { Bounds } from '../Bounds';
import type { PoolItem } from '../../../../utils/pool/Pool';
type MatrixPoolItem = Matrix & PoolItem;
type BoundsPoolItem = Bounds & PoolItem;
/** @internal */
expo... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/init.ts | src/scene/graphics/init.ts | import { extensions } from '../../extensions/Extensions';
import { GraphicsContextSystem } from './shared/GraphicsContextSystem';
import { GraphicsPipe } from './shared/GraphicsPipe';
extensions.add(GraphicsPipe);
extensions.add(GraphicsContextSystem);
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/GraphicsMixins.d.ts | src/scene/graphics/GraphicsMixins.d.ts | declare global
{
namespace PixiMixins
{
interface RendererSystems
{
graphicsContext: import('./shared/GraphicsContextSystem').GraphicsContextSystem;
}
interface RendererPipes
{
graphics: import('./shared/GraphicsPipe').GraphicsPipe;
}
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/gpu/GpuGraphicsAdaptor.ts | src/scene/graphics/gpu/GpuGraphicsAdaptor.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { Matrix } from '../../../maths/matrix/Matrix';
import { getTextureBatchBindGroup } from '../../../rendering/batcher/gpu/getTextureBatchBindGroup';
import { compileHighShaderGpuProgram } from '../../../rendering/high-shader/compileHighShaderToProgra... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/gpu/colorToUniform.ts | src/scene/graphics/gpu/colorToUniform.ts | /**
* @param rgb
* @param alpha
* @param out
* @param offset
* @internal
*/
export function colorToUniform(rgb: number, alpha: number, out: Float32Array, offset: number)
{
// TODO replace with Color..
out[offset++] = ((rgb >> 16) & 0xFF) / 255;
out[offset++] = ((rgb >> 8) & 0xFF) / 255;
out[offset... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/__tests__/Graphics.Destroy.test.ts | src/scene/graphics/__tests__/Graphics.Destroy.test.ts | import { Container } from '../../container/Container';
import { FillGradient } from '../shared/fill/FillGradient';
import { Graphics } from '../shared/Graphics';
import { GraphicsContext } from '../shared/GraphicsContext';
import '../init';
import { getWebGLRenderer } from '@test-utils';
describe('Graphics Destroy', (... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/__tests__/Graphics.test.ts | src/scene/graphics/__tests__/Graphics.test.ts | import { Rectangle } from '../../../maths/shapes/Rectangle';
import { Graphics } from '../shared/Graphics';
import { GraphicsContext } from '../shared/GraphicsContext';
import { GraphicsPath } from '../shared/path/GraphicsPath';
import { toFillStyle } from '../shared/utils/convertFillInputToFillStyle';
import { generat... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/__tests__/Graphics.Drawing.test.ts | src/scene/graphics/__tests__/Graphics.Drawing.test.ts | import { Bounds } from '../../container/bounds/Bounds';
import { getLocalBounds } from '../../container/bounds/getLocalBounds';
import { Graphics } from '../shared/Graphics';
import { GraphicsContext } from '../shared/GraphicsContext';
import { Matrix } from '~/maths';
import { Texture } from '~/rendering';
import typ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/__tests__/Graphics.Bounds.test.ts | src/scene/graphics/__tests__/Graphics.Bounds.test.ts | import { Graphics } from '../shared/Graphics';
import { Point } from '~/maths';
describe('Graphics Bounds', () =>
{
describe('bounds', () =>
{
it('should give correct bounds without stroke', () =>
{
const graphics = new Graphics();
graphics.rect(10, 20, 100, 200).fill(0... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/gl/GlGraphicsAdaptor.ts | src/scene/graphics/gl/GlGraphicsAdaptor.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { Matrix } from '../../../maths/matrix/Matrix';
import { compileHighShaderGlProgram } from '../../../rendering/high-shader/compileHighShaderToProgram';
import { colorBitGl } from '../../../rendering/high-shader/shader-bits/colorBit';
import { genera... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/GraphicsPipe.ts | src/scene/graphics/shared/GraphicsPipe.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { State } from '../../../rendering/renderers/shared/state/State';
import { type Renderer } from '../../../rendering/renderers/types';
import { GCManagedHash } from '../../../utils/data/GCManagedHash';
import { BigPool } from '../../../utils/pool/Poo... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/const.ts | src/scene/graphics/shared/const.ts | /**
* The line cap styles for strokes.
*
* It can be:
* - `butt`: The ends of the stroke are squared off at the endpoints.
* - `round`: The ends of the stroke are rounded.
* @category scene
* @standard
*/
export type LineCap = 'butt' | 'round' | 'square';
/**
* The line join styles for strokes.
*
* It can be... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/GraphicsContext.ts | src/scene/graphics/shared/GraphicsContext.ts | /* eslint-disable max-len */
import EventEmitter from 'eventemitter3';
import { Color, type ColorSource } from '../../../color/Color';
import { Matrix } from '../../../maths/matrix/Matrix';
import { Point } from '../../../maths/point/Point';
import { type GCable, type GCData } from '../../../rendering/renderers/shared/... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | true |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/Graphics.ts | src/scene/graphics/shared/Graphics.ts | import { deprecation, v8_0_0 } from '../../../utils/logging/deprecation';
import { ViewContainer, type ViewContainerOptions } from '../../view/ViewContainer';
import { GraphicsContext } from './GraphicsContext';
import { type GraphicsGpuData } from './GraphicsPipe';
import type { ColorSource } from '../../../color/Col... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | true |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/BatchableGraphics.ts | src/scene/graphics/shared/BatchableGraphics.ts | import { Matrix } from '../../../maths/matrix/Matrix';
import { multiplyHexColors } from '../../container/utils/multiplyHexColors';
import type { Batch, Batcher } from '../../../rendering/batcher/shared/Batcher';
import type { DefaultBatchableMeshElement } from '../../../rendering/batcher/shared/DefaultBatcher';
impor... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/GraphicsContextSystem.ts | src/scene/graphics/shared/GraphicsContextSystem.ts | import { ExtensionType } from '../../../extensions/Extensions';
import { getTextureBatchBindGroup } from '../../../rendering/batcher/gpu/getTextureBatchBindGroup';
import { type BatcherOptions } from '../../../rendering/batcher/shared/Batcher';
import { DefaultBatcher } from '../../../rendering/batcher/shared/DefaultBa... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/FillTypes.ts | src/scene/graphics/shared/FillTypes.ts | import type { ColorSource } from '../../../color/Color';
import type { Matrix } from '../../../maths/matrix/Matrix';
import type { Texture } from '../../../rendering/renderers/shared/texture/Texture';
import type { LineCap, LineJoin } from './const';
import type { FillGradient } from './fill/FillGradient';
import type ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/triangulateWithHoles.ts | src/scene/graphics/shared/utils/triangulateWithHoles.ts | import { earcut } from '../../../../utils/utils';
/**
* @param points
* @param holes
* @param vertices
* @param verticesStride
* @param verticesOffset
* @param indices
* @param indicesOffset
* @internal
*/
export function triangulateWithHoles(
points: number[],
holes: number[],
vertices: number[],... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/buildContextBatches.ts | src/scene/graphics/shared/utils/buildContextBatches.ts | import { extensions, ExtensionType } from '../../../../extensions/Extensions';
import { Matrix } from '../../../../maths/matrix/Matrix';
import { Rectangle } from '../../../../maths/shapes/Rectangle';
import { buildSimpleUvs, buildUvs } from '../../../../rendering/renderers/shared/geometry/utils/buildUvs';
import { tra... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/generateTextureFillMatrix.ts | src/scene/graphics/shared/utils/generateTextureFillMatrix.ts | import { Matrix } from '../../../../maths/matrix/Matrix';
import { Rectangle } from '../../../../maths/shapes/Rectangle';
import { FillGradient } from '../fill/FillGradient';
import type { ShapePrimitive } from '../../../../maths/shapes/ShapePrimitive';
import type { FillStyle, StrokeStyle } from '../FillTypes';
/**
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/getOrientationOfPoints.ts | src/scene/graphics/shared/utils/getOrientationOfPoints.ts | /**
* @param points
* @internal
*/
export function getOrientationOfPoints(points: number[]): number
{
const m = points.length;
if (m < 6)
{
return 1;
}
let area = 0;
for (let i = 0, x1 = points[m - 2], y1 = points[m - 1]; i < m; i += 2)
{
const x2 = points[i];
c... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/buildGeometryFromPath.ts | src/scene/graphics/shared/utils/buildGeometryFromPath.ts | import { buildSimpleUvs, buildUvs } from '../../../../rendering/renderers/shared/geometry/utils/buildUvs';
import { transformVertices } from '../../../../rendering/renderers/shared/geometry/utils/transformVertices';
import { MeshGeometry } from '../../../mesh/shared/MeshGeometry';
import { GraphicsPath } from '../path/... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/convertFillInputToFillStyle.ts | src/scene/graphics/shared/utils/convertFillInputToFillStyle.ts | import { Color } from '../../../../color/Color';
import { Texture } from '../../../../rendering/renderers/shared/texture/Texture';
import { FillGradient } from '../fill/FillGradient';
import { FillPattern } from '../fill/FillPattern';
import type { ColorSource } from '../../../../color/Color';
import type {
Conver... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/__tests__/convertStrokeInputToStrokeStyle.test.ts | src/scene/graphics/shared/utils/__tests__/convertStrokeInputToStrokeStyle.test.ts | import { FillGradient } from '../../fill/FillGradient';
import { FillPattern } from '../../fill/FillPattern';
import { toFillStyle, toStrokeStyle } from '../convertFillInputToFillStyle';
import { Color } from '~/color';
import { Texture } from '~/rendering';
import type { ConvertedStrokeStyle } from '../../FillTypes';... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/utils/__tests__/toFillStyle.test.ts | src/scene/graphics/shared/utils/__tests__/toFillStyle.test.ts | import { FillGradient } from '../../fill/FillGradient';
import { FillPattern } from '../../fill/FillPattern';
import { type ConvertedFillStyle, type FillStyle } from '../../FillTypes';
import { toFillStyle } from '../convertFillInputToFillStyle';
import { Color } from '~/color/Color';
import { Texture } from '~/renderi... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/__tests__/GraphicsContextSystem.test.ts | src/scene/graphics/shared/__tests__/GraphicsContextSystem.test.ts | import { GraphicsContext } from '../GraphicsContext';
import { GraphicsContextSystem } from '../GraphicsContextSystem';
import { getWebGLRenderer } from '@test-utils';
describe('GraphicsContextSystem', () =>
{
describe('ShapeBuildCommand', () =>
{
it('should successfully build shapes', async () =>
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/__tests__/Graphics.AdaptiveBezierSmoothing.test.ts | src/scene/graphics/shared/__tests__/Graphics.AdaptiveBezierSmoothing.test.ts | import '~/environment-browser/browserAll';
import { Graphics } from '../Graphics';
import { GraphicsContextSystem } from '../GraphicsContextSystem';
import { Application } from '~/app';
import type { Polygon } from '~/maths';
describe('Graphics Adaptive Bezier Smoothing', () =>
{
it('should update default value f... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/__tests__/bounds.test.ts | src/scene/graphics/shared/__tests__/bounds.test.ts | import { GraphicsContext } from '~/scene';
describe('Graphics context bounds calculation', (): void =>
{
it('should recalculate bounds on content change, even if gpuContext was not updated yet', (): void =>
{
const gc = new GraphicsContext();
gc.clear();
const emptyBounds = gc.bounds.... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/__tests__/SVGParser.test.ts | src/scene/graphics/shared/__tests__/SVGParser.test.ts | import { SVGParser } from '../../../graphics/shared/svg/SVGParser';
import { getFillInstructionData } from '../../../graphics/shared/svg/utils/fillOperations';
import { GraphicsContext } from '../GraphicsContext';
describe('SVGParser Fill Rule', () =>
{
it('should handle evenodd fill rule with multiple subpaths us... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/__tests__/fillOperations.test.ts | src/scene/graphics/shared/__tests__/fillOperations.test.ts | import { GraphicsContext } from '../GraphicsContext';
import { checkForNestedPattern, getFillInstructionData } from '../svg/utils/fillOperations';
describe('fillOperations', () =>
{
describe('checkForNestedPattern', () =>
{
it('should return true for nested pattern (large outer, small inner)', () =>
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/__tests__/pathOperations.test.ts | src/scene/graphics/shared/__tests__/pathOperations.test.ts | import { GraphicsPath } from '../path/GraphicsPath';
import { appendSVGPath, calculatePathArea, extractSubpaths } from '../svg/utils/pathOperations';
describe('pathOperations', () =>
{
describe('extractSubpaths', () =>
{
it('should split path data on Move commands', () =>
{
const pa... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/fill/FillGradient.ts | src/scene/graphics/shared/fill/FillGradient.ts | import { Color } from '../../../../color/Color';
import { DOMAdapter } from '../../../../environment/adapter';
import { Matrix } from '../../../../maths/matrix/Matrix';
import { type WRAP_MODE } from '../../../../rendering/renderers/shared/texture/const';
import { ImageSource } from '../../../../rendering/renderers/sha... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/fill/FillPattern.ts | src/scene/graphics/shared/fill/FillPattern.ts | import { Matrix } from '../../../../maths/matrix/Matrix';
import { uid } from '../../../../utils/data/uid';
import type { WRAP_MODE } from '../../../../rendering/renderers/shared/texture/const';
import type { Texture } from '../../../../rendering/renderers/shared/texture/Texture';
/**
* Defines the repetition modes ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/path/ShapePath.ts | src/scene/graphics/shared/path/ShapePath.ts | // a shape lets you build out a shape with lines and curves and primitives..
import { Circle } from '../../../../maths/shapes/Circle';
import { Ellipse } from '../../../../maths/shapes/Ellipse';
import { Polygon } from '../../../../maths/shapes/Polygon';
import { Rectangle } from '../../../../maths/shapes/Rectangle';
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/path/GraphicsPath.ts | src/scene/graphics/shared/path/GraphicsPath.ts | import { Point } from '../../../../maths/point/Point';
import { uid } from '../../../../utils/data/uid';
import { warn } from '../../../../utils/logging/warn';
import { parseSVGPath } from '../svg/parseSVGPath';
import { ShapePath } from './ShapePath';
import type { Matrix } from '../../../../maths/matrix/Matrix';
imp... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | true |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/path/roundShape.ts | src/scene/graphics/shared/path/roundShape.ts | import type { PointData } from '../../../../maths/point/PointData';
import type { ShapePath } from './ShapePath';
/**
* Typed and cleaned up version of:
* https://stackoverflow.com/questions/44855794/html5-canvas-triangle-with-rounded-corners/44856925#44856925
* @param g - Graphics to be drawn on.
* @param points ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildArc.ts | src/scene/graphics/shared/buildCommands/buildArc.ts | /**
* @param points
* @param x
* @param y
* @param radius
* @param start
* @param end
* @param clockwise
* @param steps
* @internal
*/
export function buildArc(
points: number[],
x: number, y: number,
radius: number,
start: number,
end: number,
clockwise: boolean,
steps?: number
)
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildPolygon.ts | src/scene/graphics/shared/buildCommands/buildPolygon.ts | import { ExtensionType } from '../../../../extensions/Extensions';
import { triangulateWithHoles } from '../utils/triangulateWithHoles';
import type { Polygon } from '../../../../maths/shapes/Polygon';
import type { ShapeBuildCommand } from './ShapeBuildCommand';
const emptyArray: number[] = [];
/**
* Builds a rect... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildLine.ts | src/scene/graphics/shared/buildCommands/buildLine.ts | import { Point } from '../../../../maths/point/Point';
import { closePointEps, curveEps } from '../const';
import { getOrientationOfPoints } from '../utils/getOrientationOfPoints';
import type { StrokeAttributes } from '../FillTypes';
/**
* Buffers vertices to draw a square cap.
*
* Ignored from docs since it is n... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildRectangle.ts | src/scene/graphics/shared/buildCommands/buildRectangle.ts | import { ExtensionType } from '../../../../extensions/Extensions';
import type { Rectangle } from '../../../../maths/shapes/Rectangle';
import type { ShapeBuildCommand } from './ShapeBuildCommand';
/**
* Builds a rectangle to draw
*
* Ignored from docs since it is not directly exposed.
* @ignore
* @private
*/
e... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildAdaptiveQuadratic.ts | src/scene/graphics/shared/buildCommands/buildAdaptiveQuadratic.ts | // thanks to https://github.com/mattdesl/adaptive-quadratic-curve
// for the original code!
import { GraphicsContextSystem } from '../GraphicsContextSystem';
const RECURSION_LIMIT = 8;
const FLT_EPSILON = 1.19209290e-7;
const PATH_DISTANCE_EPSILON = 1.0;
const curveAngleToleranceEpsilon = 0.01;
const mAngleTolerance... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildArcTo.ts | src/scene/graphics/shared/buildCommands/buildArcTo.ts | import { buildArc } from './buildArc';
/**
* The arcTo() method creates an arc/curve between two tangents on the canvas.
*
* "borrowed" from https://code.google.com/p/fxcanvas/ - thanks google!
* @param points
* @param x1
* @param y1
* @param x2
* @param y2
* @param radius
* @internal
*/
export function bui... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildPixelLine.ts | src/scene/graphics/shared/buildCommands/buildPixelLine.ts | import { closePointEps } from '../const';
/**
* Builds a line to draw using the polygon method.
* @param points
* @param closed
* @param vertices
* @param indices
* @internal
*/
export function buildPixelLine(
points: number[],
closed: boolean,
vertices: number[],
indices: number[],
): void
{
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/ShapeBuildCommand.ts | src/scene/graphics/shared/buildCommands/ShapeBuildCommand.ts | import type { ExtensionMetadataDetails } from '../../../../extensions/Extensions';
import type { ShapePrimitive } from '../../../../maths/shapes/ShapePrimitive';
/** @internal */
export interface ShapeBuildCommand<T extends ShapePrimitive = ShapePrimitive>
{
extension: ExtensionMetadataDetails
build(shape: T, ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildTriangle.ts | src/scene/graphics/shared/buildCommands/buildTriangle.ts | import { ExtensionType } from '../../../../extensions/Extensions';
import type { Triangle } from '../../../../maths/shapes/Triangle';
import type { ShapeBuildCommand } from './ShapeBuildCommand';
/**
* Builds a triangle to draw
*
* Ignored from docs since it is not directly exposed.
* @ignore
* @private
*/
expo... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildCircle.ts | src/scene/graphics/shared/buildCommands/buildCircle.ts | import { ExtensionType } from '../../../../extensions/Extensions';
import type { Circle } from '../../../../maths/shapes/Circle';
import type { Ellipse } from '../../../../maths/shapes/Ellipse';
import type { RoundedRectangle } from '../../../../maths/shapes/RoundedRectangle';
import type { ShapeBuildCommand } from '.... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildArcToSvg.ts | src/scene/graphics/shared/buildCommands/buildArcToSvg.ts | import { buildAdaptiveBezier } from './buildAdaptiveBezier';
const TAU = Math.PI * 2;
const out = {
centerX: 0,
centerY: 0,
ang1: 0,
ang2: 0
};
const mapToEllipse = (
{ x, y }: {x: number, y: number},
rx: number, ry: number,
cosPhi: number, sinPhi: number,
centerX: number, centerY: nu... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/buildCommands/buildAdaptiveBezier.ts | src/scene/graphics/shared/buildCommands/buildAdaptiveBezier.ts | // thanks to https://github.com/mattdesl/adaptive-bezier-curve
// for the original code!
import { GraphicsContextSystem } from '../GraphicsContextSystem';
const RECURSION_LIMIT = 8;
const FLT_EPSILON = 1.19209290e-7;
const PATH_DISTANCE_EPSILON = 1.0;
const curveAngleToleranceEpsilon = 0.01;
const mAngleTolerance = ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/parseSVGDefinitions.ts | src/scene/graphics/shared/svg/parseSVGDefinitions.ts | import { Color } from '../../../../color/Color';
import { warn } from '../../../../utils/logging/warn';
import { FillGradient } from '../fill/FillGradient';
import { parseSVGFloatAttribute } from './parseSVGFloatAttribute';
import type { Session } from './SVGParser';
/**
* Parses SVG gradient definitions and stores ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/parseSVGStyle.ts | src/scene/graphics/shared/svg/parseSVGStyle.ts | import { Color } from '../../../../color/Color';
import { extractSvgUrlId } from './utils/extractSvgUrlId';
import type { ConvertedFillStyle, ConvertedStrokeStyle, FillStyle, StrokeStyle } from '../FillTypes';
import type { Session } from './SVGParser';
/**
* A map of SVG style attributes and their default values.
... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/parseSVGFloatAttribute.ts | src/scene/graphics/shared/svg/parseSVGFloatAttribute.ts | /**
* Parses a float value from an SVG element's attribute.
* This is commonly used for parsing numeric attributes like coordinates, dimensions,
* and other measurements from SVG elements.
* @param svg - The SVG element to get the attribute from
* @param id - The name of the attribute to parse (e.g. 'x', 'y', 'wid... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/SVGParser.ts | src/scene/graphics/shared/svg/SVGParser.ts | import { warn } from '../../../../utils/logging/warn';
import { GraphicsPath } from '../path/GraphicsPath';
import { parseSVGDefinitions } from './parseSVGDefinitions';
import { parseSVGFloatAttribute } from './parseSVGFloatAttribute';
import { parseSVGStyle } from './parseSVGStyle';
import { checkForNestedPattern } fr... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/parseSVGPath.ts | src/scene/graphics/shared/svg/parseSVGPath.ts | import parse from 'parse-svg-path';
import { warn } from '../../../../utils/logging/warn';
import type { GraphicsPath } from '../path/GraphicsPath';
interface SubPath
{
startX: number;
startY: number;
}
/**
* Parses an SVG path data string and builds a GraphicsPath object from the commands.
* This function... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/utils/pathOperations.ts | src/scene/graphics/shared/svg/utils/pathOperations.ts | import { GraphicsPath } from '../../path/GraphicsPath';
/**
* Extracts individual subpaths from SVG path data by splitting on Move commands.
* @param pathData - The SVG path data string
* @returns Array of subpath strings
* @internal
*/
export function extractSubpaths(pathData: string): string[]
{
// Split on... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/utils/fillOperations.ts | src/scene/graphics/shared/svg/utils/fillOperations.ts | import type {
FillInstruction,
GraphicsContext,
} from '../../GraphicsContext';
/**
* Determines if subpaths represent nested shapes or multiple holes pattern.
* @param subpathsWithArea - Array of subpaths with their calculated areas
* @returns True if nested pattern, false if multiple holes pattern
* @int... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/utils/parse-svg-path.d.ts | src/scene/graphics/shared/svg/utils/parse-svg-path.d.ts | /** Type definitions for parse-svg-path module This module parses SVG path data strings into an array of commands */
declare module 'parse-svg-path'
{
/**
* Represents a single SVG path command
* First element is the command letter (e.g. 'M' for moveto, 'L' for lineto, etc)
* Remaining elements are ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/graphics/shared/svg/utils/extractSvgUrlId.ts | src/scene/graphics/shared/svg/utils/extractSvgUrlId.ts | /**
* Extracts the ID from an SVG url() reference.
*
* This function handles all valid SVG url() formats including:
* - url(#id)
* - url('#id')
* - url("#id")
* - url( #id )
* - url( '#id' )
* - url( "#id" )
*
* The regex pattern matches:
* - url followed by optional whitespace
* - opening parenthesis foll... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/HTMLText.ts | src/scene/text-html/HTMLText.ts | import { TextureStyle, type TextureStyleOptions } from '../../rendering/renderers/shared/texture/TextureStyle';
import { AbstractText, ensureTextOptions } from '../text/AbstractText';
import { type BatchableHTMLText } from './BatchableHTMLText';
import { HTMLTextStyle } from './HTMLTextStyle';
import { measureHtmlText ... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/BatchableHTMLText.ts | src/scene/text-html/BatchableHTMLText.ts | import { type Texture } from '../../rendering/renderers/shared/texture/Texture';
import { BatchableSprite } from '../sprite/BatchableSprite';
/**
* The BatchableHTMLText class extends the BatchableSprite class and is used to handle HTML text rendering.
* It includes a promise for the texture as generating the HTML t... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/HTMLTextPipe.ts | src/scene/text-html/HTMLTextPipe.ts | import { ExtensionType } from '../../extensions/Extensions';
import { Texture } from '../../rendering/renderers/shared/texture/Texture';
import { GCManagedHash } from '../../utils/data/GCManagedHash';
import { updateTextBounds } from '../text/utils/updateTextBounds';
import { BatchableHTMLText } from './BatchableHTMLTe... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/init.ts | src/scene/text-html/init.ts | import { extensions } from '../../extensions/Extensions';
import { HTMLTextPipe } from './HTMLTextPipe';
import { HTMLTextSystem } from './HTMLTextSystem';
extensions.add(HTMLTextSystem);
extensions.add(HTMLTextPipe);
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/HTMLTextRenderData.ts | src/scene/text-html/HTMLTextRenderData.ts | /* eslint-disable no-restricted-globals */
import { DOMAdapter } from '../../environment/adapter';
import { type ImageLike } from '../../environment/ImageLike';
import type { CanvasAndContext } from '../../rendering/renderers/shared/texture/CanvasPool';
/** @internal */
const nssvg = 'http://www.w3.org/2000/svg';
/**... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/TextHTMLMixins.d.ts | src/scene/text-html/TextHTMLMixins.d.ts | declare global
{
namespace PixiMixins
{
interface RendererSystems
{
htmlText: import('./HTMLTextSystem').HTMLTextSystem;
}
interface RendererPipes
{
htmlText: import('./HTMLTextPipe').HTMLTextPipe;
}
}
}
export {};
| typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/HTMLTextSystem.ts | src/scene/text-html/HTMLTextSystem.ts | import { type ImageLike } from '../../environment/ImageLike';
import { ExtensionType } from '../../extensions/Extensions';
import { type CanvasAndContext, CanvasPool } from '../../rendering/renderers/shared/texture/CanvasPool';
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/text-html/HTMLTextStyle.ts | src/scene/text-html/HTMLTextStyle.ts | /* eslint-disable accessor-pairs */
import { warn } from '../../utils/logging/warn';
import { TextStyle } from '../text/TextStyle';
import { textStyleToCSS } from './utils/textStyleToCSS';
import type { FillInput, StrokeInput } from '../graphics/shared/FillTypes';
import type { TextStyleOptions } from '../text/TextSty... | typescript | MIT | 98ea728fc887ea93a1131a61cac66ab4fc45eebe | 2026-01-04T15:41:01.429164Z | false |
pixijs/pixijs | https://github.com/pixijs/pixijs/blob/98ea728fc887ea93a1131a61cac66ab4fc45eebe/src/scene/text-html/utils/extractFontFamilies.ts | src/scene/text-html/utils/extractFontFamilies.ts | import type { HTMLTextStyle } from '../HTMLTextStyle';
/**
* Extracts font families from text. It will extract font families from the style, tagStyles and any font families
* embedded in the text. It should also strip out duplicates as it goes.
* @param text - The text to extract font families from
* @param style... | 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.