Commit graph

1754 commits

Author SHA1 Message Date
StempunkDev
967e8897ed simplify generateStateLabels method and removed removeStateLabel method 2026-03-12 00:13:00 +01:00
StempunkDev
5f3592412b refactor: update label indexing to use current length for state and custom labels 2026-03-08 01:31:11 +01:00
StempunkDev
25824fe39c fix: regenerateStateLabels 2026-03-04 23:21:58 +01:00
StempunkDev
fab495fb8b refactor: streamline label management by integrating label removal and rendering functions 2026-03-04 23:11:52 +01:00
StempunkDev
3927a762fc chore: update version to 1.114.0 and adjust related script references + fix migration 2026-02-27 01:23:22 +01:00
StempunkDev
fd3200739f apply format 2026-02-24 19:06:22 +01:00
kruschen
ba0ce8e40b
Merge branch 'master' into feature/split-label-view-data 2026-02-24 19:05:05 +01:00
StempunkDev
e1740567c6 refactor: optimize label rendering by building HTML string for batch updates 2026-02-21 20:37:58 +01:00
Joe McMahon
0ff0311a98
Adding zone export to GeoJSON, added versioning and hash updates (#1312)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
* Adding zone export to GeoJSON, added versioning and hash updates

* Fixing copilot findings and test not using production code call

* Correcting collection of disconnected features

---------

Co-authored-by: Joe McMahon <joe@mcmahongroup.org>
Co-authored-by: Azgaar <maxganiev@yandex.com>
2026-02-19 22:29:06 +01:00
StempunkDev
6fa3f786dc refactor: improve code formatting and organization in labels and renderers 2026-02-19 20:08:28 +01:00
kruschen
6d99d8260d
Fix spelling in label-raycast.ts [Copilot]
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-19 19:42:18 +01:00
StempunkDev
32e70496da refactor: replace currentLabelData with direct calls to getLabelData in editLabel function 2026-02-19 19:13:11 +01:00
Copilot
b87225665e
Fix: Military regiment notes not updated on regeneration with new era/year (#1329)
* Initial plan

* Fix: Military notes not updated on regiment or Era data change

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Refactor: update existing regiment note in-place; remove all regiment notes in one pass

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Bump version to 1.112.3 (patch: fix military notes not updated on regen)

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
2026-02-19 18:06:47 +01:00
Copilot
13ec798ffb
Fix zones not recovering after heightmap edit in Risk mode (#1327)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
* Initial plan

* Fix zones restoration in risk heightmap edit mode

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Remove comments from zones restoration code

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Optimize zones restoration with O(n) map lookup instead of O(n²)

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Use local Map for zone backup instead of mutating zone objects

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Update version to 1.112.2 and heightmap-editor.js cache hash

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
2026-02-18 23:33:18 +01:00
Marc Emmanuel
da9e915cdc
refactor: migrate markers (#1324)
* refactor: migrate markers

* Update src/modules/markers-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/markers-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/markers-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/markers-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/markers-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix marker names by removing unnecessary suffixes for Lighthouse and Waterfall

* refactor: marker methods to use underscore for unused parameters

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Azgaar <maxganiev@yandex.com>
2026-02-18 21:10:27 +01:00
Marc Emmanuel
bce65ce2b3
refactor: fonts (#1323)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
* refactor: add font management module and update global types

* fix: declare global declareFont

* test: all map loading test
2026-02-17 14:07:43 +01:00
StempunkDev
c22e6eb0c5 chore: update script version numbers to 1.113.0 in index.html 2026-02-17 02:11:35 +01:00
StempunkDev
0d56479e00 refactor: update import path for label-raycast and improve state label rendering logic 2026-02-17 01:51:08 +01:00
StempunkDev
861db87bff refactor: encapsulate label generation functions within LabelsModule 2026-02-17 01:50:26 +01:00
StempunkDev
6ab2c03860 fix: prevent error on rendering removed or neutral states in stateLabelsRenderer 2026-02-17 01:45:52 +01:00
StempunkDev
3ab40ada5f feat: migrate label data structure from SVG to data model and update version to 1.113.0 2026-02-17 01:45:48 +01:00
StempunkDev
ca6d01f4be feat: synchronize label data model with burg name and position updates 2026-02-16 19:59:29 +01:00
Azgaar
cff57dc4c8
Revert "refactor: add font management module and update global types (#1317)" (#1322)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
This reverts commit 9fb1b9c410.
2026-02-16 05:48:53 +01:00
Marc Emmanuel
9fb1b9c410
refactor: add font management module and update global types (#1317) 2026-02-16 00:15:37 +01:00
Marc Emmanuel
4936a887ab
refactor: migrate COA (#1309)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
* refactor: migrate COA

* fix: PR feedback
2026-02-15 16:11:59 +01:00
StempunkDev
471e865c5e refactor: update import path for findClosestCell utility 2026-02-13 18:12:16 +01:00
StempunkDev
2379770bfa refactor: clean up code formatting and improve timing logic in label generation functions 2026-02-13 18:12:11 +01:00
StempunkDev
689fef0858 feat: enhance label editing functionality and improve data model synchronization 2026-02-13 18:07:12 +01:00
StempunkDev
94b638f3cb feat: integrate label generation into main flow and enhance label data handling 2026-02-11 22:01:57 +01:00
StempunkDev
c467f87df5 refactor: change exported functions to internal functions in label-raycast utility 2026-02-10 22:56:48 +01:00
StempunkDev
dac231f914 refactor: clean up label-related code and introduce raycasting utilities 2026-02-10 22:53:32 +01:00
StempunkDev
7bf33b6e65 feat: add labels module and integrate into PackedGraph 2026-02-10 22:38:38 +01:00
Marc Emmanuel
1100c7c53b
Refactor: migrate ice (#1308)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
* refactor: migrate ice module

* chore: lint

* refactor: enhance rand function documentation for clarity on argument usage

* refactor: reorganize imports in probabilityUtils test file for clarity
2026-02-09 00:49:13 +01:00
Marc Emmanuel
be82ddb0a4
upgrade editors version (#1307) 2026-02-08 21:05:06 +01:00
Marc Emmanuel
f48178a93c
fix: clean up neighbors references on state removal (#1304)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
* fix: clean up neighbors references on state removal

* test: add end-to-end tests for state removal and military regeneration
2026-02-05 12:40:09 +01:00
Marc Emmanuel
8ba29b2561
refactor: migrate zones (#1300)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
* refactor: migrate zones

* refactor: remove duplicate markers property from PackedGraph interface
2026-02-03 17:22:25 +01:00
Marc Emmanuel
86fc62da03
fix: rename feature path functions and update global declarations (#1303)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
* fix: rename feature path functions and update global declarations

* chore: lint
2026-02-03 16:59:08 +01:00
Marc Emmanuel
b73557d624
fix: include ice generation in resampling process (#1302)
* feat: include ice generation in resampling process

* chore: update version to 1.112.1 in versioning.js and resample.js script reference
2026-02-03 16:46:19 +01:00
Marc Emmanuel
844fc15891
refactor: migrate religions (#1299)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
* refactor: migrate religions

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-02 14:53:59 +01:00
Marc Emmanuel
3ba8338508
refactor: migrate renderers to ts (#1296)
* refactor: migrate renderers to ts

* fix: copilot review
2026-02-02 11:32:08 +01:00
Marc Emmanuel
e8b0b19ff0
feat: show total land percentage in biomes editor footer (#1301)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
* feat: show total land percentage in biomes editor footer

* feat: update version to 1.112.0 in versioning.js and biomes-editor.js
2026-02-01 22:18:05 +01:00
Marc Emmanuel
0f19902a56
refactor: migrate provinces generator to new module structure (#1295)
* refactor: migrate provinces generator to new module structure

* fix: after merge fixes of state

* refactor: fixed a bug so had to update tests
2026-02-01 22:16:04 +01:00
Marc Emmanuel
454178fa99
refactor: migrate routes (#1294)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
* refactor: migrate routes

* refactor: format findPath call for improved readability

* refactor: update findPath call to include pack parameter

* refactor: optimize route deletion logic in RoutesModule
2026-01-30 18:29:44 +01:00
Marc Emmanuel
88c70b9264
refactor: migrate states generator (#1291)
* refactor: migrate states generator

* Update src/modules/states-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/states-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-30 16:44:09 +01:00
Marc Emmanuel
363c82ee30
fix: update port type from string to number and add tests for inland burgs (#1292)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
2026-01-30 13:42:33 +01:00
Marc Emmanuel
e938bc7802
refactor: migrate burg module (#1288)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled
* refactor: migrate burg module

* Update src/modules/burgs-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: lint

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-28 00:11:22 +01:00
Marc Emmanuel
3807903cae
refactor: migrate cultures generator (#1287)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
* refactor: migrate cultures generator

* Update src/modules/cultures-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore:lint

* fix: wrong call structure

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-27 21:00:55 +01:00
Marc Emmanuel
260ccd76a3
refactor: migrate names-generator (#1285)
* refactor: migrate names-generator

* Update src/types/global.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/index.ts

* fix: failing builds after merge

* chore: update biome version to 2.3.13 and adjust name validation regex for ASCII characters

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-27 19:29:37 +01:00
Marc Emmanuel
9db40a5230
chore: add biome for linting/formatting + CI action for linting in SRC folder (#1284)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
Code quality / quality (push) Waiting to run
* chore: add npm + vite for progressive enhancement

* fix: update Dockerfile to copy only the dist folder contents

* fix: update Dockerfile to use multi-stage build for optimized production image

* fix: correct nginx config file copy command in Dockerfile

* chore: add netlify configuration for build and redirects

* fix: add NODE_VERSION to environment in Netlify configuration

* remove wrong dist folder

* Update package.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: split public and src

* migrating all util files from js to ts

* feat: Implement HeightmapGenerator and Voronoi module

- Added HeightmapGenerator class for generating heightmaps with various tools (Hill, Pit, Range, Trough, Strait, etc.).
- Introduced Voronoi class for creating Voronoi diagrams using Delaunator.
- Updated index.html to include new modules.
- Created index.ts to manage module imports.
- Enhanced arrayUtils and graphUtils with type definitions and improved functionality.
- Added utility functions for generating grids and calculating Voronoi cells.

* chore: add GitHub Actions workflow for deploying to GitHub Pages

* fix: update branch name in GitHub Actions workflow from 'main' to 'master'

* chore: update package.json to specify Node.js engine version and remove unused launch.json

* Initial plan

* Update copilot guidelines to reflect NPM/Vite/TypeScript migration

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Update src/modules/heightmap-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/utils/graphUtils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/heightmap-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: Add TIME and ERROR variables to global scope in HeightmapGenerator

* fix: Update base path in vite.config.ts for Netlify deployment

* refactor: Migrate features to a new module and remove legacy script reference

* refactor: Update feature interfaces and improve type safety in FeatureModule

* refactor: Add documentation for markupPack and defineGroups methods in FeatureModule

* refactor: Remove legacy ocean-layers.js and migrate functionality to ocean-layers.ts

* refactor: Remove river-generator.js script reference and migrate river generation logic to river-generator.ts

* refactor: Remove river-generator.js reference and add biomes module

* refactor: Migrate lakes functionality to lakes.ts and update related interfaces

* refactor: clean up global variable declarations and improve type definitions

* refactor: update shoreline calculation and improve type imports in PackedGraph

* fix: e2e tests

* chore: add biome for linting/formatting

* chore: add linting workflow using Biome

* refactor: improve code readability by standardizing string quotes and simplifying function calls

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Azgaar <maxganiev@yandex.com>
Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
2026-01-26 22:30:28 +01:00
Marc Emmanuel
e37fce1eed
fix: GeoJSON export (#1283)
Some checks are pending
Deploy static content to Pages / deploy (push) Waiting to run
* fix: use global vars instead of window.

* feat: add GitHub Actions workflow for unit tests

* fix: change mapCoordinates declaration from let to var for compatibility
2026-01-26 18:34:35 +01:00