Commit graph

224 commits

Author SHA1 Message Date
Azgaar
e9113730b9 fix: service worker fn 2024-09-20 15:40:10 +02:00
Azgaar
5904e9e7c6 fix: routes (v1.104.3) 2024-09-20 14:16:07 +02:00
Azgaar
3d1f268003 feat: use StaleWhileRevalidate for scripts poloicy; v1.104.2 2024-09-20 13:04:47 +02:00
Azgaar
d3ba6dd95b style: reduce submap dialog width - v1.104.1 2024-09-20 12:21:51 +02:00
Azgaar
05de284e02
Refactor layers rendering (#1120)
* feat: render states - use global fn

* feat: render states - separate pole detection from layer render

* feat: render provinces

* chore: unify drawFillWithGap

* refactor: drawIce

* refactor: drawBorders

* refactor: drawHeightmap

* refactor: drawTemperature

* refactor: drawBiomes

* refactor: drawPrec

* refactor: drawPrecipitation

* refactor: drawPopulation

* refactor: drawCells

* refactor: geColor

* refactor: drawMarkers

* refactor: drawScaleBar

* refactor: drawScaleBar

* refactor: drawMilitary

* refactor: pump version to 1.104.00

* refactor: pump version to 1.104.00

* refactor: drawCoastline and createDefaultRuler

* refactor: drawCoastline

* refactor: Features module start

* refactor: features - define distance fields

* feat: drawFeatures

* feat: drawIce don't hide

* feat: detect coastline - fix issue with border feature

* feat: separate labels rendering from generation process

* feat: auto-update and restore layers

* refactor - change layers

* refactor - sort layers

* fix: regenerate burgs to re-render layers

* fix: getColor is not defined

* fix: burgs overview - don't auto-show labels on hover

* fix: redraw population on change

* refactor: improve tooltip logic for burg labels and icons

* chore: pump version to 1.104.0

* fefactor: edit coastline and lake

* fix: minot fixes

* fix: submap

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-09-20 12:20:27 +02:00
Azgaar
ec993d1a9b fix: #1129 2024-09-12 12:55:31 +02:00
Azgaar
0187bba76c hotfix: 1.103.7 2024-09-12 11:25:53 +02:00
Ángel Montero Lamas
95c6af8993
added names to the random names of zones (#1128)
* added names of zones

added names for rebels, invasion and animals.

* deleted suggested names

- deleted siege and subjugation from zones.generator.js const subtype = rw

* fixed invationCells spelling

Fixed invationCells to invasionCells.
Is invasion with s.

* update versioning and index.html
2024-09-12 01:23:50 +02:00
Azgaar
cea9b1a48a fix: locking options 2024-09-06 02:41:14 +02:00
Azgaar
4c6c5288a1 refactor: load.js formatting 2024-09-06 01:11:25 +02:00
Azgaar
dd35947ecd fix: version detection on load 2024-09-06 00:32:32 +02:00
Azgaar
0b8d3c63fc fix: 1.103.02 - parse old .map - markers data fix 2024-09-04 22:30:24 +02:00
Azgaar
637aa398bb fix: 1.103.01 - parse old .map - add patch version 2024-09-04 22:20:56 +02:00
Ángel Montero Lamas
168203f7da
Friendly text on latitude cell info (#1125)
* Friendly text on latitude cell info

- Added function getLatitudeDescription(latitude)
- Added the text to infoLat on cell info.

* refactored, renamed to getGeozone

* v1.103 on commonUtils.js
2024-09-04 19:18:35 +02:00
Ángel Montero Lamas
b273c77166
added icon-dot-circled to locate burg in burg editor menu (#1123)
* added icon-dot-circled to locate burg

- icon dot-circled
- function zoomIntoBurg()

* pack.burgs[id] and icons

pack.burgs[id].x and y
icon target and map pin

* Update versioning.js to 1.102.0

* Update index.html burg-editor.js to 1.102.00
2024-09-04 02:34:48 +02:00
Azgaar
d42fd5cf92 fix: year and era - unlock both on lock icon click 2024-09-02 12:16:51 +02:00
Azgaar
59462a4f15 fix: #1118 - get lake shoreline if missing 2024-09-01 21:42:34 +02:00
Azgaar
baf7a5c3b9 chore: update version 2024-09-01 14:20:06 +02:00
Azgaar
dbe6ef1854 chore: label letter spacing - update version 2024-09-01 13:46:42 +02:00
Azgaar
eb29c5ec5d
Zones generator update (#1113)
* feat: style - store emblem size mod in style (v1.99.10)

* fix the isOutdated function for versions past 1.99

* fix: showUploadMessage function not called correctly for isUpdated case

* feat: load - improve version detection

* feat: improve version detection and update process

* feat: Update version and use constant for VERSION in multiple files

* Update versioning.js to fix incorrect message display for stored version

* feat: zones editor - update to work with pack data

* feat: zones editor - update editor

* feat: zones editor - update editor

* chore: update version

* feat: zones - regenerate

* feat: zones - render zones as continuius line

* feat: zones - editot changes

* feat: zones - auto-update

* feat: zones - generation fixes

* feat: zones - generation fixes

* feat: zones - restore layer

* feat: zones - proselytism - check population

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-09-01 12:48:39 +02:00
Azgaar
e77202a08a feat: remove ALT horkeys as unused 2024-08-29 12:14:49 +02:00
Azgaar
19f7f2508e fix: geoJSON export - fix array level 2024-08-27 14:04:02 +02:00
Azgaar
bf41ad1b70 fix: #1114 - saveGeoJSON_Routes 2024-08-27 12:07:49 +02:00
Azgaar
33fbfc2e48 feat: style - allow clip setting for prec and population layers 2024-08-26 19:21:15 +02:00
Azgaar
15aa7f98e1 fix: options - firefox - hide arrows for number input 2024-08-26 13:04:03 +02:00
Azgaar
f129ff5573 feat: style - store emblem size mod in style (v1.99.10) 2024-08-26 02:12:30 +02:00
Azgaar
634ad6cd8e feat: ai-generation - stream results 2024-08-25 15:21:45 +02:00
Azgaar
63496a651f fix: style update - get value from event 2024-08-24 01:12:48 +02:00
Azgaar
efbab14d11 Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator 2024-08-23 18:26:30 +02:00
Azgaar
b54f758350 fix: routes - don't render route with <2 points 2024-08-23 18:26:12 +02:00
Azgaar
6df54d1ef6
AI generation for notes (#1112)
* feat: ai generation for notes

* feat - ai generation -default to gpt-4o-mini

* feat - ai generation - change update text

* feat - ai generation - improve prompt

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-08-23 18:08:50 +02:00
Azgaar
1f280133be fix: recreateStates 2024-08-23 12:43:15 +02:00
Azgaar
d4aef4920c
Slider-input web component (#1109)
* feat: slider-input web component

* feat: slider-input web component - Brush size

* feat: slider-input - statesGrowthRate

* feat: slider-input - units editor

* feat: slider-input - dissalow invalid numbers

* chore: pump version to v1.99.05

* chore: pump version to v1.99.05

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-08-22 13:35:36 +02:00
Azgaar
da8c4f1e4a fix: rotues - isCrossroad 2024-08-19 14:09:38 +02:00
Azgaar
7c82a99900 feat: new style - DarkSeas 2024-08-17 14:16:01 +02:00
Azgaar
9c97711a99 fix: routes id after removing all 2024-08-16 13:15:00 +02:00
Azgaar
106d5edc78 fix: spelling 2024-08-15 17:30:15 +02:00
Azgaar
21f16296e7 chore: pump version to 1.99.01 to get fixes applied 2024-08-15 17:23:49 +02:00
Azgaar
f19b891421
Urquhart routes (#1072)
* feat: routes generation

* feat: routes rendering

* feat: searoutes fix, changing reGraph

* feat: searoute - change pathfinding algo

* feat: routes - cleanup code

* feat: routes - change data format

* feat: routes - add routes to json export

* feat: edit routes - start

* feat: edit routes - main

* feat: edit routes - EP

* feat: edit routes - remove route

* feat: route - generate names

* feat: route - continue

* Refactor route merging logic for improved performance

* feat: routes - show name in tooltip

* feat: routes - create route dialog

* feat: update data on control point remove

* feat: routes editor - split route

* feat: add join route functionality to routes editor

* feat: Add join route functionality to routes editor

* feat: Update join route tooltip in routes editor

* feat: routes overview - sort by length

* feat: routes overview - fix distanceScale value

* feat: routes overview - create route

* Refactor getMiddlePoint function to getCloseToEdgePoint

* feat: routes - change data format, fix issues

* feat: routes - regenerateRoutes

* feat: routes - add route on burg creation

* chore - remove merge conflict markers

* chore - remove merge conflict markers

* feat: routes name - no unnamed burg names

* feat: routes - lock routes

* fix: routes - split routes

* feat: routes - tip correction

* feat: routes - auto-update part 1

* feat: routes - return old rePacj logic to not break auto-update

* feat: routes - auto-update - add connections

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-08-15 15:46:55 +02:00
Azgaar
c6dd331eb6 fix: zoomTo to use svg size and not graph size 2024-08-02 11:35:51 +02:00
Azgaar
b267e832b5 fix: support migration of v0.9 maps 2024-07-30 17:54:17 +02:00
Azgaar
00abd5213b fix: #1103 2024-07-27 14:32:42 +02:00
Azgaar
a5a638c439 feat: toggle off States Halo if rendering is optimized 2024-07-15 23:46:54 +02:00
Azgaar
df4d80bb86 chore: tiles - set default values 2024-07-13 16:51:08 +02:00
Azgaar
549c5ff58b fix: tiles - add more letters to label 2024-07-13 14:53:42 +02:00
Azgaar
aec40fd44f feat: Add configurable longitude and update version 2024-07-12 12:28:21 +02:00
Azgaar
e9ee6967ba
Сonfigurable longitude (#1095)
* feat: configurable longitude

* chore: update version

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
2024-07-12 12:26:03 +02:00
Azgaar
fc7ef72628 feat: Update compass layer and rose element id for v1.98.00 2024-07-07 18:40:04 +02:00
Azgaar
e4f2de6472 feat: configure world - checkbox to auto-apply changes (v1.97.16) 2024-07-07 17:17:19 +02:00
Azgaar
e1c7305f71 feat: Update military overview UI to use lowercase data attributes 2024-06-24 17:22:20 +02:00