PageSourceSearch

https://www.gentverrijkt.be/s/default/madoc/assets/Atlas-ec35cfaf.js

js gentverrijkt.be collected 2026-10-08 08:24:05 UTC 2,408 bytes, 7 lines download raw bytes

1import{ax as S,R as t,Z as b,ar as C,a9 as A,G as R,aA as E}from"./vendor-166275c9.js";import{k as V,l as k,e as p,A as I,I as F}from"./Atlas.helpers-0869dd3b.js";let r;function P(){if(typeof r>"u")try{const e=document.createElement("canvas");r=!!(window.WebGLRenderingContext&&e.getContext("webgl2"))}catch{r=!1}return r}const w={maxOverZoom:5},W=["default-preset",{runtimeOptions:w}],L=({isEditing:e,onDeselect:n,children:a,onCreated:l,unstable_webglRenderer:i,controllerConfig:c})=>{const o=A(),{data:s}=R(),u=p();return!s||!o?null:t.createElement(E.Viewer,{containerStyle:{flex:"1 1 0px",height:"100%"},onCreated:l,mode:e?"sketch":"explore",unstable_webglRenderer:P()&&i,renderPreset:W,runtimeOptions:w,controllerConfig:c,height:"100%"},t.createElement("world",{onClick:d=>{n&&(d.stopPropagation(),n())}},t.createElement(I,{theme:u},t.createElement(b,{canvas:o.id},t.createElement(F,{value:s},t.createElement(E.RenderCanvas,null),t.createElement("world-object",{id:`${o.id}/annotations`,x:0,y:0,height:o.height,width:o.width},a))))))},O=e=>{var m,h,g,f,v,x;const{isLoaded:n}=S(e.state.manifestId),a=V("atlas",void 0),l={adjacentSelectors:!0,topLevelSelectors:!0,displaySelectors:!0,currentSelector:!0,...e.options&&e.options.selectorVisibility?e.options.selectorVisibility:{}},i=k("atlas",l);if(!n)return null;const{height:c=500,width:o="100%",maxHeight:s,maxWidth:u,custom:d={}}=e.options||{height:500},{backgroundColor:y}=d;return t.createElement("div",{style:{flex:"1 1 0px",minWidth:0,display:"flex",flexDirection:"column",height:c,width:o,maxHeight:s,maxWidth:u}},t.createElement("style",null,`
2        .atlas-container {
3          --atlas-container-flex: 1 1 0px;
4          --atlas-background: ${y||"#E4E7F0"};
5        }
6        `),t.createElement(b,{canvas:e.state.canvasId},t.createElement(L,{unstable_webglRenderer:(h=(m=e.options)==null?void 0:m.custom)==null?void 0:h.unstable_webglRenderer,controllerConfig:(f=(g=e.options)==null?void 0:g.custom)==null?void 0:f.controllerConfig,onCreated:(x=(v=e.options)==null?void 0:v.custom)==null?void 0:x.onCreateAtlas,isEditing:!!a},i,a,e.children)))},G=e=>{const n=e.options&&e.options.custom&&e.options.custom.customFetcher?e.options.custom.customFetcher:void 0;return t.createElement(C,{vaultOptions:n?{customFetcher:n}:void 0},t.createElement(O,{...e},e.children))};export{O as AtlasViewer,G as default};
7//# sourceMappingURL=Atlas-ec35cfaf.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.