diff --git a/docs/fleet-calculator.html b/docs/fleet-calculator.html index 0175609..d251ab4 100644 --- a/docs/fleet-calculator.html +++ b/docs/fleet-calculator.html @@ -293,8 +293,8 @@ html[data-theme=light] .iso-wrap { radial-gradient(1px 1px at 91% 22%, var(--iso-star) 50%, transparent 51%), linear-gradient(180deg, var(--iso-sky1), var(--iso-sky2)); } -.iso-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: default; user-select: none; -webkit-user-select: none; outline: none; } -.iso-zoomed .iso-svg { cursor: grab; } +.iso-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; } +.iso-svg.iso-dragging { cursor: grabbing; } .iso-svg:focus-visible { outline: 2px solid var(--iso-accent); outline-offset: -2px; } .iso-bar { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; @@ -916,6 +916,7 @@ html[data-theme=light] .iso-svg .iso-glint { display: inline; } * var view = CNXIso.mount(containerEl, cfg, { onPick: function (info) {} }); * view.update(cfg); // merges cfg over the current config and redraws * view.setLevel("gf" | "1f" | "roof"); // ground-floor cutaway, upper floors, roofs + * view.setRotation(0..3); // 1 (the default) shows the factory front * view.destroy(); * * Layout: the Payap scenario model (docs/site-candidates.md), the detached @@ -2569,7 +2570,7 @@ html[data-theme=light] .iso-svg .iso-glint { display: inline; } function mount(el, cfg, opts) { if (!el) throw new Error("CNXIso.mount: no container"); opts = opts || {}; - var st = { raw: Object.assign({}, cfg || {}), cfg: norm(cfg), level: levelOf(opts.level || opts.mode, "roof"), rot: opts.rotation === undefined ? 3 : ((opts.rotation | 0) % 4 + 4) % 4, sel: null, uid: ++UID }; + var st = { raw: Object.assign({}, cfg || {}), cfg: norm(cfg), level: levelOf(opts.level || opts.mode, "roof"), rot: opts.rotation === undefined ? 1 : ((opts.rotation | 0) % 4 + 4) % 4, sel: null, uid: ++UID }; var wrap = document.createElement("div"); wrap.className = "iso-wrap"; wrap.innerHTML = '