* fix concurency issue at load
* Fix async concurrency error.
* Fix frozen startup if aposthrope used in style name
Co-authored-by: GoteGuru <monk@geotronic.hu>
* Redraw emblems after resample.
* Remove aspect change feature on submaps to support more useful crop operation.
Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
Markers added by procedural generation have custom notes depending on
the type of marker (e.g. dungeons have a procedurally generated map);
however, the notes for markers manually added by the user are empty.
This patch separates the cell selection logic from the legend and name
generation logic in markers-generator.js, so that the latter can be
shared with manually added markers. There is some additional
simplifications such as storing the dx/dy/px/min/each values directly in
the markers table to simplify the writing of the generic "list and add"
loop in `generateTypes()`.
Currently, the legend is only generated when adding a marker of the same
type as an existing marker, and only when a legend generation function
is available for that type. To generate a marker of a type that is not
currently present on the map, one must first change the type field of an
existing marker (which will not get a procedural note), then use "Add
additional marker of that type". The UI for this can be improved later.
Co-authored-by: Basile Clement <basile-github@clement.pm>
* Adding zone type dropdown to index.html
* added zone type filter to zones-editor.js
* zoneTypes dialog
add and delete types, dialog
* filtering types
* correct filter button and prompt
The filter button now works on click with an added zonesEditorAddLines(); on function toggleFilterTable().
If the table is empty, a message appears on a line giving advice.
* Amount of types and fixes
Fixed some spacing in zoneTypes dialog, and made a count for the amount of zones per type.
* Minor changes for zone types
* dialog for types on a button
New button for the zone Types dialog.
* typo in index.html
* update on click add type
Co-authored-by: Evolvedexperiment <evolvedexperiment@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.ru>
* Color picker hatches 14-60
Added hatches to number 14 to 60.
Updated the code of the color picker to accept multiples rows of hatches.
Changed the size of fillRectPointer from 0.9 em to 1.5 em.
Added an Update code to upgrade maps to 1.72 to have a grid of 60 svg hatches. Without the update, loaded files appeared with the rectangles for hatches 14-60 empty.
* Hatches ordered
Reworked the code to put back rows of 14 hatches. Reordered the first 14 hatches to defaault.
Made 3 rows, so 42 hatches.
* Cleaned code and fixes
Cleaned </pattern> in index.html line 152.
Put back: width=".9em" height=".9em" style="margin-bottom:-1px"> for fill.
* mouseover hatches
Fixed some typos. Changed mousemove for mouseover and moved the calling of the function tip from the each function to the original place at 519.
The arrow function changed to one that tells the id.
* Copies hatching from defElements into map svg, and hatching removed from saved map files.
* Removed haching completely from map svg
* Hatching copy for clone is now done before unused pattern removal
* Added back code that removes the unused hatching group
Co-authored-by: Evolvedexperiment <evolvedexperiment@gmail.com>
Co-authored-by: Azgaar <maxganiev@yandex.ru>