cozy-iiif 0.1.2 → 0.1.3
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/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/core/canvas.ts +1 -1
package/dist/index.js
CHANGED
@@ -627,7 +627,7 @@ const K = (t) => p(t, "type").startsWith("ImageService") || t.profile && t.profi
|
|
627
627
|
const e = [];
|
628
628
|
return new G({
|
629
629
|
annotation: [(i) => {
|
630
|
-
if (i.motivation === "painting") {
|
630
|
+
if (i.motivation === "painting" || !i.motivation) {
|
631
631
|
const n = (i.body ? Array.isArray(i.body) ? i.body : [i.body] : []).filter((a) => a.type === "Image");
|
632
632
|
e.push(...n.map((a) => It(a)));
|
633
633
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cozy-iiif",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.3",
|
4
4
|
"description": "A developer-friendly collection of abstractions and utilities built on top of @iiif/presentation-3 and @iiif/parser",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Rainer Simon",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"./level-0": "./dist/level-0/index.js"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
|
-
"vite": "^6.2.
|
29
|
+
"vite": "^6.2.2",
|
30
30
|
"vite-plugin-dts": "^4.5.3"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
package/src/core/canvas.ts
CHANGED
@@ -91,7 +91,7 @@ export const getImages = (canvas: Canvas): CozyImageResource[] => {
|
|
91
91
|
|
92
92
|
const builder = new Traverse({
|
93
93
|
annotation: [anno => {
|
94
|
-
if (anno.motivation === 'painting') {
|
94
|
+
if (anno.motivation === 'painting' || !anno.motivation) {
|
95
95
|
const bodies = anno.body ?
|
96
96
|
Array.isArray(anno.body) ? anno.body : [anno.body]
|
97
97
|
: [];
|