Compare commits

..

4 Commits

Author SHA1 Message Date
Matt Walsh
1bd45bdeeb 5.21.1 2025-05-25 19:39:40 -05:00
Matt Walsh
232061b4d8 revert to ttf font to fix layout problems close #82 2025-05-25 19:39:25 -05:00
Matt Walsh
10d10ffbfb Merge branch 'radar-rendering' 2025-05-25 19:18:32 -05:00
Matt Walsh
25ac2059a6 remove debug timing 2025-05-25 19:11:52 -05:00
8 changed files with 10 additions and 12 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "ws4kp",
"version": "5.21.0",
"version": "5.21.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ws4kp",
"version": "5.21.0",
"version": "5.21.1",
"license": "MIT",
"dependencies": {
"dotenv": "^16.5.0",

View File

@@ -1,6 +1,6 @@
{
"name": "ws4kp",
"version": "5.21.0",
"version": "5.21.1",
"description": "Welcome to the WeatherStar 4000+ project page!",
"main": "index.mjs",
"type": "module",

Binary file not shown.

View File

@@ -12,7 +12,6 @@ const baseMapImages = new Promise((resolve) => {
fetchAsBlob('/images/maps/radar.webp').then((blob) => {
createImageBitmap(blob).then((imageBitmap) => {
// extract the black pixels to overlay on to the final image (boundaries)
console.time('radar-overlay');
const canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);
const context = canvas.getContext('2d');
context.drawImage(imageBitmap, 0, 0);
@@ -28,7 +27,6 @@ const baseMapImages = new Promise((resolve) => {
// write the image data back
context.putImageData(imageData, 0, 0);
console.timeEnd('radar-overlay');
resolve({
fullMap: imageBitmap,
overlay: canvas,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -260,7 +260,7 @@ body {
@font-face {
font-family: 'Star4000 Large';
src: url('../fonts/Star4000 Large.woff') format('woff');
src: url('../fonts/Star4000 Large.ttf') format('truetype');
font-display: swap;
}

View File

@@ -18,10 +18,10 @@
<meta property="og:image" content="https://weatherstar.netbymatt.com/images/social/1200x600.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="627">
<link rel="preload" href="fonts/Star4000.woff" as="font" type="font/woff" crossorigin>
<link rel="preload" href="fonts/Star4000 Extended.woff" as="font" type="font/woff" crossorigin>
<link rel="preload" href="fonts/Star4000 Large.woff" as="font" type="font/woff" crossorigin>
<link rel="preload" href="fonts/Star4000 Small.woff" as="font" type="font/woff" crossorigin>
<link rel="prefetch" href="fonts/Star4000.woff" as="font" type="font/woff" crossorigin>
<link rel="prefetch" href="fonts/Star4000 Extended.woff" as="font" type="font/woff" crossorigin>
<link rel="prefetch" href="fonts/Star4000 Large.ttf" as="font" type="font/ttf" crossorigin>
<link rel="prefetch" href="fonts/Star4000 Small.woff" as="font" type="font/woff" crossorigin>
<% if (production) { %>
<link rel="stylesheet" type="text/css" href="resources/ws.min.css?_=<%=production%>" />