fix typo
parent
254f86397b
commit
272d58730f
|
@ -48,7 +48,7 @@ export const clearSelectionMethod = function (noCall) {
|
|||
|
||||
svgCanvas.selectorManager.releaseSelector(elem);
|
||||
});
|
||||
svgCanvas.setEmptySelectedElements;
|
||||
svgCanvas.setEmptySelectedElements();
|
||||
|
||||
if (!noCall) {
|
||||
svgCanvas.call("selected", selectedElements);
|
||||
|
|
|
@ -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 = [];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue