From ea4c3c59d590c9764a39b2939c917c2d63de7da6 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 17 Jul 2019 15:46:45 -0700 Subject: [PATCH] rename Blockly.utils.Paths -> Blockly.utils.svgPath --- core/utils/svg_paths.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/utils/svg_paths.js b/core/utils/svg_paths.js index a3c5919db..3674830b9 100644 --- a/core/utils/svg_paths.js +++ b/core/utils/svg_paths.js @@ -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; };