mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 00:59:29 -07:00
full screen works better
This commit is contained in:
@@ -90,7 +90,8 @@ const navigation = (() => {
|
||||
// update the main process for display purposes
|
||||
postMessage('weatherParameters', weatherParameters);
|
||||
|
||||
// draw the progress canvas
|
||||
// draw the progress canvas and hide others
|
||||
hideAllCanvases();
|
||||
progress = new Progress(-1,'progress');
|
||||
await progress.drawCanvas();
|
||||
progress.showCanvas();
|
||||
|
||||
@@ -96,7 +96,7 @@ class RegionalForecast extends WeatherDisplay {
|
||||
};
|
||||
|
||||
// preload the icon
|
||||
utils.image.preload(icons.getWeatherRegionalIconFromIconLink(regionalObservation.icon, !regionalObservation.daytime))
|
||||
utils.image.preload(icons.getWeatherRegionalIconFromIconLink(regionalObservation.icon, !regionalObservation.daytime));
|
||||
|
||||
// return a pared-down forecast
|
||||
// 0th object is the current conditions
|
||||
@@ -333,7 +333,7 @@ class RegionalForecast extends WeatherDisplay {
|
||||
|
||||
// to fit on the map, remove anything after punctuation and then limit to 15 characters
|
||||
formatCity(city) {
|
||||
return city.match(/[^-;/\\,]*/)[0].substr(0,12)
|
||||
return city.match(/[^-;/\\,]*/)[0].substr(0,12);
|
||||
}
|
||||
|
||||
async drawCanvas() {
|
||||
|
||||
Reference in New Issue
Block a user