mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
start of ruler preferences and style
- Want to have initial X position. - initial Y position. - initial ruler lenght. pending: - Don't overlap at creation. - change polyline width. - change white and gray polyline. - Change polyline color. - Change text label. - Change text font family. - Change text font size.
This commit is contained in:
parent
19f7f2508e
commit
8b4dcec79d
5 changed files with 166 additions and 17 deletions
|
|
@ -73,6 +73,11 @@ function prepareMapData() {
|
|||
const coords = JSON.stringify(mapCoordinates);
|
||||
const biomes = [biomesData.color, biomesData.habitability, biomesData.name].join("|");
|
||||
const notesData = JSON.stringify(notes);
|
||||
const rulerPreferences = JSON.stringify({
|
||||
initialX: localStorage.getItem("rulerInitialX") || "50",
|
||||
initialY: localStorage.getItem("rulerInitialY") || "50",
|
||||
initialLength: localStorage.getItem("rulerInitialLength") || "100"
|
||||
});
|
||||
const rulersString = rulers.toString();
|
||||
const fonts = JSON.stringify(getUsedFonts(svg.node()));
|
||||
|
||||
|
|
@ -148,6 +153,7 @@ function prepareMapData() {
|
|||
provinces,
|
||||
namesData,
|
||||
rivers,
|
||||
rulerPreferences,
|
||||
rulersString,
|
||||
fonts,
|
||||
markers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue