fix missing semicolumns

This commit is contained in:
JFH
2021-05-13 00:46:46 +02:00
parent dc5d9b05a6
commit 9a5292b467
27 changed files with 61 additions and 60 deletions

View File

@@ -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;

View File

@@ -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');
}
/**

View File

@@ -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':

View File

@@ -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']);

View File

@@ -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);