Skip to content

Commit

Permalink
V36
Browse files Browse the repository at this point in the history
✨New Features
*Squad Map Markers:* Right-click on the map to place markers, helping you strategize for future games. (Fix #262)
*Auto-Copy Targets:* Automatically copy the calculations of the most recently placed or moved target to the clipboard for easy sharing.
*Auto-Copy Next Flags:* Copy the next flag's name when clicking a flag in RAAS/Invasion layers for quick sharing.
*Low & High Angles:* Show both angle solutions on markers for supported weapons. (Thanks, Matador! Fix #258)
*Flags Distance:* New setting to toggle the distance display between flags in AAS/RAAS/Invasion. Fix #261)

🚀 Improvements
HD maps (8k × 8k) are now tiled for better performance. (Fix #257)
Added tooltips to settings.
Added animations.

🐛 Fixes
Fixed Yehorivka heightmaps being twice their correct size. (Fix #259)
Heatmap no longer redraws on layer changes for the same map.
Fixed off-center flag numbers on rectangular flags.
Fixed seconds displayed as meters in some languages.
  • Loading branch information
sh4rkman authored Jan 15, 2025
2 parents f965d50 + 26a387d commit a910725
Show file tree
Hide file tree
Showing 180 changed files with 3,422 additions and 549 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ node_modules/
dist/
public/dist/
config/test-results/
*.Identifier
*.Identifier
src/img/github/desktop_ui_1 - Copy.webp
public/maps/yehorivka/heightmap_backup.webp
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# <img src="https://img.shields.io/badge/-major%20release-b22222?style=for-the-badge"> **36.0.0** *(2025-01-15)*

<img src="https://img.shields.io/badge/-new-green"> **Squad Map Markers:** Right-click on the map to open a context menu that lets you place markers, helping you strategize for future games.

<img src="https://img.shields.io/badge/-new-green"> **Auto-Copy Targets:** Enable this setting to automatically copy the calculations of the most recently placed or moved target to the clipboard, making it easy to share them in-game using Ctrl+V.

<img src="https://img.shields.io/badge/-new-green"> **Auto-Copy Next Flags:** Enable this setting to automatically copy the name of the next flag when clicking a flag in a RAAS/Invasion layer, making it easy to share in-game using Ctrl+V.

<img src="https://img.shields.io/badge/-new-green"> **Display Low & High Angles:** Enable this setting to display both low- and high-angle solutions on the marker for weapons that support both. (Thanks, Matador, for the suggestion. Fix #258)

<img src="https://img.shields.io/badge/-new-green"> **Flags Distance:** In AAS/RAAS/Invasion, a new setting allows you to show or hide the distance between flags.

<img src="https://img.shields.io/badge/-%20improv%20-orange"> HD maps (8k × 8k) are now tiled for better performance and efficiency.

<img src="https://img.shields.io/badge/-%20improv%20-orange"> Added various tooltips to settings.

<img src="https://img.shields.io/badge/-%20improv%20-orange"> Added various animations.

<img src="https://img.shields.io/badge/-%20fix%20-b22"> Fixed Yehorivka heightmaps being twice the size they should be. (Fix #259)

<img src="https://img.shields.io/badge/-%20fix%20-b22"> The heatmap is no longer redrawn each time the layer is changed on the same map.

<img src="https://img.shields.io/badge/-%20fix%20-b22"> Fixed flag numbers being off-center on rectangular flags.

<img src="https://img.shields.io/badge/-%20fix%20-b22"> Fixed seconds being displayed as meters in some languages.



</br></br><!-- CHANGELOG SPLIT MARKER -->


# <img src="https://img.shields.io/badge/-major%20release-b22222?style=for-the-badge"> **35.0.0** *(2025-01-02)*

<img src="https://img.shields.io/badge/-new-green"> **Custom font size:** you can now change the size of the texts appearing on the map to your liking (Fixes [#254](https://github.com/sh4rkman/SquadCalc/issues/254))
Expand Down
24 changes: 9 additions & 15 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ export default async (env) => {
rules: [
{ test: /\.(png|svg|jpg|jpeg|gif|webp)$/i, type: 'asset/resource', },
{ test: /\.(sc|sa|c)ss$/i, use: ['style-loader', 'css-loader', 'sass-loader'],},
{ test: /\.(html)$/,
{
test: /\.(html)$/,
include: path.join(__dirname, ''),
use: {
loader: 'html-loader',
options: {
interpolate: true
}
}
use: { loader: 'html-loader', options: { interpolate: true } }
}
],
},
Expand All @@ -63,6 +59,9 @@ export default async (env) => {
directory: path.join(__dirname, '../public'),
publicPath: '/',
},
watchFiles: {
//paths: ['src/**/*'],
},
},
plugins: [
new Dotenv(),
Expand Down Expand Up @@ -180,14 +179,6 @@ export default async (env) => {
/robots\.txt/, // robots.txt
/\.webp$/,
],
runtimeCaching: [
{
urlPattern: new RegExp(/\/maps\/[^\/]+\/[^\/]+\/[1-5]/),
handler: 'StaleWhileRevalidate',
options: {
cacheName: 'squadcalc-tiles',
},
}],
})
],
performance: {
Expand Down Expand Up @@ -216,6 +207,9 @@ export default async (env) => {
format: {
comments: false,
},
compress: {
pure_funcs: ['console.debug'], // Removes console.debug
},
},
}),
] : [],
Expand Down
Loading

0 comments on commit a910725

Please sign in to comment.