Is it possible to include pivot data into JSON-Array for Phaser texture atlas?

Each frame of texture atlas in JSON format has data like this:

“image_code”:
{
“frame”: {“x”:0,“y”:81,“w”:45,“h”:38},
“rotated”: false,
“trimmed”: true,
“spriteSourceSize”: {“x”:0,“y”:3,“w”:45,“h”:41}
}

Is there a way to add there information about the pivot points of the images? For example, the Starling format has it:

SubTexture name=“image_code” x=“2” y=“807” width=“308” height=“296” pivotX=“202.95” pivotY=“385.05” frameX=“-51” frameY=“-90” frameWidth=“387” frameHeight=“388”/

Simply adding like

“image_code”:
{
“frame”: {“x”:0,“y”:81,“w”:45,“h”:38},
“rotated”: false,
“trimmed”: true,
“spriteSourceSize”: {“x”:0,“y”:3,“w”:45,“h”:41},
“pivotX”:0,
“pivotY”:0
}

has no effect to the sprite creation

Use pivot: { x: 0, y: 0 }.

1 Like

Thank you so much! It worked!