@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 +4 -2
- package/dist/assets/{demo-BbkXJcS5.js → demo-CVQ7kFek.js} +1 -1
- package/dist/assets/{harness-C4SHmAI-.js → harness-C-VZV-ou.js} +1 -1
- package/dist/assets/{main-DEPPWqNX.js → main-DwbXrrYn.js} +2 -2
- package/dist/css/fonts/font.oldstandard.css +2 -16
- package/dist/css/storymap.css +1 -1
- package/dist/demo.html +2 -2
- package/dist/docs/migration.html +15 -3
- package/dist/docs/readme.html +4 -2
- package/dist/examples/assets/zoomify-clamp/TileGroup0/0-0-0.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/1-0-0.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/1-1-0.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/2-0-0.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/2-0-1.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/2-1-0.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/2-1-1.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/2-2-0.jpg +0 -0
- package/dist/examples/assets/zoomify-clamp/TileGroup0/2-2-1.jpg +0 -0
- package/dist/examples/scroll-hint.json +59 -0
- package/dist/examples/zoomify-clamp.json +49 -0
- package/dist/harness.html +2 -2
- package/dist/index.html +5 -3
- package/dist/js/storymap.d.ts +34 -5
- package/dist/js/storymap.js +194 -135
- package/dist/js/storymap.js.map +1 -1
- package/package.json +1 -1
- package/schema/storymap.schema.json +4 -0
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
|
-
|
|
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-
|
|
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-
|
|
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});
|