mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-05 06:57:24 +02:00
feat: Introduce SceneModule for managing map and WebGL canvas integration
This commit is contained in:
parent
125403b82f
commit
42557881bb
6 changed files with 197 additions and 11 deletions
|
|
@ -302,11 +302,11 @@ async function parseLoadedData(data, mapVersion) {
|
|||
|
||||
{
|
||||
svg.remove();
|
||||
document.body.insertAdjacentHTML("afterbegin", data[5]);
|
||||
const mapSvg = Scene.replaceMapSvg(data[5]);
|
||||
svg = d3.select(mapSvg);
|
||||
}
|
||||
|
||||
{
|
||||
svg = d3.select("#map");
|
||||
defs = svg.select("#deftemp");
|
||||
viewbox = svg.select("#viewbox");
|
||||
scaleBar = svg.select("#scaleBar");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue