Commit graph

68 commits

Author SHA1 Message Date
Azgaar
ae6d105bf1 refactor: Remove debug logging from WebGL2LayerClass initialization and syncTransform methods 2026-03-12 19:29:58 +01:00
Azgaar
744dbb154c feat: Optimize WebGL2LayerClass initialization and improve camera synchronization 2026-03-12 19:29:45 +01:00
Azgaar
9e00d69843 refactor: replace webgl-layer-framework with webgl-layer module
- Removed the webgl-layer-framework module and its associated tests.
- Introduced a new webgl-layer module to handle WebGL2 layer management.
- Updated references throughout the codebase to use the new webgl-layer module.
- Adjusted layer registration and rendering logic to align with the new structure.
- Ensured compatibility with existing functionality while improving modularity.
2026-03-12 19:15:49 +01:00
Azgaar
d1d31da864 feat: Improve camera synchronization and add null check for camera instance 2026-03-12 18:35:57 +01:00
Azgaar
8560c131eb feat: Enhance WebGL2LayerFramework initialization and improve global variable handling 2026-03-12 18:25:08 +01:00
Azgaar
1c1d97b8e2 feat: Update sprint status and complete Epic 2 tasks
- Mark Epic 2 as done and update related stories to reflect completion.
- Add Epic 2 retrospective document detailing team performance, metrics, and insights.
- Enhance draw-relief-icons.ts to include parentEl parameter in drawRelief function.
- Introduce performance measurement scripts for WebGL and SVG rendering comparisons.
- Add benchmarks for geometry building in draw-relief-icons.
2026-03-12 15:43:19 +01:00
Azgaar
a285d450c8 feat: refactor draw-relief-icons renderer to utilize WebGL2LayerFramework
- Removed global renderer, camera, and scene management in favor of layer framework integration.
- Implemented terrain layer registration with setup, render, and dispose methods.
- Enhanced texture loading and caching mechanisms.
- Updated geometry building to return Mesh objects directly.
- Added performance benchmarking story for render performance validation.
- Created bundle size audit story to ensure effective tree-shaking and size constraints.
2026-03-12 15:04:37 +01:00
Azgaar
30f74373b8 feat: Refactor draw-relief-icons.ts to integrate with WebGL2LayerFramework
- Implemented registration of draw-relief-icons with WebGL2LayerFramework, removing module-level renderer state.
- Updated drawRelief, undrawRelief, and rerenderReliefIcons functions to utilize framework methods.
- Ensured SVG fallback path is preserved and functional.
- Added performance criteria for rendering relief icons.
- Created tests to verify fallback integration and visual parity with existing SVG output.

test: Add WebGL2 fallback integration verification

- Introduced new tests for WebGL2LayerFramework to ensure no-ops when fallback is active.
- Verified that drawRelief routes to SVG when WebGL2 is unavailable.
- Confirmed visual parity between SVG output and existing implementation.
- Ensured all tests pass with updated coverage metrics.
2026-03-12 14:28:33 +01:00
Azgaar
8c78fe2ec1 Refactor code structure for improved readability and maintainability 2026-03-12 14:14:29 +01:00
Azgaar
769ef9eff0 feat: implement WebGL2 layer framework with core functionalities including init, resize observation, and D3 zoom subscription 2026-03-12 13:44:23 +01:00
Azgaar
94da8fa0bd fix: no foright object 2026-03-11 23:14:56 +01:00
Azgaar
fae0bd1085 fix: improve comments for clarity and update type imports for consistency 2026-03-11 01:17:36 +01:00
Azgaar
3c7b6fffef
Merge branch 'master' into relief-webgl-renderer 2026-03-11 01:03:23 +01:00
Azgaar
ffe350bca8 fix: update type definitions and improve renderer initialization in draw-relief-icons 2026-03-11 00:51:56 +01:00
Azgaar
828534ebd9 fix: clean up drawWebGl and drawSvg functions for improved readability 2026-03-11 00:21:48 +01:00
Azgaar
ab7baf83fd feat: update relief rendering logic and version to 1.114.0 2026-03-11 00:11:15 +01:00
Azgaar
dc06f3d65c fix: streamline texture loading and preload logic in WebGL renderer 2026-03-10 22:55:08 +01:00
Azgaar
bf22c5eaf6 Refactor relief rendering and generation logic
- Migrate relief icon rendering from SVG to WebGL for improved performance.
- Introduce a new relief generator module to handle relief icon creation.
- Update event listeners in relief editor to use a consistent `byId` method.
- Synchronize relief data with the current SVG DOM when exiting edit mode.
- Enhance relief icon management by integrating new utility functions for generating and resolving relief icons.
- Clean up legacy code and improve overall structure for better maintainability.
2026-03-10 03:05:07 +01:00
Azgaar
6ea53eb6f9 chore: bump version to 1.113.6 and update resample.js reference 2026-03-10 00:00:01 +01:00
Azgaar
1116cc5e0f refactor: replace deepCopy with structuredClone 2026-03-09 23:05:27 +01:00
Azgaar
8d092e235e fix: set color space to SRGB for loaded textures 2026-03-09 04:49:43 +01:00
Azgaar
62e27a7168 fix: replace preloadTextures with loadTexture in SVG edit mode 2026-03-09 02:54:32 +01:00
Azgaar
7481a2843e feat: relief three.js renderer 2026-03-09 02:47:13 +01:00
github-actions[bot]
c7978d9d64 chore: bump version to 1.113.5 2026-03-07 17:29:58 +00:00
Azgaar
afe89eff43
Fix: add getPin function and improve code formatting in draw-markers (#1349)
* feat: add getPin function and improve code formatting in draw-markers

* style: improve code formatting in draw-markers.ts for better readability
2026-03-07 18:23:42 +01:00
Azgaar
a66b60b5a7 style: make machine save option more visible 2026-03-07 15:32:44 +01:00
Marc Emmanuel
634c7dba4b
fix: enhance emblem rendering for states and burgs in the editor (#1343)
* fix: enhance emblem rendering for states and burgs in the editor

* fix: update tools.js version to 1.112.0 for improved functionality

* Update src/index.html

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-05 11:57:53 +01:00
Marc Emmanuel
32227518d2
refactor: migrate military generator (#1330)
* refactor: migrate military gnerator

* fix: build + lint

* Update src/modules/military-generator.ts

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

* Update src/modules/military-generator.ts

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

* Update src/modules/military-generator.ts

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

* fix: clean up regiment notes and improve emblem retrieval logic

* Update src/modules/military-generator.ts

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-04 12:53:07 +01:00
Azgaar
f57b9abb8e Update version to 1.113.2 and enhance label editor functionality with offset controls 2026-02-28 23:57:58 +01:00
Copilot
4149374d31
Improve Merge States dialog: hover highlight + color boxes + clearer instructions (#1336)
* Initial plan

* Improve Merge States dialog: add hover highlight and clearer instructions

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

* Address review feedback: remove duplicate header, set width 600px, add reverse map-hover highlight

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

* Fix reverse highlight clearing; add state color fill-box to merge dialog rows

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

* Fix highlightEditorLine to clear all .hovered elements, not just .states.hovered

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

* Bump version to 1.113.1

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

* Update file hashes for index.css and general.js to 1.113.1

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-26 19:35:09 +01:00
Azgaar
a276b61b2d #1334 2026-02-26 17:49:32 +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
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
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
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
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