mirror of
https://github.com/google/blockly.git
synced 2026-01-14 04:17:10 +01:00
Ran the rename script
This commit is contained in:
@@ -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_) {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user