Merge branch 'develop' of https://bitbucket.org/wisemapping/wisemapping-frontend into feature/import-freemind-to-wisemapping

This commit is contained in:
Ezequiel-Vega 2022-03-22 12:34:48 -03:00
commit 10ede976a8
3 changed files with 6 additions and 14 deletions

View File

@ -9,18 +9,6 @@ html {
font-size: initial;
}
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
overflow: hidden;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
div#mindplot {
position: relative;
top: 50px;

View File

@ -73,7 +73,7 @@ class ImageIcon extends Icon {
static _getNextFamilyIconId(iconId) {
const familyIcons = ImageIcon._getFamilyIcons(iconId);
$assert(familyIcons != null, 'Family Icon not found!');
$assert(familyIcons != null, `Family Icon not found: ${iconId}`);
let result = null;
for (let i = 0; i < familyIcons.length && result == null; i++) {

View File

@ -35,7 +35,11 @@ class EditorOptionsBuilder {
}
static loadMapId(): number {
return !AppConfig.isDevelopEnv() ? global.mapId : 11;
const result = !AppConfig.isDevelopEnv() ? global.mapId : 11;
if (result === undefined) {
throw Error(`Could not resolve mapId. Map Id: global.mapId: ${result} , global.mapTitle: ${global.mapTitle}, global.lockSession: ${global.lockSession}`);
}
return result;
}
}
export default EditorOptionsBuilder;