master
JFH 2021-11-12 17:57:43 +01:00
parent 254f86397b
commit 272d58730f
2 changed files with 4 additions and 6 deletions

View File

@ -48,7 +48,7 @@ export const clearSelectionMethod = function (noCall) {
svgCanvas.selectorManager.releaseSelector(elem);
});
svgCanvas.setEmptySelectedElements;
svgCanvas.setEmptySelectedElements();
if (!noCall) {
svgCanvas.call("selected", selectedElements);

View File

@ -401,14 +401,12 @@ class SvgCanvas {
* @name module:svgcanvas.SvgCanvas#getSelectedElements
* @type {module:utilities.EditorContext#getSelectedElements|module:draw.DrawCanvasInit#getSelectedElements|module:path.EditorContext#getSelectedElements}
*/
const getSelectedElements = this.getSelectedElems = function () {
return selectedElements;
};
const getSelectedElements = this.getSelectedElems = () => ( selectedElements );
this.setSelectedElements = function (key, value) {
this.setSelectedElements = (key, value) => {
selectedElements[key] = value;
};
this.setEmptySelectedElements = function () {
this.setEmptySelectedElements = () => {
selectedElements = [];
};