fix missing semicolumns
This commit is contained in:
@@ -41,7 +41,7 @@ export const copyElem = function (el, getNextId) {
|
||||
});
|
||||
|
||||
if (el.dataset.gsvg) {
|
||||
newEl.dataset.gsvg = newEl.firstChild
|
||||
newEl.dataset.gsvg = newEl.firstChild;
|
||||
} else if (el.dataset.symbol) {
|
||||
const ref = el.dataset.symbol;
|
||||
newEl.dataset.ref = ref;
|
||||
|
||||
@@ -428,7 +428,7 @@ export class Segment {
|
||||
*/
|
||||
selectCtrls (y) {
|
||||
document.getElementById('ctrlpointgrip_' + this.index + 'c1').setAttribute('fill', y ? '#0FF' : '#EEE');
|
||||
document.getElementById('ctrlpointgrip_' + this.index + 'c2').setAttribute('fill', y ? '#0FF' : '#EEE')
|
||||
document.getElementById('ctrlpointgrip_' + this.index + 'c2').setAttribute('fill', y ? '#0FF' : '#EEE');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -707,7 +707,7 @@ export const recalculateDimensions = function (selected) {
|
||||
y1: selected.getAttribute('y1'),
|
||||
x2: selected.getAttribute('x2'),
|
||||
y2: selected.getAttribute('y2'),
|
||||
}
|
||||
};
|
||||
// Fallthrough
|
||||
case 'polyline':
|
||||
case 'polygon':
|
||||
|
||||
@@ -733,7 +733,7 @@ export const convertToGroup = function (elem) {
|
||||
recalculateDimensions(elem);
|
||||
elementContext_.call('selected', [elem]);
|
||||
} else if (dataStorage.has($elem, 'symbol')) {
|
||||
elem = dataStorage.get($elem, 'symbol')
|
||||
elem = dataStorage.get($elem, 'symbol');
|
||||
|
||||
ts = $elem.attr('transform');
|
||||
const pos = $elem.attr(['x', 'y']);
|
||||
|
||||
@@ -1140,7 +1140,7 @@ export const getVisibleElements = function (parentElement) {
|
||||
}
|
||||
|
||||
const contentElems = [];
|
||||
const childrens = parentElement.children
|
||||
const childrens = parentElement.children;
|
||||
Array.prototype.forEach.call(childrens, function (elem) {
|
||||
if (elem.getBBox) {
|
||||
contentElems.push(elem);
|
||||
|
||||
Reference in New Issue
Block a user