add more linter warnings
This commit is contained in:
@@ -173,7 +173,7 @@ class LayersPanel {
|
||||
"change",
|
||||
this.lmenuFunc.bind(this)
|
||||
);
|
||||
$id("se-cmenu-layers-list").addEventListener("change", e => {
|
||||
$id("se-cmenu-layers-list").addEventListener("change", (e) => {
|
||||
this.lmenuFunc(e);
|
||||
});
|
||||
$id("sidepanel_handle").addEventListener(
|
||||
@@ -183,7 +183,7 @@ class LayersPanel {
|
||||
if (this.editor.configObj.curConfig.showlayers) {
|
||||
this.toggleSidePanel();
|
||||
}
|
||||
$id("sidepanel_handle").addEventListener("mousedown", evt => {
|
||||
$id("sidepanel_handle").addEventListener("mousedown", (evt) => {
|
||||
this.sidedrag = evt.pageX;
|
||||
window.addEventListener("mousemove", this.resizeSidePanel.bind(this));
|
||||
this.allowmove = false;
|
||||
@@ -192,14 +192,14 @@ class LayersPanel {
|
||||
this.allowmove = true;
|
||||
}, 20);
|
||||
});
|
||||
$id("sidepanel_handle").addEventListener("mouseup", _evt => {
|
||||
$id("sidepanel_handle").addEventListener("mouseup", (_evt) => {
|
||||
if (!this.sidedragging) {
|
||||
this.toggleSidePanel();
|
||||
}
|
||||
this.sidedrag = -1;
|
||||
this.sidedragging = false;
|
||||
});
|
||||
window.addEventListener("mouseup", _evt => {
|
||||
window.addEventListener("mouseup", (_evt) => {
|
||||
this.sidedrag = -1;
|
||||
this.sidedragging = false;
|
||||
$id("svg_editor").removeEventListener(
|
||||
@@ -353,7 +353,7 @@ class LayersPanel {
|
||||
}
|
||||
|
||||
if (layerNameToHighlight) {
|
||||
curNames.forEach(curName => {
|
||||
curNames.forEach((curName) => {
|
||||
if (curName !== layerNameToHighlight) {
|
||||
this.editor.svgCanvas
|
||||
.getCurrentDrawing()
|
||||
@@ -361,7 +361,7 @@ class LayersPanel {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
curNames.forEach(curName => {
|
||||
curNames.forEach((curName) => {
|
||||
this.editor.svgCanvas.getCurrentDrawing().setLayerOpacity(curName, 1.0);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user