eslint rule for declarations

This commit is contained in:
JFH
2021-05-28 17:03:29 +02:00
parent 01b022b1e7
commit 99ee706c18
56 changed files with 488 additions and 486 deletions

View File

@@ -350,8 +350,8 @@ class LayersPanel {
*/
toggleHighlightLayer(layerNameToHighlight) {
let i;
const curNames = [],
numLayers = this.editor.svgCanvas.getCurrentDrawing().getNumLayers();
const curNames = [];
const numLayers = this.editor.svgCanvas.getCurrentDrawing().getNumLayers();
for (i = 0; i < numLayers; i++) {
curNames[i] = this.editor.svgCanvas.getCurrentDrawing().getLayerName(i);
}

View File

@@ -65,7 +65,7 @@ class TopPanel {
* @returns {void}
*/
update() {
let i, len;
let i; let len;
if (!isNullish(this.selectedElement)) {
switch (this.selectedElement.tagName) {
case "use":
@@ -208,7 +208,7 @@ class TopPanel {
if ([ "line", "circle", "ellipse" ].includes(elname)) {
$id("xy_panel").style.display = 'none';
} else {
let x, y;
let x; let y;
// Get BBox vals for g, polyline and path
if ([ "g", "polyline", "path" ].includes(elname)) {