From 7931da2475550f8e9412ea959d2ac0dd11f74bb8 Mon Sep 17 00:00:00 2001 From: Joshua Rodriguez Date: Tue, 14 Jan 2020 07:42:44 -0800 Subject: [PATCH] " -> ' --- BlueMapCore/src/main/webroot/js/libs/Tile.js | 4 ++-- .../src/main/webroot/js/libs/TileManager.js | 2 +- .../src/main/webroot/js/libs/modules/Position.js | 2 +- .../src/main/webroot/js/libs/modules/Settings.js | 2 +- BlueMapCore/src/main/webroot/js/libs/utils.js | 16 ++++++++-------- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/BlueMapCore/src/main/webroot/js/libs/Tile.js b/BlueMapCore/src/main/webroot/js/libs/Tile.js index 5606ebd0..cb3e3f8d 100644 --- a/BlueMapCore/src/main/webroot/js/libs/Tile.js +++ b/BlueMapCore/src/main/webroot/js/libs/Tile.js @@ -41,7 +41,7 @@ export default class Tile { this.model = model; this.scene.add(model); - //console.log("Added tile:", this.x, this.z); + //console.log('Added tile:', this.x, this.z); } } @@ -53,7 +53,7 @@ export default class Tile { this.model.geometry.dispose(); delete this.model; - //console.log("Removed tile:", this.x, this.z); + //console.log('Removed tile:', this.x, this.z); } } } diff --git a/BlueMapCore/src/main/webroot/js/libs/TileManager.js b/BlueMapCore/src/main/webroot/js/libs/TileManager.js index 944249fc..6640a3a9 100644 --- a/BlueMapCore/src/main/webroot/js/libs/TileManager.js +++ b/BlueMapCore/src/main/webroot/js/libs/TileManager.js @@ -59,7 +59,7 @@ export default class TileManager { update() { if (this.closed) return; - //free a loader so if there was an error loading a tile we don"t get stuck forever with the blocked loading process + // free a loader so if there was an error loading a tile we don't get stuck forever with the blocked loading process this.currentlyLoading--; if (this.currentlyLoading < 0) this.currentlyLoading = 0; diff --git a/BlueMapCore/src/main/webroot/js/libs/modules/Position.js b/BlueMapCore/src/main/webroot/js/libs/modules/Position.js index 1e951e1b..c3202928 100644 --- a/BlueMapCore/src/main/webroot/js/libs/modules/Position.js +++ b/BlueMapCore/src/main/webroot/js/libs/modules/Position.js @@ -41,7 +41,7 @@ export default class Position { onBlueMapUpdateFrame = () => { this.elementX.html(Math.floor(this.blueMap.controls.targetPosition.x)); - //this.elementY.html(this.blueMap.controls.targetPosition.y === 0 ? "-" : Math.floor(this.blueMap.controls.targetPosition.y)); + //this.elementY.html(this.blueMap.controls.targetPosition.y === 0 ? '-' : Math.floor(this.blueMap.controls.targetPosition.y)); this.elementZ.html(Math.floor(this.blueMap.controls.targetPosition.z)); } } diff --git a/BlueMapCore/src/main/webroot/js/libs/modules/Settings.js b/BlueMapCore/src/main/webroot/js/libs/modules/Settings.js index 0c71b6e6..1d76db08 100644 --- a/BlueMapCore/src/main/webroot/js/libs/modules/Settings.js +++ b/BlueMapCore/src/main/webroot/js/libs/modules/Settings.js @@ -84,7 +84,7 @@ export default class Settings { onQualityClick = (event) => { const target = event.target const desc = $(target).html(); - this.blueMap.quality = parseFloat($(target).attr("quality")); + this.blueMap.quality = parseFloat($(target).attr('quality')); this.elementQuality.find('li').show(); this.elementQuality.find(`li[quality="${this.blueMap.quality}"]`).hide(); diff --git a/BlueMapCore/src/main/webroot/js/libs/utils.js b/BlueMapCore/src/main/webroot/js/libs/utils.js index 97b71631..8e72f232 100644 --- a/BlueMapCore/src/main/webroot/js/libs/utils.js +++ b/BlueMapCore/src/main/webroot/js/libs/utils.js @@ -5,7 +5,7 @@ * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal + * of this software and associated documentation files (the 'Software'), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is @@ -14,7 +14,7 @@ * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER @@ -26,16 +26,16 @@ import { Vector2, Vector3 } from 'three'; export const stringToImage = string => { - let image = document.createElementNS("http://www.w3.org/1999/xhtml", "img"); + let image = document.createElementNS('http://www.w3.org/1999/xhtml', 'img'); image.src = string; return image; }; export const pathFromCoords = (x, z) => { - let path = "x"; + let path = 'x'; path += splitNumberToPath(x); - path += "z"; + path += 'z'; path += splitNumberToPath(z); path = path.substring(0, path.length - 1); @@ -44,17 +44,17 @@ export const pathFromCoords = (x, z) => { }; export const splitNumberToPath = num => { - let path = ""; + let path = ''; if (num < 0) { num = -num; - path += "-"; + path += '-'; } let s = num.toString(); for (let i = 0; i < s.length; i++) { - path += s.charAt(i) + "/"; + path += s.charAt(i) + '/'; } return path;