From 2aa1bed83f14771622dee2c4dec7dc49c0d16d7a Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Fri, 28 Jun 2019 16:36:59 -0700 Subject: [PATCH] Add some spaces --- core/utils/svg_paths.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/utils/svg_paths.js b/core/utils/svg_paths.js index ea6a9e112..589ac5aaa 100644 --- a/core/utils/svg_paths.js +++ b/core/utils/svg_paths.js @@ -45,6 +45,7 @@ goog.provide('Blockly.utils.Paths'); Blockly.utils.Paths.point = function(x, y) { return ' ' + x + ',' + y + ' '; }; + /** * Draw a curbic or quadratic curve. See * developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#Cubic_B%C3%A9zier_Curve @@ -59,8 +60,9 @@ Blockly.utils.Paths.point = function(x, y) { * @public */ Blockly.utils.Paths.curve = function(command, points) { - return command + points.join(''); + return ' ' + command + points.join(''); }; + /** * Move the cursor to the given position without drawing a line. * The coordinates are absolute. @@ -74,6 +76,7 @@ Blockly.utils.Paths.curve = function(command, points) { Blockly.utils.Paths.moveTo = function(x, y) { return ' M ' + x + ',' + y + ' '; }; + /** * Move the cursor to the given position without drawing a line. * Coordinates are relative. @@ -114,7 +117,7 @@ Blockly.utils.Paths.lineTo = function(dx, dy) { * @public */ Blockly.utils.Paths.line = function(points) { - return 'l' + points.join(''); + return ' l' + points.join(''); }; /** @@ -131,7 +134,7 @@ Blockly.utils.Paths.line = function(points) { * @public */ Blockly.utils.Paths.lineOnAxis = function(command, val) { - return command + ' ' + val; + return ' ' + command + ' ' + val + ' '; }; /**