UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

54 lines (52 loc) • 2.63 kB
function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='undefined') return; var shadow=!forceLightDom&&typeof window!=='undefined'&&window.__efpShadowDOMStyleParent; var parent=shadow||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s); if (shadow) (window.__efpStyleElements||(window.__efpStyleElements=[])).push(s);} (function() { try { var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}; e.SENTRY_RELEASE = { id: "3.47.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ef5fd9f5-4828-47a8-aab5-2feda9d1a151", e._sentryDebugIdIdentifier = "sentry-dbid-ef5fd9f5-4828-47a8-aab5-2feda9d1a151"); } catch {} })(); import "./rolldown-runtime-5rOLGCTp.js"; import { s as e } from "./i18n-DlquqKCP.js"; import { t } from "./react-XuvSZP7j.js"; import { t as n } from "./jsx-runtime-BzLvm2y2.js"; import { r } from "./index.module-CN0EtZcO.js"; import { l as i, u as a } from "./store-DTvNQcN7.js"; t(); var o = [], s = n(); function c() { let t = o.map((e) => e.width * e.height).reduce((e, t) => e += t, 0), n = o.map((e) => /* @__PURE__ */ (0, s.jsxs)("div", { className: "debug__canvas", id: e.toDataURL(), children: [ e.width, "x", e.height, "=", e.width * e.height, /* @__PURE__ */ (0, s.jsx)("br", {}), /* @__PURE__ */ (0, s.jsx)("img", { src: e.toDataURL(), alt: "", crossOrigin: "anonymous" }) ] }, e.toDataURL())); return /* @__PURE__ */ (0, s.jsxs)("div", { className: "debug", children: [ /* @__PURE__ */ (0, s.jsx)("button", { onClick: () => i.searchStore.selectSearch(""), children: e("Close") }), /* @__PURE__ */ (0, s.jsxs)("div", { children: ["Total square: ", t] }), n ] }); } var l = () => r(() => /* @__PURE__ */ (0, s.jsx)(s.Fragment, { children: a.list.type === "search" && a.list.text === "q1" ? /* @__PURE__ */ (0, s.jsx)(c, {}) : null })); //#endregion export { l as default }; ;/* vite-per-chunk-css */ __vite_inject_css__(".debug{z-index:999;background:var(--color-white);width:calc(100vw - 2rem);height:calc(100vh - 2rem);padding:1rem;position:fixed;top:1rem;left:1vw;overflow:scroll;box-shadow:0 0 1rem #00000080}.debug label{font-weight:var(--font-weight-bold);display:block}.debug__canvas{vertical-align:top;padding:2px;display:inline-block}.debug__canvas>img{background:var(--color-gray-300)}\n/*$vite$:1*/", "Debug.css", false);