Advanced
Returns the global (compound) alpha of the container within the scene.
Performance optimization flag:
The resulting alpha value (between 0 and 1)
Returns the global (compound) tint color of the container within the scene.
Optional
skipUpdate: booleanPerformance optimization flag:
The resulting tint color as a 24-bit RGB number (0xRRGGBB)
Returns the global transform matrix of the container within the scene.
Optional matrix to store the result. If not provided, a new Matrix will be created.
Performance optimization flag:
The resulting transformation matrix (either the input matrix or a new one)
// Accurate but slower - recalculates entire transform chain
const preciseTransform = container.getGlobalTransform();
// Faster but may be outdated - uses cached transform
const cachedTransform = container.getGlobalTransform(undefined, true);
// Reuse existing matrix
const existingMatrix = new Matrix();
container.getGlobalTransform(existingMatrix);
Interface for a mixin that provides methods to retrieve global properties of a container. This mixin allows you to get the global alpha, transform matrix, and tint color of a container, taking into account its parent containers and render groups. It includes methods to optimize performance by using cached values when available.