phaser3-rex-plugins
Version:
12 lines (11 loc) • 418 B
TypeScript
/**
* Expand wrapped text behavior with a minimum width constraint.
*
* @param textObject - The text-like game object to configure.
* @param minWidth - The minimum target width for wrapped layout.
* @returns The same game object after applying wrap expansion behavior.
*/
export default function (
textObject: Phaser.GameObjects.GameObject,
minWidth?: number
): Phaser.GameObjects.GameObject;