Run the renaming script

This commit is contained in:
Abby
2019-07-22 10:45:05 -07:00
parent d20549d92d
commit be43df9e8c
3 changed files with 13 additions and 13 deletions

View File

@@ -190,7 +190,7 @@ Blockly.ASTNode.createStackNode = function(topBlock) {
/**
* Creates an ast node pointing to a workpsace.
* @param {Blockly.Workspace} workspace The workspace that we are on.
* @param {goog.math.Coordinate} wsCoordinate The position on the workspace for
* @param {Blockly.utils.Coordinate} wsCoordinate The position on the workspace for
* this node.
* @return {Blockly.ASTNode} An ast node pointing to a workspace and a position
* on the workspace.
@@ -241,7 +241,7 @@ Blockly.ASTNode.prototype.getType = function() {
/**
* The coordinate on the workspace.
* @return {goog.math.Coordinate} The workspace coordinate or null if the
* @return {Blockly.utils.Coordinate} The workspace coordinate or null if the
* location is not a workspace.
*/
Blockly.ASTNode.prototype.getWsCoordinate = function() {
@@ -540,7 +540,7 @@ Blockly.ASTNode.prototype.next = function() {
//TODO: Need to limit this. The view is bounded to half a screen beyond
//the furthest block.
var newX = this.wsCoordinate_.x + Blockly.ASTNode.wsMove_;
var newWsCoordinate = new goog.math.Coordinate(newX, this.wsCoordinate_.y);
var newWsCoordinate = new Blockly.utils.Coordinate(newX, this.wsCoordinate_.y);
var workspace = /** @type {Blockly.Workspace} */ (this.location_);
return Blockly.ASTNode.createWorkspaceNode(workspace,
newWsCoordinate);
@@ -621,7 +621,7 @@ Blockly.ASTNode.prototype.prev = function() {
switch (this.type_) {
case Blockly.ASTNode.types.WORKSPACE:
var newX = this.wsCoordinate_.x - Blockly.ASTNode.wsMove_;
var newCoord = new goog.math.Coordinate(newX, this.wsCoordinate_.y);
var newCoord = new Blockly.utils.Coordinate(newX, this.wsCoordinate_.y);
var ws = /** @type {Blockly.Workspace} */ (this.location_);
return Blockly.ASTNode.createWorkspaceNode(ws, newCoord);
@@ -671,7 +671,7 @@ Blockly.ASTNode.prototype.out = function() {
case Blockly.ASTNode.types.STACK:
var blockPos = this.location_.getRelativeToSurfaceXY();
//TODO: Make sure this is in the bounds of the workspace
var wsCoordinate = new goog.math.Coordinate(
var wsCoordinate = new Blockly.utils.Coordinate(
blockPos.x, blockPos.y + Blockly.ASTNode.DEFAULT_OFFSET_Y);
return Blockly.ASTNode.createWorkspaceNode(
this.location_.workspace, wsCoordinate);

View File

@@ -116,7 +116,7 @@ Blockly.CursorSvg.prototype.getSvgRoot = function() {
*/
Blockly.CursorSvg.prototype.createDom = function() {
this.svgGroup_ =
Blockly.utils.createSvgElement('g', {
Blockly.utils.dom.createSvgElement('g', {
'class': 'blocklyCursor'
}, null);
@@ -380,13 +380,13 @@ Blockly.CursorSvg.prototype.createCursorSvg_ = function() {
var colour = this.isMarker_ ? Blockly.CursorSvg.MARKER_COLOR :
Blockly.CursorSvg.CURSOR_COLOR;
this.cursorSvg_ = Blockly.utils.createSvgElement('g',
this.cursorSvg_ = Blockly.utils.dom.createSvgElement('g',
{
'width': Blockly.CursorSvg.CURSOR_WIDTH,
'height': Blockly.CursorSvg.CURSOR_HEIGHT
}, this.svgGroup_);
this.cursorSvgLine_ = Blockly.utils.createSvgElement('rect',
this.cursorSvgLine_ = Blockly.utils.dom.createSvgElement('rect',
{
'x': '0',
'y': '0',
@@ -397,7 +397,7 @@ Blockly.CursorSvg.prototype.createCursorSvg_ = function() {
},
this.cursorSvg_);
this.cursorSvgRect_ = Blockly.utils.createSvgElement('rect',
this.cursorSvgRect_ = Blockly.utils.dom.createSvgElement('rect',
{
'class': 'blocklyVerticalCursor',
'x': '0',
@@ -408,7 +408,7 @@ Blockly.CursorSvg.prototype.createCursorSvg_ = function() {
},
this.cursorSvg_);
this.cursorInputOutput_ = Blockly.utils.createSvgElement(
this.cursorInputOutput_ = Blockly.utils.dom.createSvgElement(
'path',
{
'width': Blockly.CursorSvg.CURSOR_WIDTH,
@@ -422,7 +422,7 @@ Blockly.CursorSvg.prototype.createCursorSvg_ = function() {
// Markers don't blink.
if (!this.isMarker_) {
Blockly.utils.createSvgElement('animate',
Blockly.utils.dom.createSvgElement('animate',
{
'attributeType': 'XML',
'attributeName': 'fill',
@@ -432,7 +432,7 @@ Blockly.CursorSvg.prototype.createCursorSvg_ = function() {
},
this.cursorSvgLine_);
Blockly.utils.createSvgElement('animate',
Blockly.utils.dom.createSvgElement('animate',
{
'attributeType': 'XML',
'attributeName': 'fill',

View File

@@ -611,7 +611,7 @@ Blockly.Navigation.focusWorkspace = function() {
} else {
var ws = cursor.workspace_;
// TODO: Find the center of the visible workspace.
var wsCoord = new goog.math.Coordinate(100, 100);
var wsCoord = new Blockly.utils.Coordinate(100, 100);
var wsNode = Blockly.ASTNode.createWorkspaceNode(ws, wsCoord);
cursor.setLocation(wsNode);
}