blockly > Events > BlockMove > oldCoordinate
Events.BlockMove.oldCoordinate property
The old X and Y workspace coordinates of the block if it was a top level block. Undefined if it was not a top level block.
Signature:
oldCoordinate?: Coordinate;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `oldCoordinate` property stores the previous workspace coordinates (X and Y) of a block before it was moved."],["This property is only applicable to top-level blocks and will be undefined for nested blocks."],["It is represented as a `Coordinate` object which contains the X and Y coordinates."]]],[]]