From 0dc5f81959110cb13a29e49d0681a12fbd08a654 Mon Sep 17 00:00:00 2001 From: NeiroNx Date: Tue, 4 Dec 2018 09:14:59 +0400 Subject: [PATCH] Fix grid bug in dist --- dist/extensions/ext-grid.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/extensions/ext-grid.js b/dist/extensions/ext-grid.js index 35d3568c..35d10720 100644 --- a/dist/extensions/ext-grid.js +++ b/dist/extensions/ext-grid.js @@ -51,7 +51,7 @@ var svgEditorExtension_grid = (function () { var _init = _asyncToGenerator( /*#__PURE__*/ regeneratorRuntime.mark(function _callee(_ref) { - var $, NS, getTypeMap, importLocale, strings, svgEditor, svgCanvas, svgdoc, assignAttributes, hcanvas, canvBG, units, intervals, showGrid, canvasGrid, gridPattern, gridimg, gridBox, updateGrid, gridUpdate, buttons; + var $, NS, getTypeMap, importLocale, strings, svgEditor, svgCanvas, svgdoc, assignAttributes, hcanvas, canvBG, units, intervals, showGrid, canvasGrid, gridDefs, gridPattern, gridimg, gridBox, updateGrid, gridUpdate, buttons; return regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { @@ -141,7 +141,7 @@ var svgEditorExtension_grid = (function () { display: 'none' }); canvBG.append(canvasGrid); // grid-pattern - + gridDefs = svgdoc.createElementNS(NS.SVG, 'defs'); gridPattern = svgdoc.createElementNS(NS.SVG, 'pattern'); assignAttributes(gridPattern, { id: 'gridpattern', @@ -161,7 +161,8 @@ var svgEditorExtension_grid = (function () { height: 100 }); gridPattern.append(gridimg); - $('#svgroot defs').append(gridPattern); // grid-box + gridDefs.append(gridPattern); + $('#canvasGrid').append(gridDefs); // grid-box gridBox = svgdoc.createElementNS(NS.SVG, 'rect'); assignAttributes(gridBox, {