@digitalculture/ochre-sdk 0.11.28 → 0.11.29
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.d.mts +1 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1766,6 +1766,7 @@ function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1766
1766
|
let image = null;
|
|
1767
1767
|
const imageLink = links.find((link) => link.type === "image" || link.type === "IIIF");
|
|
1768
1768
|
if (imageLink != null) image = {
|
|
1769
|
+
uuid: imageLink.uuid,
|
|
1769
1770
|
url: `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&load`,
|
|
1770
1771
|
label: imageLink.identification?.label ?? null,
|
|
1771
1772
|
width: imageLink.image?.width ?? 0,
|
|
@@ -1855,6 +1856,7 @@ function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1855
1856
|
imageQuality ??= "high";
|
|
1856
1857
|
const images = [];
|
|
1857
1858
|
for (const link of links) images.push({
|
|
1859
|
+
uuid: link.uuid,
|
|
1858
1860
|
url: `https://ochre.lib.uchicago.edu/ochre?uuid=${link.uuid}${imageQuality === "high" && (link.type === "image" || link.type === "IIIF") ? "&load" : "&preview"}`,
|
|
1859
1861
|
label: link.identification?.label ?? null,
|
|
1860
1862
|
width: link.image?.width ?? 0,
|
package/package.json
CHANGED