triiiceratops 0.10.3 → 0.10.5
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/{ArrowCounterClockwise-CvTUOlYp.js → ArrowCounterClockwise-C2bPi1fL.js} +1 -1
- package/dist/{X-Dgb3I7Ob.js → X-Hy7z8RKI.js} +344 -336
- package/dist/{annotation_tool_point-CKkqbVDq.js → annotation_tool_point-CVRtOCN5.js} +1 -1
- package/dist/components/SearchPanel.svelte +4 -1
- package/dist/components/TriiiceratopsViewer.svelte +1 -0
- package/dist/{image_filters_reset-DZrbHhqM.js → image_filters_reset-BOxhPxhP.js} +1 -1
- package/dist/plugins/annotation-editor.js +3 -3
- package/dist/plugins/image-manipulation.js +3 -3
- package/dist/state/viewer.svelte.d.ts +6 -0
- package/dist/state/viewer.svelte.js +20 -2
- package/dist/triiiceratops-bundle.js +569 -569
- package/dist/triiiceratops-element.iife.js +6 -6
- package/package.json +1 -1
|
@@ -126,7 +126,10 @@
|
|
|
126
126
|
|
|
127
127
|
{#each viewerState.searchResults as group}
|
|
128
128
|
<button
|
|
129
|
-
class="w-full text-left bg-base-100 shadow-sm border border-base-200 rounded-box cursor-pointer hover:shadow-md transition-all block p-0 select-none
|
|
129
|
+
class="w-full text-left bg-base-100 shadow-sm border border-base-200 rounded-box cursor-pointer hover:shadow-md transition-all block p-0 select-none {viewerState.currentCanvasIndex ===
|
|
130
|
+
group.canvasIndex
|
|
131
|
+
? 'ring-2 ring-primary bg-primary/5'
|
|
132
|
+
: ''}"
|
|
130
133
|
onclick={() => navigate(group.canvasIndex)}
|
|
131
134
|
>
|
|
132
135
|
<div
|
|
@@ -4,10 +4,10 @@ var nt = (s, e, t) => Mf(s, typeof e != "symbol" ? e + "" : e, t);
|
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as d from "svelte/internal/client";
|
|
6
6
|
import { getContext as Rf, onMount as If, onDestroy as Cf } from "svelte";
|
|
7
|
-
import { m as xl, g as as, l as Pf, s as Df, X as bl, c as Lf, V as Of } from "../X-
|
|
7
|
+
import { m as xl, g as as, l as Pf, s as Df, X as bl, c as Lf, V as Of } from "../X-Hy7z8RKI.js";
|
|
8
8
|
import Hs from "openseadragon";
|
|
9
|
-
import { A as Bf } from "../ArrowCounterClockwise-
|
|
10
|
-
import { q as Nf, h as Ff, c as kf, j as Uf, k as $f, t as Gf, u as Hf, v as Vf, r as Xf, s as zf, m as jf, i as Yf, g as Wf, a as Zf, n as qf, f as Kf, e as Jf, b as Qf, d as ep, o as tp, l as sp, p as ip } from "../annotation_tool_point-
|
|
9
|
+
import { A as Bf } from "../ArrowCounterClockwise-C2bPi1fL.js";
|
|
10
|
+
import { q as Nf, h as Ff, c as kf, j as Uf, k as $f, t as Gf, u as Hf, v as Vf, r as Xf, s as zf, m as jf, i as Yf, g as Wf, a as Zf, n as qf, f as Kf, e as Jf, b as Qf, d as ep, o as tp, l as sp, p as ip } from "../annotation_tool_point-CVRtOCN5.js";
|
|
11
11
|
import "manifesto.js";
|
|
12
12
|
var np = Object.defineProperty, rp = (s, e, t) => e in s ? np(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, El = (s, e, t) => rp(s, typeof e != "symbol" ? e + "" : e, t), wl = Object.prototype.hasOwnProperty;
|
|
13
13
|
function Vs(s, e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
3
|
import { getContext as s0 } from "svelte";
|
|
4
|
-
import { l as l0, s as i0, X as n0, c as o0, V as c0, g as v0 } from "../X-
|
|
5
|
-
import { A as d0 } from "../ArrowCounterClockwise-
|
|
6
|
-
import { i as _0, a as g0, b as f0, g as u0, c as h0, e as m0, d as p0, f as b0 } from "../image_filters_reset-
|
|
4
|
+
import { l as l0, s as i0, X as n0, c as o0, V as c0, g as v0 } from "../X-Hy7z8RKI.js";
|
|
5
|
+
import { A as d0 } from "../ArrowCounterClockwise-C2bPi1fL.js";
|
|
6
|
+
import { i as _0, a as g0, b as f0, g as u0, c as h0, e as m0, d as p0, f as b0 } from "../image_filters_reset-BOxhPxhP.js";
|
|
7
7
|
const G = {
|
|
8
8
|
brightness: 100,
|
|
9
9
|
contrast: 100,
|
|
@@ -85,6 +85,12 @@ export declare class ViewerState {
|
|
|
85
85
|
updateConfig(newConfig: ViewerConfig): void;
|
|
86
86
|
toggleAnnotations(): void;
|
|
87
87
|
toggleThumbnailGallery(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Reference to the main viewer DOM element.
|
|
90
|
+
* Used for fullscreen toggling.
|
|
91
|
+
*/
|
|
92
|
+
private viewerElement;
|
|
93
|
+
setViewerElement(element: HTMLElement): void;
|
|
88
94
|
toggleFullScreen(): void;
|
|
89
95
|
toggleMetadataDialog(): void;
|
|
90
96
|
searchQuery: string;
|
|
@@ -212,14 +212,27 @@ export class ViewerState {
|
|
|
212
212
|
this.showThumbnailGallery = !this.showThumbnailGallery;
|
|
213
213
|
this.dispatchStateChange();
|
|
214
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Reference to the main viewer DOM element.
|
|
217
|
+
* Used for fullscreen toggling.
|
|
218
|
+
*/
|
|
219
|
+
viewerElement = null;
|
|
220
|
+
setViewerElement(element) {
|
|
221
|
+
this.viewerElement = element;
|
|
222
|
+
}
|
|
215
223
|
toggleFullScreen() {
|
|
216
224
|
if (!document.fullscreenElement) {
|
|
217
|
-
|
|
225
|
+
// Use stored reference if available, fallback to ID lookup (legacy/Svelte-only)
|
|
226
|
+
const el = this.viewerElement ||
|
|
227
|
+
document.getElementById('triiiceratops-viewer');
|
|
218
228
|
if (el) {
|
|
219
229
|
el.requestFullscreen().catch((e) => {
|
|
220
230
|
console.warn('Fullscreen request failed', e);
|
|
221
231
|
});
|
|
222
232
|
}
|
|
233
|
+
else {
|
|
234
|
+
console.warn('Cannot toggle fullscreen: Viewer element not found');
|
|
235
|
+
}
|
|
223
236
|
}
|
|
224
237
|
else {
|
|
225
238
|
document.exitFullscreen();
|
|
@@ -281,6 +294,7 @@ export class ViewerState {
|
|
|
281
294
|
}
|
|
282
295
|
if (!service) {
|
|
283
296
|
console.warn('No IIIF search service found in manifest');
|
|
297
|
+
// Ensure we stop searching if no service found
|
|
284
298
|
this.isSearching = false;
|
|
285
299
|
return;
|
|
286
300
|
}
|
|
@@ -475,9 +489,13 @@ export class ViewerState {
|
|
|
475
489
|
}
|
|
476
490
|
catch (e) {
|
|
477
491
|
console.error('Search error:', e);
|
|
492
|
+
this.isSearching = false;
|
|
478
493
|
}
|
|
479
494
|
finally {
|
|
480
|
-
|
|
495
|
+
// Only stop searching if we are NOT pending (i.e. we finished or failed, but didn't defer)
|
|
496
|
+
if (!this.pendingSearchQuery) {
|
|
497
|
+
this.isSearching = false;
|
|
498
|
+
}
|
|
481
499
|
}
|
|
482
500
|
}
|
|
483
501
|
// ==================== PLUGIN STATE ====================
|