in progress
parent
3410ece268
commit
4586feaa5e
|
@ -571,6 +571,7 @@ export const mouseUpEvent = (evt) => {
|
||||||
const x = mouseX / zoom
|
const x = mouseX / zoom
|
||||||
const y = mouseY / zoom
|
const y = mouseY / zoom
|
||||||
|
|
||||||
|
console.log(svgCanvas.getId())
|
||||||
let element = getElement(svgCanvas.getId())
|
let element = getElement(svgCanvas.getId())
|
||||||
let keep = false
|
let keep = false
|
||||||
|
|
||||||
|
|
|
@ -112,12 +112,9 @@ export const recalculateDimensions = (selected) => {
|
||||||
} // switch on element type to get initial values
|
} // switch on element type to get initial values
|
||||||
|
|
||||||
if (attrs.length) {
|
if (attrs.length) {
|
||||||
Array.prototype.forEach.call(attrs, (attr) => {
|
attrs.forEach((attr) => {
|
||||||
changes[attr] = selected.getAttribute(attr)
|
changes[attr] = convertToNum(attr, selected.getAttribute(attr))
|
||||||
})
|
})
|
||||||
for (const [attr, val] of Object.entries(changes)) {
|
|
||||||
changes[attr] = convertToNum(attr, val)
|
|
||||||
}
|
|
||||||
} else if (gsvg) {
|
} else if (gsvg) {
|
||||||
// GSVG exception
|
// GSVG exception
|
||||||
changes = {
|
changes = {
|
||||||
|
@ -168,7 +165,9 @@ export const recalculateDimensions = (selected) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const N = tlist.numberOfItems
|
const N = tlist.numberOfItems
|
||||||
|
console.log(N)
|
||||||
let tx = 0; let ty = 0; let operation = 0
|
let tx = 0; let ty = 0; let operation = 0
|
||||||
|
|
||||||
let firstM
|
let firstM
|
||||||
|
|
Loading…
Reference in New Issue