* 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>
* 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
* 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
---------
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>
* feat: add string utility tests and vitest browser configuration
* feat: add Playwright for end-to-end testing and update snapshots
- Introduced Playwright for E2E testing with a new configuration file.
- Added test scripts to package.json for running E2E tests.
- Updated package-lock.json and package.json with new dependencies for Playwright and types.
- Created new SVG snapshot files for various layers (ruler, scaleBar, temperature, terrain, vignette, zones) to support visual testing.
- Excluded e2e directory from TypeScript compilation.
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add SVG layer snapshots for various components
- Added ruler layer snapshot with hidden display.
- Added scale bar layer snapshot with detailed structure and styling.
- Added temperature layer snapshot with opacity and stroke settings.
- Added terrain layer snapshot with ocean and land heights groups.
- Added vignette layer snapshot with mask and opacity settings.
- Added zones layer snapshot with specified opacity and stroke settings.
* fix: update Playwright browser installation command to use npx
* Update snapshots
* refactor: remove unused layer tests and their corresponding snapshots as fonts are unpredictable
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* prototype for ice seperation
* feat: migrate ice data to new data model and update version to 1.110.0
* refactor: update ice data handling and rendering for improved performance
* feat: integrate ice generation and recalculation in heightmap editing
* fix ice selection(hopefully)
* fix ice selection better(pls)
* refactor: remove redundant element selection in ice editing functions
* fix: clear ice data before generating glaciers and icebergs
* sparse array implementation with reduced updates
* fix logic chech in modules/dynamic/auto-update.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: migrate ice data to new data model structure
* refactor: streamline ice generation process and clean up rendering functions
* refactor: simplify ice rendering logic by removing redundant clearing of old SVG
* fix: update editIce function to accept element parameter and improve logic for glacier handling
* ice drawing with only type on less occuring glaciers
* feat: add compactPackData function to filter out undefined glaciers and icebergs
* fix: clear existing ice elements before redrawing in editHeightmap function
* fix compact problems on autosave
* refactor: unify ice data structure and streamline ice element handling
* refactor: improve getNextId function to fill gaps in ice element IDs(optional commit)
* just to be sure
* bump version in html
* fix index.html script import
* feat: add ice module script to index.html
* fix migration check
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* prototype for ice seperation
* feat: migrate ice data to new data model and update version to 1.110.0
* refactor: update ice data handling and rendering for improved performance
* feat: integrate ice generation and recalculation in heightmap editing
* fix ice selection(hopefully)
* fix ice selection better(pls)
* refactor: remove redundant element selection in ice editing functions
* fix: clear ice data before generating glaciers and icebergs
* sparse array implementation with reduced updates
* fix logic chech in modules/dynamic/auto-update.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: migrate ice data to new data model structure
* refactor: streamline ice generation process and clean up rendering functions
* refactor: simplify ice rendering logic by removing redundant clearing of old SVG
* fix: update editIce function to accept element parameter and improve logic for glacier handling
* ice drawing with only type on less occuring glaciers
* feat: add compactPackData function to filter out undefined glaciers and icebergs
* fix: clear existing ice elements before redrawing in editHeightmap function
* fix compact problems on autosave
* refactor: unify ice data structure and streamline ice element handling
* refactor: improve getNextId function to fill gaps in ice element IDs(optional commit)
* just to be sure
* bump version in html
* fix index.html script import
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* 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
* fix: Update Node.js version in Dockerfile to 24-alpine
---------
Co-authored-by: Marc Emmanuel <marc.emmanuel@tado.com>
Co-authored-by: Marc Emmanuel <marcwissler@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@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>
Previously `getLinePower` was defined without any parameters, which meant callers had to rely on global variable `cells` which overrides `cellDesired` value.
The id field for geojson export was not consistent with csv exports.
Removes the prefix on routes, rivers and markers geojson, and on
markers csv, to make them all use only an integer as id.
This makes it easier to import and do joins in other software.