triiiceratops 0.12.4 → 0.12.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/dist/{ArrowCounterClockwise-Bcse6skq.js → ArrowCounterClockwise-BkrSndVO.js} +1 -1
- package/dist/Check-CB_Zdp64.js +423 -0
- package/dist/{X-BsrpnzCK.js → X-B3XldraD.js} +3 -3
- package/dist/components/DemoHeader.svelte +5 -548
- package/dist/components/SettingsMenu.svelte +523 -0
- package/dist/components/SettingsMenu.svelte.d.ts +6 -0
- package/dist/components/Toolbar.svelte +13 -2
- package/dist/components/TriiiceratopsViewer.svelte +37 -11
- package/dist/{image_filters_reset-Dw23NgOZ.js → image_filters_reset-jtpS22ff.js} +1 -1
- package/dist/paraglide/messages/_index.d.ts +4 -0
- package/dist/paraglide/messages/_index.js +4 -0
- package/dist/paraglide/messages/demo_title.d.ts +4 -0
- package/dist/paraglide/messages/demo_title.js +34 -0
- package/dist/paraglide/messages/settings_paged_view_offset.d.ts +4 -0
- package/dist/paraglide/messages/settings_paged_view_offset.js +33 -0
- package/dist/paraglide/messages/settings_thumbnail_height.d.ts +4 -0
- package/dist/paraglide/messages/settings_thumbnail_height.js +34 -0
- package/dist/paraglide/messages/settings_toggle_show_viewing_mode.js +3 -2
- package/dist/paraglide/messages/settings_view_configuration.d.ts +4 -0
- package/dist/paraglide/messages/settings_view_configuration.js +34 -0
- package/dist/plugins/annotation-editor.js +493 -623
- package/dist/plugins/image-manipulation.js +3 -3
- package/dist/state/viewer.svelte.js +5 -1
- package/dist/triiiceratops-bundle.js +1787 -1711
- package/dist/triiiceratops-element.iife.js +15 -15
- package/dist/triiiceratops.css +1 -1
- package/dist/types/config.d.ts +5 -0
- package/package.json +1 -1
- package/dist/annotation_tool_point-Do_1lOD_.js +0 -290
|
@@ -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-B3XldraD.js";
|
|
5
|
+
import { A as d0 } from "../ArrowCounterClockwise-BkrSndVO.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-jtpS22ff.js";
|
|
7
7
|
const G = {
|
|
8
8
|
brightness: 100,
|
|
9
9
|
contrast: 100,
|
|
@@ -39,7 +39,7 @@ export class ViewerState {
|
|
|
39
39
|
this.config.viewingMode = value;
|
|
40
40
|
}
|
|
41
41
|
// Pairing offset for paged mode: 0 = default (pairs start at 1+2), 1 = shifted (page 1 alone, pairs start at 2+3)
|
|
42
|
-
pagedOffset = $state(
|
|
42
|
+
pagedOffset = $state(1);
|
|
43
43
|
// Gallery State (Lifted for persistence during re-docking)
|
|
44
44
|
galleryPosition = $state({ x: 20, y: 100 });
|
|
45
45
|
gallerySize = $state({ width: 300, height: 400 });
|
|
@@ -251,6 +251,9 @@ export class ViewerState {
|
|
|
251
251
|
// direct assignment works because of the setter
|
|
252
252
|
this.viewingMode = newConfig.viewingMode;
|
|
253
253
|
}
|
|
254
|
+
if (newConfig.pagedViewOffset !== undefined) {
|
|
255
|
+
this.pagedOffset = newConfig.pagedViewOffset ? 1 : 0;
|
|
256
|
+
}
|
|
254
257
|
if (newConfig.gallery) {
|
|
255
258
|
if (newConfig.gallery.open !== undefined) {
|
|
256
259
|
this.showThumbnailGallery = newConfig.gallery.open;
|
|
@@ -356,6 +359,7 @@ export class ViewerState {
|
|
|
356
359
|
}
|
|
357
360
|
togglePagedOffset() {
|
|
358
361
|
this.pagedOffset = this.pagedOffset === 0 ? 1 : 0;
|
|
362
|
+
this.config.pagedViewOffset = this.pagedOffset === 1;
|
|
359
363
|
// Adjust current canvas position if needed
|
|
360
364
|
const singlePages = this.pagedOffset;
|
|
361
365
|
if (this.currentCanvasIndex >= singlePages) {
|