Skip to content

Commit

Permalink
Integrated touch infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Oct 17, 2024
1 parent 57cbb20 commit 9e40489
Show file tree
Hide file tree
Showing 33 changed files with 634 additions and 415 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ Source Files/Marmolada/clipped.tif.aux.xml
content/**/ogPreview.*g
content/**/ogPreview-tmp*.*g
content/**/ogPreview-overlay.*g
content/**/manifest-enriched.json
1 change: 1 addition & 0 deletions Source Files/Mocks/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ prezi-iiif3
shapely
scour
numpy<2
rdflib
11 changes: 9 additions & 2 deletions Source Files/Mocks/touch/assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import touchViewer from "./openseadragon-annotorious3";
import "@annotorious/openseadragon/annotorious-openseadragon.css";

import { initTouch } from "./image-touch.js";

const image = document.querySelector("#touch-target");
const status = document.querySelector("#status");
const heightMapUrl = "/page031-1.json";

//console.log(`Loaded metadata for touch map width: ${map.width}, height: ${map.height}, scale: ${initialScale}`, map);
initTouch(image, heightMapUrl);
//image.addEventListener("mousemove", await generateHandler(heightMapUrl));

const containerId = "iiif-container";
const container = document.querySelector(`#${containerId}`);
const manifestUrl = "./manifest-enriched.json";

touchViewer(containerId, new URL(manifestUrl, window.location.origin));
1 change: 1 addition & 0 deletions Source Files/Mocks/touch/assets/js/manifest-loader.js
9 changes: 0 additions & 9 deletions Source Files/Mocks/touch/assets/ts/main.ts

This file was deleted.

36 changes: 0 additions & 36 deletions Source Files/Mocks/touch/assets/ts/manifesto-util.ts

This file was deleted.

3 changes: 1 addition & 2 deletions Source Files/Mocks/touch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ <h1>Touch test</h1>
<h2>Status</h2>
<div id="status"></div>
<a href="https://googlechrome.github.io/samples/vibration/">Testpage</a>
<script type="module" src="./assets/js/main.js" type="text/javascript"></script>
</div>
<h1>Console</h1>
<pre id="browserConsole"></pre>
Expand All @@ -36,6 +35,6 @@ <h1>IIIF Variant</h1>
<div class="section-container">
<div id="iiif-container" class="iiif-container"></div>
</div>
<script type="module" src="./assets/ts/main.ts" type="text/javascript"></script>
</body>
<script type="module" src="./assets/js/main.js" type="text/javascript"></script>
</html>
2 changes: 1 addition & 1 deletion Source Files/Mocks/touch/public/page031.jpg
Loading

0 comments on commit 9e40489

Please sign in to comment.