Remove goog.math.Coordinate

This commit is contained in:
Neil Fraser
2019-06-06 14:51:01 -07:00
committed by Neil Fraser
parent f2c57dea1b
commit 5bf7069a2f
31 changed files with 314 additions and 195 deletions

View File

@@ -26,10 +26,9 @@
goog.provide('Blockly.FlyoutButton');
goog.require('Blockly.utils.Coordinate');
goog.require('Blockly.utils');
goog.require('goog.math.Coordinate');
/**
* Class for a button in the flyout.
@@ -62,10 +61,10 @@ Blockly.FlyoutButton = function(workspace, targetWorkspace, xml, isLabel) {
this.text_ = xml.getAttribute('text');
/**
* @type {!goog.math.Coordinate}
* @type {!Blockly.utils.Coordinate}
* @private
*/
this.position_ = new goog.math.Coordinate(0, 0);
this.position_ = new Blockly.utils.Coordinate(0, 0);
/**
* Whether this button should be styled as a label.
@@ -205,7 +204,7 @@ Blockly.FlyoutButton.prototype.moveTo = function(x, y) {
/**
* Location of the button.
* @return {!goog.math.Coordinate} x, y coordinates.
* @return {!Blockly.utils.Coordinate} x, y coordinates.
* @package
*/
Blockly.FlyoutButton.prototype.getPosition = function() {