mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
Merge branch 'master' into dev-csv
This commit is contained in:
commit
79292bf40b
4 changed files with 10 additions and 3 deletions
|
|
@ -50,6 +50,7 @@ iframe {
|
||||||
mask-mode: alpha;
|
mask-mode: alpha;
|
||||||
mask-clip: no-clip;
|
mask-clip: no-clip;
|
||||||
fill-rule: evenodd;
|
fill-rule: evenodd;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#canvas {
|
#canvas {
|
||||||
|
|
|
||||||
|
|
@ -1481,6 +1481,12 @@ function drawRivers() {
|
||||||
|
|
||||||
const riverPaths = pack.rivers.map(({cells, points, i, widthFactor, sourceWidth}) => {
|
const riverPaths = pack.rivers.map(({cells, points, i, widthFactor, sourceWidth}) => {
|
||||||
if (!cells || cells.length < 2) return;
|
if (!cells || cells.length < 2) return;
|
||||||
|
|
||||||
|
if (points && points.length !== cells.length) {
|
||||||
|
console.error(`River ${i} has ${cells.length} cells, but only ${points.length} points defined. Resetting points data`);
|
||||||
|
points = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
const meanderedPoints = addMeandering(cells, points);
|
const meanderedPoints = addMeandering(cells, points);
|
||||||
const path = getRiverPath(meanderedPoints, widthFactor, sourceWidth);
|
const path = getRiverPath(meanderedPoints, widthFactor, sourceWidth);
|
||||||
return `<path id="river${i}" d="${path}"/>`;
|
return `<path id="river${i}" d="${path}"/>`;
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,8 @@ function editNotes(id, name) {
|
||||||
selector: "#notesLegend",
|
selector: "#notesLegend",
|
||||||
height: "90%",
|
height: "90%",
|
||||||
menubar: false,
|
menubar: false,
|
||||||
plugins: `autolink lists link charmap print formatpainter casechange code fullscreen image link media table paste hr checklist wordcount`,
|
plugins: `autolink lists link charmap print code fullscreen image link media table paste hr wordcount`,
|
||||||
toolbar: `code | undo redo | bold italic strikethrough | forecolor backcolor | formatpainter removeformat | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media table | fontselect fontsizeselect | blockquote hr casechange checklist charmap | print fullscreen`,
|
toolbar: `code | undo redo | removeformat | bold italic strikethrough | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media table | fontselect fontsizeselect | blockquote hr charmap | print fullscreen`,
|
||||||
media_alt_source: false,
|
media_alt_source: false,
|
||||||
media_poster: false,
|
media_poster: false,
|
||||||
setup: editor => {
|
setup: editor => {
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ function showSupporters() {
|
||||||
Jonathan Williams,ojacid .,Brian Wilson,A Patreon of the Ahts,Shubham Jakhotiya,www15o,Jan Bundesmann,Angelique Badger,Joshua Xiong,Moist mongol,
|
Jonathan Williams,ojacid .,Brian Wilson,A Patreon of the Ahts,Shubham Jakhotiya,www15o,Jan Bundesmann,Angelique Badger,Joshua Xiong,Moist mongol,
|
||||||
Frank Fewkes,jason baldrick,Game Master Pro,Andrew Kircher,Preston Mitchell,Chris Kohut,Emarandzeb,Trentin Bergeron,Damon Gallaty,Pleaseworkforonce,
|
Frank Fewkes,jason baldrick,Game Master Pro,Andrew Kircher,Preston Mitchell,Chris Kohut,Emarandzeb,Trentin Bergeron,Damon Gallaty,Pleaseworkforonce,
|
||||||
Jordan,William Markus,Sidr Dim,Alexander Whittaker,The Next Level,Patrick Valverde,Markus Peham,Daniel Cooper,the Beagles of Neorbus,Marley Moule,
|
Jordan,William Markus,Sidr Dim,Alexander Whittaker,The Next Level,Patrick Valverde,Markus Peham,Daniel Cooper,the Beagles of Neorbus,Marley Moule,
|
||||||
Maximilian Schielke,Johnathan Xavier Hutchinson,Ele,Rita`;
|
Maximilian Schielke,Johnathan Xavier Hutchinson,Ele,Rita,Randy Ross,John Wick,RedSpaz,cameron cannon,Ian Grau-Fay,Kyle Barrett,Charlotte Wiland`;
|
||||||
|
|
||||||
const array = supporters
|
const array = supporters
|
||||||
.replace(/(?:\r\n|\r|\n)/g, "")
|
.replace(/(?:\r\n|\r|\n)/g, "")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue