Set values for PIXI.Point and ObservablePoint types
masterWhen setting properties that expect a PIXI.Point or PIXI.ObservablePoint, you can use shorthand notation instead of creating full objects:
- Array of integers:
[x, y] - Comma-separated string:
"x,y" - Single integer (applies to both x and y):
[i]or"i"
You can also pass a direct PIXI.Point object; the library will use the object's .copy() method to apply the values.
// Examples of shorthand for Point properties
<Container position={[10, 20]} />
<Container position="10,20" />
<Container position={[5]} />