blockly > Events > CommentMove > setOldCoordinate
Events.CommentMove.setOldCoordinate() method
Override the location before the move. Use this if you don't create the event until the end of the move, but you know the original location.
Signature:
setOldCoordinate(xy: Coordinate): void;
Parameters
Parameter | Type | Description |
---|---|---|
xy | Coordinate | The location before the move, in workspace coordinates. |
Returns:
void