mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: move scaleBar to the corner of svg export
This commit is contained in:
parent
20b09e8634
commit
433152db06
9 changed files with 153 additions and 156 deletions
5
main.js
5
main.js
|
|
@ -429,7 +429,8 @@ function handleZoom(isScaleChanged, isPositionChanged) {
|
|||
|
||||
if (isScaleChanged) {
|
||||
invokeActiveZooming();
|
||||
drawScaleBar(scale);
|
||||
drawScaleBar(scaleBar, scale);
|
||||
fitScaleBar(scaleBar, svgWidth, svgHeight);
|
||||
}
|
||||
|
||||
// zoom image converter overlay
|
||||
|
|
@ -655,7 +656,7 @@ async function generate(options) {
|
|||
Markers.generate();
|
||||
addZones();
|
||||
|
||||
drawScaleBar(scale);
|
||||
drawScaleBar(scaleBar, scale);
|
||||
Names.getMapName();
|
||||
|
||||
WARN && console.warn(`TOTAL: ${rn((performance.now() - timeStart) / 1000, 2)}s`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue