diff --git a/core/block_svg.js b/core/block_svg.js index 8b1429bd4..52c3f1a75 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -392,7 +392,7 @@ Blockly.BlockSvg.prototype.moveToDragSurface_ = function() { /** * Move a block to a position. - * @param {goog.math.Coordinate} xy The position to move to in workspace units. + * @param {Blockly.utils.Coordinate} xy The position to move to in workspace units. */ Blockly.BlockSvg.prototype.moveTo = function(xy) { if (this.parentBlock_) { diff --git a/core/field.js b/core/field.js index 42cb66646..7d45ca4a4 100644 --- a/core/field.js +++ b/core/field.js @@ -919,7 +919,7 @@ Blockly.Field.prototype.getClickTarget_ = function() { /** * Return the absolute coordinates of the top-left corner of this field. * The origin (0,0) is the top-left corner of the page body. - * @return {!goog.math.Coordinate} Object with .x and .y properties. + * @return {!Blockly.utils.Coordinate} Object with .x and .y properties. * @private */ Blockly.Field.prototype.getAbsoluteXY_ = function() { diff --git a/core/rendered_connection.js b/core/rendered_connection.js index 610881f9d..1a4ae30fa 100644 --- a/core/rendered_connection.js +++ b/core/rendered_connection.js @@ -164,7 +164,7 @@ Blockly.RenderedConnection.prototype.setOffsetInBlock = function(x, y) { /** * Get the offset of this connection relative to the top left of its block. - * @return {!goog.math.Coordinate} The offset of the connection. + * @return {!Blockly.utils.Coordinate} The offset of the connection. * @package */ Blockly.RenderedConnection.prototype.getOffsetInBlock = function() { diff --git a/core/utils.js b/core/utils.js index fe29242c5..1fba62ef7 100644 --- a/core/utils.js +++ b/core/utils.js @@ -589,7 +589,7 @@ Blockly.utils.getBlockTypeCounts = function(block, opt_stripFollowing) { /** * Converts screen coordinates to workspace coordinates. * @param {Blockly.Workspace_Svg} ws The workspace to find the coordinates on. - * @param {goog.math.Coordinate} screenCoordinates The screen coordinates to be + * @param {Blockly.utils.Coordinate} screenCoordinates The screen coordinates to be * converted to workspace coordintaes * @return {goog.math.Coorindate} The workspace coordinates. * @package @@ -605,7 +605,7 @@ Blockly.utils.screenToWsCoordinates = function(ws, screenCoordinates) { var boundingRect = injectionDiv.getBoundingClientRect(); // The client coordinates offset by the injection div's upper left corner. - var clientOffsetPixels = new goog.math.Coordinate( + var clientOffsetPixels = new Blockly.utils.Coordinate( screenX - boundingRect.left, screenY - boundingRect.top); // The offset in pixels between the main workspace's origin and the upper @@ -614,7 +614,7 @@ Blockly.utils.screenToWsCoordinates = function(ws, screenCoordinates) { // The position of the new comment in pixels relative to the origin of the // main workspace. - var finalOffsetPixels = goog.math.Coordinate.difference(clientOffsetPixels, + var finalOffsetPixels = Blockly.utils.Coordinate.difference(clientOffsetPixels, mainOffsetPixels); // The position in main workspace coordinates.