blockly > RenderedConnection > moveBy
RenderedConnection.moveBy() method
Change the connection's coordinates.
Signature:
moveBy(dx: number, dy: number): boolean;
Parameters
Parameter |
Type |
Description |
dx |
number |
Change to x coordinate, in workspace units. |
dy |
number |
Change to y coordinate, in workspace units. |
Returns:
boolean
True if the position of the connection in the connection db was updated.
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."],[[["This page provides access to documentation for the `Reference` class within the `google.cloud.osconfig_v1alpha.types` module."],["The `Reference` class is used to represent a reference for a vulnerability, including a URL pointing to more information."],["Documentation is available for various versions of the OS Config library, ranging from 0.1.2 to the latest 1.17.5."],["Users can select their desired version to access the corresponding documentation."]]],["The `moveBy` method of the `RenderedConnection` class alters a connection's coordinates. It accepts two numerical parameters, `dx` and `dy`, representing the change in the x and y coordinates, respectively, in workspace units. This method then updates the connection's position accordingly. The method returns a boolean value, which indicates if the connection's position was updated.\n"]]