triiiceratops 0.12.2 → 0.12.4

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.
@@ -7,13 +7,15 @@ export function tooltip(node, params) {
7
7
  tip.className =
8
8
  'fixed z-[9999] px-2 py-1 text-xs rounded shadow-sm pointer-events-none opacity-0 transition-opacity duration-150 whitespace-nowrap max-w-xs';
9
9
  tip.textContent = params.content;
10
- const computedStyle = getComputedStyle(node);
11
- const bgColor = computedStyle.getPropertyValue('--color-base-200').trim() ||
12
- computedStyle.getPropertyValue('--color-neutral').trim() ||
13
- 'oklch(0.95 0 0)';
14
- const textColor = computedStyle.getPropertyValue('--color-base-content').trim() ||
15
- computedStyle.getPropertyValue('--color-neutral-content').trim() ||
16
- 'oklch(0.2 0 0)';
10
+ const tempEl = document.createElement('div');
11
+ tempEl.className = 'bg-base-200 text-base-content';
12
+ tempEl.style.position = 'absolute';
13
+ tempEl.style.visibility = 'hidden';
14
+ node.appendChild(tempEl);
15
+ const computedStyle = getComputedStyle(tempEl);
16
+ const bgColor = computedStyle.backgroundColor;
17
+ const textColor = computedStyle.color;
18
+ node.removeChild(tempEl);
17
19
  tip.style.backgroundColor = bgColor;
18
20
  tip.style.color = textColor;
19
21
  document.body.appendChild(tip);
@@ -1,4 +1,4 @@
1
- import { a as t } from "./X-Bn7S7vUL.js";
1
+ import { a as t } from "./X-BsrpnzCK.js";
2
2
  const a = (
3
3
  /** @type {(inputs: {}) => LocalizedString} */
4
4
  () => (
@@ -1,4 +1,4 @@
1
- import { a as t } from "./X-Bn7S7vUL.js";
1
+ import { a as t } from "./X-BsrpnzCK.js";
2
2
  const s = (
3
3
  /** @type {(inputs: {}) => LocalizedString} */
4
4
  () => (
@@ -4,9 +4,9 @@ var K = (V, t, a) => Me(V, typeof t != "symbol" ? t + "" : t, a);
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as e from "svelte/internal/client";
6
6
  import { getContext as He, untrack as Ce, onMount as Le, onDestroy as Se } from "svelte";
7
- import { m as _e, g as ne, l as ze, s as Ie, X as we, c as Te, V as De } from "../X-Bn7S7vUL.js";
8
- import { A as Ee } from "../ArrowCounterClockwise-CM9mGGcp.js";
9
- import { q as Ue, h as je, c as Re, j as Pe, k as Oe, t as Be, u as Fe, v as qe, r as We, s as Ke, m as Ne, i as Je, g as Xe, a as Ye, n as Ge, f as Qe, e as $e, b as et, d as tt, o as at, l as ot, p as nt } from "../annotation_tool_point-LoRp_nrI.js";
7
+ import { m as _e, g as ne, l as ze, s as Ie, X as we, c as Te, V as De } from "../X-BsrpnzCK.js";
8
+ import { A as Ee } from "../ArrowCounterClockwise-Bcse6skq.js";
9
+ import { q as Ue, h as je, c as Re, j as Pe, k as Oe, t as Be, u as Fe, v as qe, r as We, s as Ke, m as Ne, i as Je, g as Xe, a as Ye, n as Ge, f as Qe, e as $e, b as et, d as tt, o as at, l as ot, p as nt } from "../annotation_tool_point-Do_1lOD_.js";
10
10
  class ue {
11
11
  constructor() {
12
12
  K(this, "id", "localStorage");
@@ -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-Bn7S7vUL.js";
5
- import { A as d0 } from "../ArrowCounterClockwise-CM9mGGcp.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-CmWuQiOc.js";
4
+ import { l as l0, s as i0, X as n0, c as o0, V as c0, g as v0 } from "../X-BsrpnzCK.js";
5
+ import { A as d0 } from "../ArrowCounterClockwise-Bcse6skq.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-Dw23NgOZ.js";
7
7
  const G = {
8
8
  brightness: 100,
9
9
  contrast: 100,
@@ -43,6 +43,7 @@ export declare class ViewerState {
43
43
  get showCanvasNav(): boolean;
44
44
  get showZoomControls(): boolean;
45
45
  get galleryFixedHeight(): number;
46
+ private _viewingMode;
46
47
  get viewingMode(): "individuals" | "paged";
47
48
  set viewingMode(value: 'individuals' | 'paged');
48
49
  pagedOffset: number;
@@ -27,10 +27,15 @@ export class ViewerState {
27
27
  get galleryFixedHeight() {
28
28
  return this.config.gallery?.fixedHeight ?? 120;
29
29
  }
30
+ // Dedicated reactive state for viewingMode to ensure proper reactivity
31
+ // when accessed in $derived expressions (tileSources computation)
32
+ _viewingMode = $state('individuals');
30
33
  get viewingMode() {
31
- return this.config.viewingMode ?? 'individuals';
34
+ return this._viewingMode;
32
35
  }
33
36
  set viewingMode(value) {
37
+ this._viewingMode = value;
38
+ // Also sync to config for consistency
34
39
  this.config.viewingMode = value;
35
40
  }
36
41
  // Pairing offset for paged mode: 0 = default (pairs start at 1+2), 1 = shifted (page 1 alone, pairs start at 2+3)