@projektemacher/storymapjs 0.10.4 → 0.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -71,14 +71,16 @@ need `icon` inside the location object.
71
71
  ### Limit the map to a bounding box
72
72
 
73
73
  Set `map_bbox` to `[west, south, east, north]` (lon/lat) to constrain the map —
74
- nothing outside of the box can be visible:
74
+ the view center stays inside the box, so the map cannot pan away from it:
75
75
 
76
76
  map_bbox: [-11, 34, 32, 71], // or null (the default) to leave the map unconstrained
77
77
 
78
78
  For image-space (IIIF) maps the coordinates are raw image pixels. When the
79
79
  slide content panel is opaque (a solid background that hides the map behind it),
80
80
  the initial fit accounts for the covered area so the story stays inside the
81
- visible region.
81
+ visible region. To limit the map to the left, visible half in landscape (with
82
+ an opaque slide panel instead of the gradient over the map), set
83
+ `map_area: "left"` (default `"full"`).
82
84
 
83
85
  ### Custom tile templates
84
86
 
@@ -1 +1 @@
1
- import{t as e}from"./main-DEPPWqNX.js";import"./modulepreload-polyfill-P2Xu9kJm.js";function t(e){document.title=`StoryMapJS: `+e.title}window.storymap=new e(`storymap-embed`,`./demo.json`,{},{title:t});
1
+ import{t as e}from"./main-DwbXrrYn.js";import"./modulepreload-polyfill-P2Xu9kJm.js";function t(e){document.title=`StoryMapJS: `+e.title}window.storymap=new e(`storymap-embed`,`./demo.json`,{},{title:t});
@@ -1 +1 @@
1
- import{t as e}from"./main-DEPPWqNX.js";import"./modulepreload-polyfill-P2Xu9kJm.js";window.__smErrors=[],window.__smReady=!1,window.addEventListener(`error`,e=>{window.__smErrors.push(String(e.message||e))});var t=new URLSearchParams(window.location.search),n=t.get(`manifest`),r=t.get(`url`),i=n===null?t.get(`example`):n,a=n===null?`/examples/`:`/examples-iiif/`,o={};if(t.get(`options`))try{o=JSON.parse(t.get(`options`))}catch(e){window.__smErrors.push(`harness: bad options param: `+e)}var s=r??a+i+`.json`;fetch(s).then(e=>e.json()).then(t=>{window.__sm=new e(`storymap-embed`,t,o,{}),window.__smReady=!0}).catch(e=>{window.__smErrors.push(`harness: `+(e&&e.message?e.message:String(e))),window.__smReady=!0});
1
+ import{t as e}from"./main-DwbXrrYn.js";import"./modulepreload-polyfill-P2Xu9kJm.js";window.__smErrors=[],window.__smReady=!1,window.addEventListener(`error`,e=>{window.__smErrors.push(String(e.message||e))});var t=new URLSearchParams(window.location.search),n=t.get(`manifest`),r=t.get(`url`),i=n===null?t.get(`example`):n,a=n===null?`/examples/`:`/examples-iiif/`,o={};if(t.get(`options`))try{o=JSON.parse(t.get(`options`))}catch(e){window.__smErrors.push(`harness: bad options param: `+e)}var s=r??a+i+`.json`;fetch(s).then(e=>e.json()).then(t=>{window.__sm=new e(`storymap-embed`,t,o,{}),window.__smReady=!0}).catch(e=>{window.__smErrors.push(`harness: `+(e&&e.message?e.message:String(e))),window.__smReady=!0});