diff --git a/.gitignore b/.gitignore index 1104b06f..eb169d8d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -run_php_server.bat +.bat .vscode \ No newline at end of file diff --git a/LICENSE b/LICENSE index 24402ab6..45f950ac 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright 2018-2020 Max Ganiev (Azgaar), azgaar.fmg@yandex.by +Copyright 2017-2021 Max Haniyeu (Azgaar), azgaar.fmg@yandex.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/modules/fonts.js b/modules/fonts.js index 44950808..fedcbd85 100644 --- a/modules/fonts.js +++ b/modules/fonts.js @@ -33,7 +33,7 @@ async function addFonts(url) { function loadUsedFonts() { const fontsInUse = getFontsList(svg); const fontsToLoad = fontsInUse.filter(font => !fonts.includes(font)); - if (fontsToLoad) { + if (fontsToLoad?.length) { const url = "https://fonts.googleapis.com/css?family=" + fontsToLoad.join("|"); addFonts(url); } diff --git a/modules/load.js b/modules/load.js index 15a46fa9..96a2845d 100644 --- a/modules/load.js +++ b/modules/load.js @@ -727,6 +727,10 @@ function parseLoadedData(data) { river.cells = Array.from(riverCells); } + + pack.cells.i.forEach(i => { + if (pack.cells.r[i] && pack.cells.h[i] < 20) pack.cells.r[i] = 0; + }); } } })();