LogoPixi’VN
pixi-jsInterfaces

Interface: DefaultBatchElements

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/DefaultBatcher.d.ts:14

Represents the common elements for default batch rendering. This interface defines the properties that are used by the DefaultBatcher to render elements efficiently in a batch.

Advanced

Extended by

Properties

color

> color: number

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/DefaultBatcher.d.ts:19

The color of the element that will be multiplied with the texture color. This is typically represented as a 32-bit integer in RGBA format.


roundPixels

> roundPixels: 0 | 1

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/DefaultBatcher.d.ts:26

Determines whether the element should be rounded to the nearest pixel.

  • 0: No rounding (default)
  • 1: Round to nearest pixel This can help with visual consistency, especially for pixel art styles.

transform

> transform: Matrix

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/DefaultBatcher.d.ts:31

The transform matrix of the element. This matrix represents the position, scale, rotation, and skew of the element.