Fix grid bug in dist
parent
9fa5955b9c
commit
0dc5f81959
|
@ -51,7 +51,7 @@ var svgEditorExtension_grid = (function () {
|
||||||
var _init = _asyncToGenerator(
|
var _init = _asyncToGenerator(
|
||||||
/*#__PURE__*/
|
/*#__PURE__*/
|
||||||
regeneratorRuntime.mark(function _callee(_ref) {
|
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) {
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (_context.prev = _context.next) {
|
switch (_context.prev = _context.next) {
|
||||||
|
@ -141,7 +141,7 @@ var svgEditorExtension_grid = (function () {
|
||||||
display: 'none'
|
display: 'none'
|
||||||
});
|
});
|
||||||
canvBG.append(canvasGrid); // grid-pattern
|
canvBG.append(canvasGrid); // grid-pattern
|
||||||
|
gridDefs = svgdoc.createElementNS(NS.SVG, 'defs');
|
||||||
gridPattern = svgdoc.createElementNS(NS.SVG, 'pattern');
|
gridPattern = svgdoc.createElementNS(NS.SVG, 'pattern');
|
||||||
assignAttributes(gridPattern, {
|
assignAttributes(gridPattern, {
|
||||||
id: 'gridpattern',
|
id: 'gridpattern',
|
||||||
|
@ -161,7 +161,8 @@ var svgEditorExtension_grid = (function () {
|
||||||
height: 100
|
height: 100
|
||||||
});
|
});
|
||||||
gridPattern.append(gridimg);
|
gridPattern.append(gridimg);
|
||||||
$('#svgroot defs').append(gridPattern); // grid-box
|
gridDefs.append(gridPattern);
|
||||||
|
$('#canvasGrid').append(gridDefs); // grid-box
|
||||||
|
|
||||||
gridBox = svgdoc.createElementNS(NS.SVG, 'rect');
|
gridBox = svgdoc.createElementNS(NS.SVG, 'rect');
|
||||||
assignAttributes(gridBox, {
|
assignAttributes(gridBox, {
|
||||||
|
|
Loading…
Reference in New Issue