image folder variable used consistently

This commit is contained in:
JFH
2021-08-11 10:16:00 +02:00
parent 4557d338c1
commit 86c0e9cf03
26 changed files with 136 additions and 501 deletions

View File

@@ -365,7 +365,7 @@ export class SelectorManager {
r: gripRadius,
stroke: '#22C',
'stroke-width': 2,
style: 'cursor:url(' + config_.imgPath + 'rotate.svg) 12 12, auto;'
style: `cursor:url(${config_.imgPath}/rotate.svg) 12 12, auto;`
}
});
this.selectorGripsGroup.append(this.rotateGrip);

View File

@@ -804,7 +804,7 @@ class SvgCanvas {
const removedElements = {};
// String with image URL of last loadable image
let lastGoodImgUrl = curConfig.imgPath + 'logo.svg';
let lastGoodImgUrl = `${curConfig.imgPath}/logo.svg`;
// Boolean indicating whether or not a draw action has been started
let started = false;
// String with an element's initial transform attribute value