UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

2 lines • 1.12 kB
export const __webpack_esm_id__=930;export const __webpack_esm_ids__=[930];export const __webpack_esm_modules__={10930(e,t,n){n.r(t),n.d(t,{captureNodeSizes:()=>d,shouldCaptureSizes:()=>i});var o=n(79456);function a(){if("undefined"!=typeof globalThis)return globalThis}function i(){return Boolean(a()?.mermaidCaptureSizes)}function r(){return"undefined"==typeof location?"browser-dev":`${location.pathname}${location.search}`}function s(e,t){const n=a();if(!n)return;const o=t.node(),i=(o&&"ownerSVGElement"in o?o.ownerSVGElement:null)??o,r=i?.id??"(unknown)";n.mermaidCapturedSizes??=[];const s={svgId:r,sizes:e};n.mermaidCapturedSizes.push(s),n.mermaidLastCapturedSizes=s}function d(e,t){const n=[];for(const e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});0!==n.length&&s({metadata:{captureVersion:1,capturedAt:(new Date).toISOString(),capturedFrom:r()},nodes:n},e)}(0,o.__name)(a,"getCaptureGlobal"),(0,o.__name)(i,"shouldCaptureSizes"),(0,o.__name)(r,"capturedFromLocation"),(0,o.__name)(s,"emitCapturedSizes"),(0,o.__name)(d,"captureNodeSizes")}}; //# sourceMappingURL=930.js.map