rename Blockly.utils.Paths -> Blockly.utils.svgPath

This commit is contained in:
Rachel Fenichel
2019-07-17 15:46:45 -07:00
parent 2133f426ee
commit ea4c3c59d5

View File

@@ -26,10 +26,10 @@
'use strict';
/**
* @name Blockly.utils.Paths
* @name Blockly.utils.svgPaths
* @namespace
*/
goog.provide('Blockly.utils.Paths');
goog.provide('Blockly.utils.svgPaths');
/**
@@ -42,7 +42,7 @@ goog.provide('Blockly.utils.Paths');
* @return {string} A string of the format ' x,y '
* @public
*/
Blockly.utils.Paths.point = function(x, y) {
Blockly.utils.svgPaths.point = function(x, y) {
return ' ' + x + ',' + y + ' ';
};
@@ -59,7 +59,7 @@ Blockly.utils.Paths.point = function(x, y) {
* documentation for exact format.
* @public
*/
Blockly.utils.Paths.curve = function(command, points) {
Blockly.utils.svgPaths.curve = function(command, points) {
return ' ' + command + points.join('');
};
@@ -73,7 +73,7 @@ Blockly.utils.Paths.curve = function(command, points) {
* @return {string} A string of the format ' M x,y '
* @public
*/
Blockly.utils.Paths.moveTo = function(x, y) {
Blockly.utils.svgPaths.moveTo = function(x, y) {
return ' M ' + x + ',' + y + ' ';
};
@@ -87,7 +87,7 @@ Blockly.utils.Paths.moveTo = function(x, y) {
* @return {string} A string of the format ' m dx,dy '
* @public
*/
Blockly.utils.Paths.moveBy = function(dx, dy) {
Blockly.utils.svgPaths.moveBy = function(dx, dy) {
return ' m ' + dx + ',' + dy + ' ';
};
@@ -101,7 +101,7 @@ Blockly.utils.Paths.moveBy = function(dx, dy) {
* @return {string} A string of the format ' l dx,dy '
* @public
*/
Blockly.utils.Paths.lineTo = function(dx, dy) {
Blockly.utils.svgPaths.lineTo = function(dx, dy) {
return ' l ' + dx + ',' + dy + ' ';
};
@@ -116,7 +116,7 @@ Blockly.utils.Paths.lineTo = function(dx, dy) {
* @return {string} A string of the format ' l (dx,dy)+ '
* @public
*/
Blockly.utils.Paths.line = function(points) {
Blockly.utils.svgPaths.line = function(points) {
return ' l' + points.join('');
};
@@ -133,7 +133,7 @@ Blockly.utils.Paths.line = function(points) {
* @return {string} A string of the format ' command val '
* @public
*/
Blockly.utils.Paths.lineOnAxis = function(command, val) {
Blockly.utils.svgPaths.lineOnAxis = function(command, val) {
return ' ' + command + ' ' + val + ' ';
};
@@ -151,6 +151,6 @@ Blockly.utils.Paths.lineOnAxis = function(command, val) {
* @return {string} A string of the format 'command radius radius flags point'
* @public
*/
Blockly.utils.Paths.arc = function(command, flags, radius, point) {
Blockly.utils.svgPaths.arc = function(command, flags, radius, point) {
return command + ' ' + radius + ' ' + radius + ' ' + flags + point;
};