@annotorious/svelte 3.0.0-rc.30 → 3.0.0-rc.32

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.
@@ -1 +1 @@
1
- export { SvelteComponentTyped as default } from 'svelte';
1
+ export { SvelteComponent as default } from 'svelte';
@@ -1,5 +1,5 @@
1
1
  import { default as c } from "./annotorious-svelte.es2.js";
2
- import { Origin as g, PointerSelectAction as d, createAnonymousGuest as u, createBody as i, defaultColorProvider as l } from "@annotorious/core";
2
+ import { Origin as g, UserSelectAction as d, createAnonymousGuest as u, createBody as l, defaultColorProvider as i } from "@annotorious/core";
3
3
  import { createImageAnnotator as e, ShapeType as o, W3CImageFormat as a } from "@annotorious/annotorious";
4
4
  import { default as I } from "./annotorious-svelte.es3.js";
5
5
  import { default as x } from "./annotorious-svelte.es4.js";
@@ -9,12 +9,12 @@ export {
9
9
  I as OpenSeadragonAnnotator,
10
10
  x as OpenSeadragonPopup,
11
11
  g as Origin,
12
- d as PointerSelectAction,
13
12
  n as ShapeType,
13
+ d as UserSelectAction,
14
14
  p as W3CImageFormat,
15
15
  u as createAnonymousGuest,
16
- i as createBody,
16
+ l as createBody,
17
17
  r as createImageAnnotator,
18
- l as defaultColorProvider
18
+ i as defaultColorProvider
19
19
  };
20
20
  //# sourceMappingURL=annotorious-svelte.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-svelte.es.js","sources":["../src/index.ts"],"sourcesContent":["export * from './osd';\n\nexport { default as MouseOverTooltip } from './MouseOverTooltip.svelte';\n\n// Essential re-exports from @annotorious/core\nexport type {\n Annotation,\n AnnotationBody,\n AnnotationTarget,\n Annotator,\n AnnotatorState,\n Appearance,\n AppearanceProvider,\n Color,\n DrawingStyle,\n Filter,\n FormatAdapter,\n HoverState,\n LifecycleEvents,\n ParseResult,\n PresentUser,\n Selection,\n SelectionState,\n Store,\n StoreChangeEvent,\n StoreObserver,\n SvelteAnnotator,\n SvelteAnnotatorState,\n User,\n W3CAnnotation,\n W3CAnnotationBody,\n W3CAnnotationTarget\n} from '@annotorious/core';\n\nimport {\n createAnonymousGuest as _createAnonymousGuest, \n createBody as _createBody,\n defaultColorProvider as _defaultColorProvider,\n Origin as _Origin,\n PointerSelectAction as _PointerSelectAction\n} from '@annotorious/core';\n\nexport { _createAnonymousGuest as createAnonymousGuest };\nexport { _createBody as createBody };\nexport { _defaultColorProvider as defaultColorProvider };\nexport { _Origin as Origin };\nexport { _PointerSelectAction as PointerSelectAction };\n\n// Essential re-exports from @annotorious/annotorious \nexport type {\n AnnotoriousOpts,\n DrawingMode,\n DrawingTool,\n ImageAnnotator as AnnotoriousImageAnnotator,\n ImageAnnotation,\n ImageAnnotator,\n ImageAnnotatorState,\n Polygon,\n PolygonGeometry,\n Rectangle,\n RectangleGeometry,\n Shape\n} from '@annotorious/annotorious';\n\nimport { \n createImageAnnotator as _createImageAnnotator,\n ShapeType as _ShapeType,\n W3CImageFormat as _W3CImageFormat\n} from '@annotorious/annotorious';\n\nexport const createImageAnnotator = _createImageAnnotator;\nexport const ShapeType = _ShapeType;\nexport const W3CImageFormat = _W3CImageFormat;\n\n// Essential re-exports from @annotorious/openseadragon \nexport type {\n OpenSeadragonAnnotator as AnnotoriousOpenSeadragonAnnotator\n} from '@annotorious/openseadragon';\n\nexport type { Viewer } from 'openseadragon';\n"],"names":["createImageAnnotator","_createImageAnnotator","ShapeType","_ShapeType","W3CImageFormat","_W3CImageFormat"],"mappings":";;;;;AAsEO,MAAMA,IAAuBC,GACvBC,IAAYC,GACZC,IAAiBC;"}
1
+ {"version":3,"file":"annotorious-svelte.es.js","sources":["../src/index.ts"],"sourcesContent":["export * from './osd';\n\nexport { default as MouseOverTooltip } from './MouseOverTooltip.svelte';\n\n// Essential re-exports from @annotorious/core\nexport type {\n Annotation,\n AnnotationBody,\n AnnotationTarget,\n Annotator,\n AnnotatorState,\n Appearance,\n AppearanceProvider,\n Color,\n DrawingStyle,\n Filter,\n FormatAdapter,\n HoverState,\n LifecycleEvents,\n ParseResult,\n PresentUser,\n Selection,\n SelectionState,\n Store,\n StoreChangeEvent,\n StoreObserver,\n SvelteAnnotator,\n SvelteAnnotatorState,\n User,\n W3CAnnotation,\n W3CAnnotationBody,\n W3CAnnotationTarget\n} from '@annotorious/core';\n\nimport {\n createAnonymousGuest as _createAnonymousGuest, \n createBody as _createBody,\n defaultColorProvider as _defaultColorProvider,\n Origin as _Origin,\n UserSelectAction as _UserSelectAction\n} from '@annotorious/core';\n\nexport {\n _createAnonymousGuest as createAnonymousGuest,\n _createBody as createBody,\n _defaultColorProvider as defaultColorProvider,\n _Origin as Origin,\n _UserSelectAction as UserSelectAction\n}\n\n// Essential re-exports from @annotorious/annotorious \nexport type {\n AnnotoriousOpts,\n DrawingMode,\n DrawingTool,\n ImageAnnotator as AnnotoriousImageAnnotator,\n ImageAnnotation,\n ImageAnnotator,\n ImageAnnotatorState,\n Polygon,\n PolygonGeometry,\n Rectangle,\n RectangleGeometry,\n Shape\n} from '@annotorious/annotorious';\n\nimport { \n createImageAnnotator as _createImageAnnotator,\n ShapeType as _ShapeType,\n W3CImageFormat as _W3CImageFormat\n} from '@annotorious/annotorious';\n\nexport const createImageAnnotator = _createImageAnnotator;\nexport const ShapeType = _ShapeType;\nexport const W3CImageFormat = _W3CImageFormat;\n\n// Essential re-exports from @annotorious/openseadragon \nexport type {\n OpenSeadragonAnnotator as AnnotoriousOpenSeadragonAnnotator\n} from '@annotorious/openseadragon';\n\nexport type { Viewer } from 'openseadragon';\n"],"names":["createImageAnnotator","_createImageAnnotator","ShapeType","_ShapeType","W3CImageFormat","_W3CImageFormat"],"mappings":";;;;;AAwEO,MAAMA,IAAuBC,GACvBC,IAAYC,GACZC,IAAiBC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-svelte.es11.js","sources":["../../../node_modules/svelte/src/shared/version.js"],"sourcesContent":["// generated during release, do not modify\n\n/**\n * The current version, as set in package.json.\n *\n * https://svelte.dev/docs/svelte-compiler#svelte-version\n * @type {string}\n */\nexport const VERSION = '4.2.18';\nexport const PUBLIC_VERSION = '4';\n"],"names":["PUBLIC_VERSION"],"mappings":"AASY,MAACA,IAAiB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"annotorious-svelte.es11.js","sources":["../../../node_modules/svelte/src/shared/version.js"],"sourcesContent":["// generated during release, do not modify\n\n/**\n * The current version, as set in package.json.\n *\n * https://svelte.dev/docs/svelte-compiler#svelte-version\n * @type {string}\n */\nexport const VERSION = '4.2.19';\nexport const PUBLIC_VERSION = '4';\n"],"names":["PUBLIC_VERSION"],"mappings":"AASY,MAACA,IAAiB;","x_google_ignoreList":[0]}
@@ -1,58 +1,106 @@
1
- import { run_all as i } from "./annotorious-svelte.es5.js";
2
- import { set_current_component as a, current_component as u } from "./annotorious-svelte.es8.js";
3
- const r = [], h = [];
4
- let c = [];
5
- const d = [], p = /* @__PURE__ */ Promise.resolve();
6
- let f = !1;
7
- function w() {
8
- f || (f = !0, p.then(m));
9
- }
10
- function _(e) {
11
- c.push(e);
1
+ var G = { dragStart: !0 }, oe = (t, s, i) => Math.min(Math.max(t, s), i), J = (t) => typeof t == "string", ue = ([t, s], i, c) => {
2
+ const u = (w, f) => f === 0 ? 0 : Math.ceil(w / f) * f;
3
+ return [u(i, t), u(c, s)];
4
+ }, ie = (t, s) => t.some((i) => s.some((c) => i.contains(c)));
5
+ function K(t, s) {
6
+ if (t === void 0) return;
7
+ if (O(t)) return t.getBoundingClientRect();
8
+ if (typeof t == "object") {
9
+ const { top: c = 0, left: u = 0, right: w = 0, bottom: f = 0 } = t;
10
+ return { top: c, right: window.innerWidth - w, bottom: window.innerHeight - f, left: u };
11
+ }
12
+ if (t === "parent") return s.parentNode.getBoundingClientRect();
13
+ const i = document.querySelector(t);
14
+ if (i === null) throw new Error("The selector provided for bound doesn't exists in the document.");
15
+ return i.getBoundingClientRect();
12
16
  }
13
- const s = /* @__PURE__ */ new Set();
14
- let l = 0;
15
- function m() {
16
- if (l !== 0)
17
- return;
18
- const e = u;
19
- do {
20
- try {
21
- for (; l < r.length; ) {
22
- const t = r[l];
23
- l++, a(t), g(t.$$);
17
+ var L = (t, s, i) => t.style.setProperty(s, i), O = (t) => t instanceof HTMLElement, fe = (t, s = {}) => {
18
+ let i, c, { bounds: u, axis: w = "both", gpuAcceleration: f = !0, legacyTranslate: Q = !0, transform: T, applyUserSelectHack: X = !0, disabled: V = !1, ignoreMultitouch: Y = !1, recomputeBounds: x = G, grid: q, position: p, cancel: N, handle: D, defaultClass: M = "neodrag", defaultClassDragging: P = "neodrag-dragging", defaultClassDragged: S = "neodrag-dragged", defaultPosition: ae = { x: 0, y: 0 }, onDragStart: se, onDrag: le, onDragEnd: de } = s, B = !1, y = 0, b = 0, A = 0, C = 0, k = 0, z = 0, { x: $, y: R } = p ? { x: (p == null ? void 0 : p.x) ?? 0, y: (p == null ? void 0 : p.y) ?? 0 } : ae;
19
+ W($, R);
20
+ let g, v, E, I, Z, _ = "", ce = !!p;
21
+ x = { ...G, ...x };
22
+ let H = /* @__PURE__ */ new Set();
23
+ const U = document.body.style, m = t.classList;
24
+ function W(e = y, r = b) {
25
+ if (!T) {
26
+ if (Q) {
27
+ let a = `${+e}px, ${+r}px`;
28
+ return L(t, "transform", f ? `translate3d(${a}, 0)` : `translate(${a})`);
24
29
  }
25
- } catch (t) {
26
- throw r.length = 0, l = 0, t;
30
+ return L(t, "translate", `${+e}px ${+r}px ${f ? "1px" : ""}`);
31
+ }
32
+ const o = T({ offsetX: e, offsetY: r, rootNode: t });
33
+ J(o) && L(t, "transform", o);
34
+ }
35
+ const j = (e, r) => {
36
+ const o = { offsetX: y, offsetY: b, rootNode: t, currentNode: Z };
37
+ t.dispatchEvent(new CustomEvent(e, { detail: o })), r == null || r(o);
38
+ }, F = addEventListener;
39
+ F("pointerdown", te, !1), F("pointerup", ne, !1), F("pointermove", re, !1), L(t, "touch-action", "none");
40
+ const ee = () => {
41
+ let e = t.offsetWidth / v.width;
42
+ return isNaN(e) && (e = 1), e;
43
+ };
44
+ function te(e) {
45
+ if (V || e.button === 2) return;
46
+ if (H.add(e.pointerId), Y && H.size > 1) return e.preventDefault();
47
+ if (x.dragStart && (g = K(u, t)), J(D) && J(N) && D === N) throw new Error("`handle` selector can't be same as `cancel` selector");
48
+ if (m.add(M), E = function(n, d) {
49
+ if (!n) return [d];
50
+ if (O(n)) return [n];
51
+ if (Array.isArray(n)) return n;
52
+ const h = d.querySelectorAll(n);
53
+ if (h === null) throw new Error("Selector passed for `handle` option should be child of the element on which the action is applied");
54
+ return Array.from(h.values());
55
+ }(D, t), I = function(n, d) {
56
+ if (!n) return [];
57
+ if (O(n)) return [n];
58
+ if (Array.isArray(n)) return n;
59
+ const h = d.querySelectorAll(n);
60
+ if (h === null) throw new Error("Selector passed for `cancel` option should be child of the element on which the action is applied");
61
+ return Array.from(h.values());
62
+ }(N, t), i = /(both|x)/.test(w), c = /(both|y)/.test(w), ie(I, E)) throw new Error("Element being dragged can't be a child of the element on which `cancel` is applied");
63
+ const r = e.composedPath()[0];
64
+ if (!E.some((n) => {
65
+ var d;
66
+ return n.contains(r) || ((d = n.shadowRoot) == null ? void 0 : d.contains(r));
67
+ }) || ie(I, [r])) return;
68
+ Z = E.length === 1 ? t : E.find((n) => n.contains(r)), B = !0, v = t.getBoundingClientRect(), X && (_ = U.userSelect, U.userSelect = "none"), j("neodrag:start", se);
69
+ const { clientX: o, clientY: a } = e, l = ee();
70
+ i && (A = o - $ / l), c && (C = a - R / l), g && (k = o - v.left, z = a - v.top);
71
+ }
72
+ function ne(e) {
73
+ H.delete(e.pointerId), B && (x.dragEnd && (g = K(u, t)), m.remove(P), m.add(S), X && (U.userSelect = _), j("neodrag:end", de), i && (A = y), c && (C = b), B = !1);
74
+ }
75
+ function re(e) {
76
+ if (!B || Y && H.size > 1) return;
77
+ x.drag && (g = K(u, t)), m.add(P), e.preventDefault(), v = t.getBoundingClientRect();
78
+ let r = e.clientX, o = e.clientY;
79
+ const a = ee();
80
+ if (g) {
81
+ const l = { left: g.left + k, top: g.top + z, right: g.right + k - v.width, bottom: g.bottom + z - v.height };
82
+ r = oe(r, l.left, l.right), o = oe(o, l.top, l.bottom);
27
83
  }
28
- for (a(null), r.length = 0, l = 0; h.length; ) h.pop()();
29
- for (let t = 0; t < c.length; t += 1) {
30
- const n = c[t];
31
- s.has(n) || (s.add(n), n());
84
+ if (Array.isArray(q)) {
85
+ let [l, n] = q;
86
+ if (isNaN(+l) || l < 0) throw new Error("1st argument of `grid` must be a valid positive number");
87
+ if (isNaN(+n) || n < 0) throw new Error("2nd argument of `grid` must be a valid positive number");
88
+ let d = r - A, h = o - C;
89
+ [d, h] = ue([l / a, n / a], d, h), r = A + d, o = C + h;
32
90
  }
33
- c.length = 0;
34
- } while (r.length);
35
- for (; d.length; )
36
- d.pop()();
37
- f = !1, s.clear(), a(e);
38
- }
39
- function g(e) {
40
- if (e.fragment !== null) {
41
- e.update(), i(e.before_update);
42
- const t = e.dirty;
43
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_);
91
+ i && (y = Math.round((r - A) * a)), c && (b = Math.round((o - C) * a)), $ = y, R = b, j("neodrag", le), W();
44
92
  }
45
- }
46
- function y(e) {
47
- const t = [], n = [];
48
- c.forEach((o) => e.indexOf(o) === -1 ? t.push(o) : n.push(o)), n.forEach((o) => o()), c = t;
49
- }
93
+ return { destroy: () => {
94
+ const e = removeEventListener;
95
+ e("pointerdown", te, !1), e("pointerup", ne, !1), e("pointermove", re, !1);
96
+ }, update: (e) => {
97
+ var o, a;
98
+ w = e.axis || "both", V = e.disabled ?? !1, Y = e.ignoreMultitouch ?? !1, D = e.handle, u = e.bounds, x = e.recomputeBounds ?? G, N = e.cancel, X = e.applyUserSelectHack ?? !0, q = e.grid, f = e.gpuAcceleration ?? !0, Q = e.legacyTranslate ?? !0, T = e.transform;
99
+ const r = m.contains(S);
100
+ m.remove(M, S), M = e.defaultClass ?? "neodrag", P = e.defaultClassDragging ?? "neodrag-dragging", S = e.defaultClassDragged ?? "neodrag-dragged", m.add(M), r && m.add(S), ce && ($ = y = ((o = e.position) == null ? void 0 : o.x) ?? y, R = b = ((a = e.position) == null ? void 0 : a.y) ?? b, W());
101
+ } };
102
+ };
50
103
  export {
51
- _ as add_render_callback,
52
- h as binding_callbacks,
53
- r as dirty_components,
54
- m as flush,
55
- y as flush_render_callbacks,
56
- w as schedule_update
104
+ fe as draggable
57
105
  };
58
106
  //# sourceMappingURL=annotorious-svelte.es12.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotorious-svelte.es12.js","sources":["../../../node_modules/svelte/src/runtime/internal/scheduler.js"],"sourcesContent":["import { run_all } from './utils.js';\nimport { current_component, set_current_component } from './lifecycle.js';\n\nexport const dirty_components = [];\nexport const intros = { enabled: false };\nexport const binding_callbacks = [];\n\nlet render_callbacks = [];\n\nconst flush_callbacks = [];\n\nconst resolved_promise = /* @__PURE__ */ Promise.resolve();\n\nlet update_scheduled = false;\n\n/** @returns {void} */\nexport function schedule_update() {\n\tif (!update_scheduled) {\n\t\tupdate_scheduled = true;\n\t\tresolved_promise.then(flush);\n\t}\n}\n\n/** @returns {Promise<void>} */\nexport function tick() {\n\tschedule_update();\n\treturn resolved_promise;\n}\n\n/** @returns {void} */\nexport function add_render_callback(fn) {\n\trender_callbacks.push(fn);\n}\n\n/** @returns {void} */\nexport function add_flush_callback(fn) {\n\tflush_callbacks.push(fn);\n}\n\n// flush() calls callbacks in this order:\n// 1. All beforeUpdate callbacks, in order: parents before children\n// 2. All bind:this callbacks, in reverse order: children before parents.\n// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT\n// for afterUpdates called during the initial onMount, which are called in\n// reverse order: children before parents.\n// Since callbacks might update component values, which could trigger another\n// call to flush(), the following steps guard against this:\n// 1. During beforeUpdate, any updated components will be added to the\n// dirty_components array and will cause a reentrant call to flush(). Because\n// the flush index is kept outside the function, the reentrant call will pick\n// up where the earlier call left off and go through all dirty components. The\n// current_component value is saved and restored so that the reentrant call will\n// not interfere with the \"parent\" flush() call.\n// 2. bind:this callbacks cannot trigger new flush() calls.\n// 3. During afterUpdate, any updated components will NOT have their afterUpdate\n// callback called a second time; the seen_callbacks set, outside the flush()\n// function, guarantees this behavior.\nconst seen_callbacks = new Set();\n\nlet flushidx = 0; // Do *not* move this inside the flush() function\n\n/** @returns {void} */\nexport function flush() {\n\t// Do not reenter flush while dirty components are updated, as this can\n\t// result in an infinite loop. Instead, let the inner flush handle it.\n\t// Reentrancy is ok afterwards for bindings etc.\n\tif (flushidx !== 0) {\n\t\treturn;\n\t}\n\tconst saved_component = current_component;\n\tdo {\n\t\t// first, call beforeUpdate functions\n\t\t// and update components\n\t\ttry {\n\t\t\twhile (flushidx < dirty_components.length) {\n\t\t\t\tconst component = dirty_components[flushidx];\n\t\t\t\tflushidx++;\n\t\t\t\tset_current_component(component);\n\t\t\t\tupdate(component.$$);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t// reset dirty state to not end up in a deadlocked state and then rethrow\n\t\t\tdirty_components.length = 0;\n\t\t\tflushidx = 0;\n\t\t\tthrow e;\n\t\t}\n\t\tset_current_component(null);\n\t\tdirty_components.length = 0;\n\t\tflushidx = 0;\n\t\twhile (binding_callbacks.length) binding_callbacks.pop()();\n\t\t// then, once components are updated, call\n\t\t// afterUpdate functions. This may cause\n\t\t// subsequent updates...\n\t\tfor (let i = 0; i < render_callbacks.length; i += 1) {\n\t\t\tconst callback = render_callbacks[i];\n\t\t\tif (!seen_callbacks.has(callback)) {\n\t\t\t\t// ...so guard against infinite loops\n\t\t\t\tseen_callbacks.add(callback);\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t\trender_callbacks.length = 0;\n\t} while (dirty_components.length);\n\twhile (flush_callbacks.length) {\n\t\tflush_callbacks.pop()();\n\t}\n\tupdate_scheduled = false;\n\tseen_callbacks.clear();\n\tset_current_component(saved_component);\n}\n\n/** @returns {void} */\nfunction update($$) {\n\tif ($$.fragment !== null) {\n\t\t$$.update();\n\t\trun_all($$.before_update);\n\t\tconst dirty = $$.dirty;\n\t\t$$.dirty = [-1];\n\t\t$$.fragment && $$.fragment.p($$.ctx, dirty);\n\t\t$$.after_update.forEach(add_render_callback);\n\t}\n}\n\n/**\n * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.\n * @param {Function[]} fns\n * @returns {void}\n */\nexport function flush_render_callbacks(fns) {\n\tconst filtered = [];\n\tconst targets = [];\n\trender_callbacks.forEach((c) => (fns.indexOf(c) === -1 ? filtered.push(c) : targets.push(c)));\n\ttargets.forEach((c) => c());\n\trender_callbacks = filtered;\n}\n"],"names":["dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","update_scheduled","schedule_update","flush","add_render_callback","fn","seen_callbacks","flushidx","saved_component","current_component","component","set_current_component","update","e","i","callback","$$","run_all","dirty","flush_render_callbacks","fns","filtered","targets","c"],"mappings":";;AAGY,MAACA,IAAmB,CAAG,GAEtBC,IAAoB,CAAG;AAEpC,IAAIC,IAAmB,CAAA;AAEvB,MAAMC,IAAkB,CAAA,GAElBC,IAAmC,wBAAQ;AAEjD,IAAIC,IAAmB;AAGhB,SAASC,IAAkB;AACjC,EAAKD,MACJA,IAAmB,IACnBD,EAAiB,KAAKG,CAAK;AAE7B;AASO,SAASC,EAAoBC,GAAI;AACvC,EAAAP,EAAiB,KAAKO,CAAE;AACzB;AAyBA,MAAMC,IAAiB,oBAAI;AAE3B,IAAIC,IAAW;AAGR,SAASJ,IAAQ;AAIvB,MAAII,MAAa;AAChB;AAED,QAAMC,IAAkBC;AACxB,KAAG;AAGF,QAAI;AACH,aAAOF,IAAWX,EAAiB,UAAQ;AAC1C,cAAMc,IAAYd,EAAiBW,CAAQ;AAC3C,QAAAA,KACAI,EAAsBD,CAAS,GAC/BE,EAAOF,EAAU,EAAE;AAAA,MACnB;AAAA,IACD,SAAQG,GAAG;AAEX,YAAAjB,EAAiB,SAAS,GAC1BW,IAAW,GACLM;AAAA,IACN;AAID,SAHAF,EAAsB,IAAI,GAC1Bf,EAAiB,SAAS,GAC1BW,IAAW,GACJV,EAAkB,SAAQ,CAAAA,EAAkB,IAAK,EAAA;AAIxD,aAASiB,IAAI,GAAGA,IAAIhB,EAAiB,QAAQgB,KAAK,GAAG;AACpD,YAAMC,IAAWjB,EAAiBgB,CAAC;AACnC,MAAKR,EAAe,IAAIS,CAAQ,MAE/BT,EAAe,IAAIS,CAAQ,GAC3BA;IAED;AACD,IAAAjB,EAAiB,SAAS;AAAA,EAC5B,SAAUF,EAAiB;AAC1B,SAAOG,EAAgB;AACtB,IAAAA,EAAgB,IAAG;AAEpB,EAAAE,IAAmB,IACnBK,EAAe,MAAK,GACpBK,EAAsBH,CAAe;AACtC;AAGA,SAASI,EAAOI,GAAI;AACnB,MAAIA,EAAG,aAAa,MAAM;AACzB,IAAAA,EAAG,OAAM,GACTC,EAAQD,EAAG,aAAa;AACxB,UAAME,IAAQF,EAAG;AACjB,IAAAA,EAAG,QAAQ,CAAC,EAAE,GACdA,EAAG,YAAYA,EAAG,SAAS,EAAEA,EAAG,KAAKE,CAAK,GAC1CF,EAAG,aAAa,QAAQZ,CAAmB;AAAA,EAC3C;AACF;AAOO,SAASe,EAAuBC,GAAK;AAC3C,QAAMC,IAAW,CAAA,GACXC,IAAU,CAAA;AAChB,EAAAxB,EAAiB,QAAQ,CAACyB,MAAOH,EAAI,QAAQG,CAAC,MAAM,KAAKF,EAAS,KAAKE,CAAC,IAAID,EAAQ,KAAKC,CAAC,CAAE,GAC5FD,EAAQ,QAAQ,CAACC,MAAMA,EAAG,CAAA,GAC1BzB,IAAmBuB;AACpB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"annotorious-svelte.es12.js","sources":["../../../node_modules/@neodrag/svelte/dist/min/index.js"],"sourcesContent":["var e={dragStart:!0},t=(e,t,n)=>Math.min(Math.max(e,t),n),n=e=>\"string\"==typeof e,r=([e,t],n,r)=>{const o=(e,t)=>0===t?0:Math.ceil(e/t)*t;return[o(n,e),o(r,t)]};var o=(e,t)=>e.some((e=>t.some((t=>e.contains(t)))));function i(e,t){if(void 0===e)return;if(s(e))return e.getBoundingClientRect();if(\"object\"==typeof e){const{top:t=0,left:n=0,right:r=0,bottom:o=0}=e;return{top:t,right:window.innerWidth-r,bottom:window.innerHeight-o,left:n}}if(\"parent\"===e)return t.parentNode.getBoundingClientRect();const n=document.querySelector(e);if(null===n)throw new Error(\"The selector provided for bound doesn't exists in the document.\");return n.getBoundingClientRect()}var a=(e,t,n)=>e.style.setProperty(t,n),s=e=>e instanceof HTMLElement,d=(d,l={})=>{let c,u,{bounds:f,axis:g=\"both\",gpuAcceleration:h=!0,legacyTranslate:p=!0,transform:m,applyUserSelectHack:w=!0,disabled:y=!1,ignoreMultitouch:b=!1,recomputeBounds:v=e,grid:x,position:E,cancel:S,handle:A,defaultClass:C=\"neodrag\",defaultClassDragging:N=\"neodrag-dragging\",defaultClassDragged:D=\"neodrag-dragged\",defaultPosition:M={x:0,y:0},onDragStart:B,onDrag:$,onDragEnd:R}=l,H=!1,L=0,T=0,X=0,Y=0,q=0,P=0,{x:k,y:z}=E?{x:E?.x??0,y:E?.y??0}:M;V(k,z);let I,U,W,j,F,G=\"\",J=!!E;v={...e,...v};let K=new Set;const O=document.body.style,Q=d.classList;function V(e=L,t=T){if(!m){if(p){let n=`${+e}px, ${+t}px`;return a(d,\"transform\",h?`translate3d(${n}, 0)`:`translate(${n})`)}return a(d,\"translate\",`${+e}px ${+t}px ${h?\"1px\":\"\"}`)}const r=m({offsetX:e,offsetY:t,rootNode:d});n(r)&&a(d,\"transform\",r)}const Z=(e,t)=>{const n={offsetX:L,offsetY:T,rootNode:d,currentNode:F};d.dispatchEvent(new CustomEvent(e,{detail:n})),t?.(n)};const _=addEventListener;_(\"pointerdown\",te,!1),_(\"pointerup\",ne,!1),_(\"pointermove\",re,!1),a(d,\"touch-action\",\"none\");const ee=()=>{let e=d.offsetWidth/U.width;return isNaN(e)&&(e=1),e};function te(e){if(y)return;if(2===e.button)return;if(K.add(e.pointerId),b&&K.size>1)return e.preventDefault();if(v.dragStart&&(I=i(f,d)),n(A)&&n(S)&&A===S)throw new Error(\"`handle` selector can't be same as `cancel` selector\");if(Q.add(C),W=function(e,t){if(!e)return[t];if(s(e))return[e];if(Array.isArray(e))return e;const n=t.querySelectorAll(e);if(null===n)throw new Error(\"Selector passed for `handle` option should be child of the element on which the action is applied\");return Array.from(n.values())}(A,d),j=function(e,t){if(!e)return[];if(s(e))return[e];if(Array.isArray(e))return e;const n=t.querySelectorAll(e);if(null===n)throw new Error(\"Selector passed for `cancel` option should be child of the element on which the action is applied\");return Array.from(n.values())}(S,d),c=/(both|x)/.test(g),u=/(both|y)/.test(g),o(j,W))throw new Error(\"Element being dragged can't be a child of the element on which `cancel` is applied\");const t=e.composedPath()[0];if(!W.some((e=>e.contains(t)||e.shadowRoot?.contains(t)))||o(j,[t]))return;F=1===W.length?d:W.find((e=>e.contains(t))),H=!0,U=d.getBoundingClientRect(),w&&(G=O.userSelect,O.userSelect=\"none\"),Z(\"neodrag:start\",B);const{clientX:r,clientY:a}=e,l=ee();c&&(X=r-k/l),u&&(Y=a-z/l),I&&(q=r-U.left,P=a-U.top)}function ne(e){K.delete(e.pointerId),H&&(v.dragEnd&&(I=i(f,d)),Q.remove(N),Q.add(D),w&&(O.userSelect=G),Z(\"neodrag:end\",R),c&&(X=L),u&&(Y=T),H=!1)}function re(e){if(!H||b&&K.size>1)return;v.drag&&(I=i(f,d)),Q.add(N),e.preventDefault(),U=d.getBoundingClientRect();let n=e.clientX,o=e.clientY;const a=ee();if(I){const e={left:I.left+q,top:I.top+P,right:I.right+q-U.width,bottom:I.bottom+P-U.height};n=t(n,e.left,e.right),o=t(o,e.top,e.bottom)}if(Array.isArray(x)){let[e,t]=x;if(isNaN(+e)||e<0)throw new Error(\"1st argument of `grid` must be a valid positive number\");if(isNaN(+t)||t<0)throw new Error(\"2nd argument of `grid` must be a valid positive number\");let i=n-X,s=o-Y;[i,s]=r([e/a,t/a],i,s),n=X+i,o=Y+s}c&&(L=Math.round((n-X)*a)),u&&(T=Math.round((o-Y)*a)),k=L,z=T,Z(\"neodrag\",$),V()}return{destroy:()=>{const e=removeEventListener;e(\"pointerdown\",te,!1),e(\"pointerup\",ne,!1),e(\"pointermove\",re,!1)},update:t=>{g=t.axis||\"both\",y=t.disabled??!1,b=t.ignoreMultitouch??!1,A=t.handle,f=t.bounds,v=t.recomputeBounds??e,S=t.cancel,w=t.applyUserSelectHack??!0,x=t.grid,h=t.gpuAcceleration??!0,p=t.legacyTranslate??!0,m=t.transform;const n=Q.contains(D);Q.remove(C,D),C=t.defaultClass??\"neodrag\",N=t.defaultClassDragging??\"neodrag-dragging\",D=t.defaultClassDragged??\"neodrag-dragged\",Q.add(C),n&&Q.add(D),J&&(k=L=t.position?.x??L,z=T=t.position?.y??T,V())}}};\n//!THIS IS HACK, WE WANNA IMPORT THE TYPE WHEN THE ISSUE IS FIXED LATER\nexport{d as draggable};"],"names":["e","t","n","r","o","i","s","a","d","l","c","u","f","g","h","p","m","w","y","b","v","x","E","S","A","C","N","D","M","B","$","R","H","L","T","X","Y","q","P","k","z","V","I","U","W","j","F","G","J","K","O","Q","Z","_","_a","_b"],"mappings":"AAAA,IAAIA,IAAE,EAAC,WAAU,GAAE,GAAEC,KAAE,CAACD,GAAEC,GAAEC,MAAI,KAAK,IAAI,KAAK,IAAIF,GAAEC,CAAC,GAAEC,CAAC,GAAEA,IAAE,CAAAF,MAAa,OAAOA,KAAjB,UAAmBG,KAAE,CAAC,CAACH,GAAEC,CAAC,GAAEC,GAAEC,MAAI;AAAC,QAAMC,IAAE,CAACJ,GAAEC,MAAQA,MAAJ,IAAM,IAAE,KAAK,KAAKD,IAAEC,CAAC,IAAEA;AAAE,SAAM,CAACG,EAAEF,GAAEF,CAAC,GAAEI,EAAED,GAAEF,CAAC,CAAC;AAAC,GAAMG,KAAE,CAACJ,GAAEC,MAAID,EAAE,KAAM,CAAAA,MAAGC,EAAE,KAAM,CAA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AAC,GAAE,QAAO,CAAAxC,MAAG;AAA77H,QAAAqD,GAAAC;AAA87H,IAAA1C,IAAEZ,EAAE,QAAM,QAAOiB,IAAEjB,EAAE,YAAU,IAAGkB,IAAElB,EAAE,oBAAkB,IAAGuB,IAAEvB,EAAE,QAAOW,IAAEX,EAAE,QAAOmB,IAAEnB,EAAE,mBAAiBD,GAAEuB,IAAEtB,EAAE,QAAOgB,IAAEhB,EAAE,uBAAqB,IAAGoB,IAAEpB,EAAE,MAAKa,IAAEb,EAAE,mBAAiB,IAAGc,IAAEd,EAAE,mBAAiB,IAAGe,IAAEf,EAAE;AAAU,UAAMC,IAAEiD,EAAE,SAASxB,CAAC;AAAE,IAAAwB,EAAE,OAAO1B,GAAEE,CAAC,GAAEF,IAAExB,EAAE,gBAAc,WAAUyB,IAAEzB,EAAE,wBAAsB,oBAAmB0B,IAAE1B,EAAE,uBAAqB,mBAAkBkD,EAAE,IAAI1B,CAAC,GAAEvB,KAAGiD,EAAE,IAAIxB,CAAC,GAAEqB,OAAIT,IAAEN,MAAEqB,IAAArD,EAAE,aAAF,gBAAAqD,EAAY,MAAGrB,GAAEO,IAAEN,MAAEqB,IAAAtD,EAAE,aAAF,gBAAAsD,EAAY,MAAGrB,GAAEO,EAAC;AAAA,EAAG,EAAC;AAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,58 @@
1
+ import { run_all as i } from "./annotorious-svelte.es5.js";
2
+ import { set_current_component as a, current_component as u } from "./annotorious-svelte.es8.js";
3
+ const r = [], h = [];
4
+ let c = [];
5
+ const d = [], p = /* @__PURE__ */ Promise.resolve();
6
+ let f = !1;
7
+ function w() {
8
+ f || (f = !0, p.then(m));
9
+ }
10
+ function _(e) {
11
+ c.push(e);
12
+ }
13
+ const s = /* @__PURE__ */ new Set();
14
+ let l = 0;
15
+ function m() {
16
+ if (l !== 0)
17
+ return;
18
+ const e = u;
19
+ do {
20
+ try {
21
+ for (; l < r.length; ) {
22
+ const t = r[l];
23
+ l++, a(t), g(t.$$);
24
+ }
25
+ } catch (t) {
26
+ throw r.length = 0, l = 0, t;
27
+ }
28
+ for (a(null), r.length = 0, l = 0; h.length; ) h.pop()();
29
+ for (let t = 0; t < c.length; t += 1) {
30
+ const n = c[t];
31
+ s.has(n) || (s.add(n), n());
32
+ }
33
+ c.length = 0;
34
+ } while (r.length);
35
+ for (; d.length; )
36
+ d.pop()();
37
+ f = !1, s.clear(), a(e);
38
+ }
39
+ function g(e) {
40
+ if (e.fragment !== null) {
41
+ e.update(), i(e.before_update);
42
+ const t = e.dirty;
43
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_);
44
+ }
45
+ }
46
+ function y(e) {
47
+ const t = [], n = [];
48
+ c.forEach((o) => e.indexOf(o) === -1 ? t.push(o) : n.push(o)), n.forEach((o) => o()), c = t;
49
+ }
50
+ export {
51
+ _ as add_render_callback,
52
+ h as binding_callbacks,
53
+ r as dirty_components,
54
+ m as flush,
55
+ y as flush_render_callbacks,
56
+ w as schedule_update
57
+ };
58
+ //# sourceMappingURL=annotorious-svelte.es14.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotorious-svelte.es14.js","sources":["../../../node_modules/svelte/src/runtime/internal/scheduler.js"],"sourcesContent":["import { run_all } from './utils.js';\nimport { current_component, set_current_component } from './lifecycle.js';\n\nexport const dirty_components = [];\nexport const intros = { enabled: false };\nexport const binding_callbacks = [];\n\nlet render_callbacks = [];\n\nconst flush_callbacks = [];\n\nconst resolved_promise = /* @__PURE__ */ Promise.resolve();\n\nlet update_scheduled = false;\n\n/** @returns {void} */\nexport function schedule_update() {\n\tif (!update_scheduled) {\n\t\tupdate_scheduled = true;\n\t\tresolved_promise.then(flush);\n\t}\n}\n\n/** @returns {Promise<void>} */\nexport function tick() {\n\tschedule_update();\n\treturn resolved_promise;\n}\n\n/** @returns {void} */\nexport function add_render_callback(fn) {\n\trender_callbacks.push(fn);\n}\n\n/** @returns {void} */\nexport function add_flush_callback(fn) {\n\tflush_callbacks.push(fn);\n}\n\n// flush() calls callbacks in this order:\n// 1. All beforeUpdate callbacks, in order: parents before children\n// 2. All bind:this callbacks, in reverse order: children before parents.\n// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT\n// for afterUpdates called during the initial onMount, which are called in\n// reverse order: children before parents.\n// Since callbacks might update component values, which could trigger another\n// call to flush(), the following steps guard against this:\n// 1. During beforeUpdate, any updated components will be added to the\n// dirty_components array and will cause a reentrant call to flush(). Because\n// the flush index is kept outside the function, the reentrant call will pick\n// up where the earlier call left off and go through all dirty components. The\n// current_component value is saved and restored so that the reentrant call will\n// not interfere with the \"parent\" flush() call.\n// 2. bind:this callbacks cannot trigger new flush() calls.\n// 3. During afterUpdate, any updated components will NOT have their afterUpdate\n// callback called a second time; the seen_callbacks set, outside the flush()\n// function, guarantees this behavior.\nconst seen_callbacks = new Set();\n\nlet flushidx = 0; // Do *not* move this inside the flush() function\n\n/** @returns {void} */\nexport function flush() {\n\t// Do not reenter flush while dirty components are updated, as this can\n\t// result in an infinite loop. Instead, let the inner flush handle it.\n\t// Reentrancy is ok afterwards for bindings etc.\n\tif (flushidx !== 0) {\n\t\treturn;\n\t}\n\tconst saved_component = current_component;\n\tdo {\n\t\t// first, call beforeUpdate functions\n\t\t// and update components\n\t\ttry {\n\t\t\twhile (flushidx < dirty_components.length) {\n\t\t\t\tconst component = dirty_components[flushidx];\n\t\t\t\tflushidx++;\n\t\t\t\tset_current_component(component);\n\t\t\t\tupdate(component.$$);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t// reset dirty state to not end up in a deadlocked state and then rethrow\n\t\t\tdirty_components.length = 0;\n\t\t\tflushidx = 0;\n\t\t\tthrow e;\n\t\t}\n\t\tset_current_component(null);\n\t\tdirty_components.length = 0;\n\t\tflushidx = 0;\n\t\twhile (binding_callbacks.length) binding_callbacks.pop()();\n\t\t// then, once components are updated, call\n\t\t// afterUpdate functions. This may cause\n\t\t// subsequent updates...\n\t\tfor (let i = 0; i < render_callbacks.length; i += 1) {\n\t\t\tconst callback = render_callbacks[i];\n\t\t\tif (!seen_callbacks.has(callback)) {\n\t\t\t\t// ...so guard against infinite loops\n\t\t\t\tseen_callbacks.add(callback);\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t\trender_callbacks.length = 0;\n\t} while (dirty_components.length);\n\twhile (flush_callbacks.length) {\n\t\tflush_callbacks.pop()();\n\t}\n\tupdate_scheduled = false;\n\tseen_callbacks.clear();\n\tset_current_component(saved_component);\n}\n\n/** @returns {void} */\nfunction update($$) {\n\tif ($$.fragment !== null) {\n\t\t$$.update();\n\t\trun_all($$.before_update);\n\t\tconst dirty = $$.dirty;\n\t\t$$.dirty = [-1];\n\t\t$$.fragment && $$.fragment.p($$.ctx, dirty);\n\t\t$$.after_update.forEach(add_render_callback);\n\t}\n}\n\n/**\n * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.\n * @param {Function[]} fns\n * @returns {void}\n */\nexport function flush_render_callbacks(fns) {\n\tconst filtered = [];\n\tconst targets = [];\n\trender_callbacks.forEach((c) => (fns.indexOf(c) === -1 ? filtered.push(c) : targets.push(c)));\n\ttargets.forEach((c) => c());\n\trender_callbacks = filtered;\n}\n"],"names":["dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","update_scheduled","schedule_update","flush","add_render_callback","fn","seen_callbacks","flushidx","saved_component","current_component","component","set_current_component","update","e","i","callback","$$","run_all","dirty","flush_render_callbacks","fns","filtered","targets","c"],"mappings":";;AAGY,MAACA,IAAmB,CAAG,GAEtBC,IAAoB,CAAG;AAEpC,IAAIC,IAAmB,CAAA;AAEvB,MAAMC,IAAkB,CAAA,GAElBC,IAAmC,wBAAQ;AAEjD,IAAIC,IAAmB;AAGhB,SAASC,IAAkB;AACjC,EAAKD,MACJA,IAAmB,IACnBD,EAAiB,KAAKG,CAAK;AAE7B;AASO,SAASC,EAAoBC,GAAI;AACvC,EAAAP,EAAiB,KAAKO,CAAE;AACzB;AAyBA,MAAMC,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,KAAKF,EAAS,KAAKE,CAAC,IAAID,EAAQ,KAAKC,CAAC,CAAE,GAC5FD,EAAQ,QAAQ,CAACC,MAAMA,EAAG,CAAA,GAC1BzB,IAAmBuB;AACpB;","x_google_ignoreList":[0]}
@@ -3,7 +3,7 @@ import { empty as q, insert as y, detach as P, element as x, text as G, attr as
3
3
  import { onMount as z } from "./annotorious-svelte.es8.js";
4
4
  import { SvelteComponent as B, init as F } from "./annotorious-svelte.es9.js";
5
5
  import "./annotorious-svelte.es10.js";
6
- import { draggable as J } from "./annotorious-svelte.es13.js";
6
+ import { draggable as J } from "./annotorious-svelte.es12.js";
7
7
  import b from "openseadragon";
8
8
  /* empty css */
9
9
  function w(n) {
@@ -1,7 +1,7 @@
1
1
  var k = Object.defineProperty;
2
2
  var v = (e, t, r) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var d = (e, t, r) => v(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { flush as w, add_render_callback as g, flush_render_callbacks as E, dirty_components as j, schedule_update as C } from "./annotorious-svelte.es12.js";
4
+ import { flush as w, add_render_callback as g, flush_render_callbacks as E, dirty_components as j, schedule_update as C } from "./annotorious-svelte.es14.js";
5
5
  import { current_component as M, set_current_component as b } from "./annotorious-svelte.es8.js";
6
6
  import { noop as u, blank_object as y, run_all as i, is_function as x, is_empty as O, run as S } from "./annotorious-svelte.es5.js";
7
7
  import { children as z, detach as A } from "./annotorious-svelte.es6.js";
package/dist/index.d.ts CHANGED
@@ -1,17 +1,12 @@
1
- import { createAnonymousGuest as _createAnonymousGuest, createBody as _createBody, defaultColorProvider as _defaultColorProvider, Origin as _Origin, PointerSelectAction as _PointerSelectAction } from '@annotorious/core';
1
+ import { createAnonymousGuest as _createAnonymousGuest, createBody as _createBody, defaultColorProvider as _defaultColorProvider, Origin as _Origin, UserSelectAction as _UserSelectAction } from '@annotorious/core';
2
2
  import { ShapeType as _ShapeType } from '@annotorious/annotorious';
3
3
  export * from './osd';
4
4
  export { default as MouseOverTooltip } from './MouseOverTooltip.svelte';
5
5
  export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Appearance, AppearanceProvider, Color, DrawingStyle, Filter, FormatAdapter, HoverState, LifecycleEvents, ParseResult, PresentUser, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, SvelteAnnotator, SvelteAnnotatorState, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
6
- export { _createAnonymousGuest as createAnonymousGuest };
7
- export { _createBody as createBody };
8
- export { _defaultColorProvider as defaultColorProvider };
9
- export { _Origin as Origin };
10
- export { _PointerSelectAction as PointerSelectAction };
6
+ export { _createAnonymousGuest as createAnonymousGuest, _createBody as createBody, _defaultColorProvider as defaultColorProvider, _Origin as Origin, _UserSelectAction as UserSelectAction };
11
7
  export type { AnnotoriousOpts, DrawingMode, DrawingTool, ImageAnnotator as AnnotoriousImageAnnotator, ImageAnnotation, ImageAnnotator, ImageAnnotatorState, Polygon, PolygonGeometry, Rectangle, RectangleGeometry, Shape } from '@annotorious/annotorious';
12
8
  export declare const createImageAnnotator: <E extends unknown = import('@annotorious/annotorious').ImageAnnotation>(image: string | HTMLImageElement | HTMLCanvasElement, options?: import('@annotorious/annotorious').AnnotoriousOpts<import('@annotorious/annotorious').ImageAnnotation, E>) => import('@annotorious/annotorious').ImageAnnotator<E>;
13
9
  export declare const ShapeType: typeof _ShapeType;
14
- export declare const W3CImageFormat: (source: string, invertY?: boolean) => import('@annotorious/annotorious').W3CImageFormatAdapter;
10
+ export declare const W3CImageFormat: (source: string, opts?: import('@annotorious/annotorious').W3CImageFormatAdapterOpts) => import('@annotorious/annotorious').W3CImageFormatAdapter;
15
11
  export type { OpenSeadragonAnnotator as AnnotoriousOpenSeadragonAnnotator } from '@annotorious/openseadragon';
16
12
  export type { Viewer } from 'openseadragon';
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export { SvelteComponentTyped as default } from 'svelte';
1
+ export { SvelteComponent as default } from 'svelte';
@@ -1 +1 @@
1
- export { SvelteComponentTyped as default } from 'svelte';
1
+ export { SvelteComponent as default } from 'svelte';
@@ -1,3 +1,2 @@
1
1
  export { default as OpenSeadragonAnnotator } from './OpenSeadragonAnnotator.svelte';
2
2
  export { default as OpenSeadragonPopup } from './OpenSeadragonPopup.svelte';
3
- //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annotorious/svelte",
3
- "version": "3.0.0-rc.30",
3
+ "version": "3.0.0-rc.32",
4
4
  "description": "Annotorious Svelte bindings",
5
5
  "author": "Rainer Simon",
6
6
  "license": "BSD-3-Clause",
@@ -15,19 +15,19 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "svelte": "./src/index.ts",
17
17
  "devDependencies": {
18
- "@sveltejs/vite-plugin-svelte": "^3.1.1",
18
+ "@sveltejs/vite-plugin-svelte": "^3.1.2",
19
19
  "@tsconfig/svelte": "^5.0.4",
20
20
  "@types/openseadragon": "^3.0.10",
21
- "svelte": "^4.2.18",
22
- "svelte-check": "^3.8.4",
23
- "svelte-preprocess": "^6.0.1",
24
- "tslib": "^2.6.3",
25
- "typescript": "^5.5.2",
26
- "vite": "^5.3.1",
27
- "vite-plugin-dts": "^3.9.1"
21
+ "svelte": "^4.2.19",
22
+ "svelte-check": "^3.8.6",
23
+ "svelte-preprocess": "^6.0.2",
24
+ "tslib": "^2.7.0",
25
+ "typescript": "5.5.4",
26
+ "vite": "^5.4.2",
27
+ "vite-plugin-dts": "^4.0.3"
28
28
  },
29
29
  "peerDependencies": {
30
- "openseadragon": "^3.0.0 || ^4.0.0"
30
+ "openseadragon": "^3.0.0 || ^4.0.0 || ^5.0.0"
31
31
  },
32
32
  "peerDependenciesMeta": {
33
33
  "openseadragon": {
@@ -35,9 +35,9 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@annotorious/core": "3.0.0-rc.30",
39
- "@annotorious/annotorious": "3.0.0-rc.30",
40
- "@annotorious/openseadragon": "3.0.0-rc.30",
38
+ "@annotorious/core": "3.0.0-rc.32",
39
+ "@annotorious/annotorious": "3.0.0-rc.32",
40
+ "@annotorious/openseadragon": "3.0.0-rc.32",
41
41
  "@neodrag/svelte": "^2.0.6"
42
42
  },
43
43
  "sideEffects": false
package/src/index.ts CHANGED
@@ -37,14 +37,16 @@ import {
37
37
  createBody as _createBody,
38
38
  defaultColorProvider as _defaultColorProvider,
39
39
  Origin as _Origin,
40
- PointerSelectAction as _PointerSelectAction
40
+ UserSelectAction as _UserSelectAction
41
41
  } from '@annotorious/core';
42
42
 
43
- export { _createAnonymousGuest as createAnonymousGuest };
44
- export { _createBody as createBody };
45
- export { _defaultColorProvider as defaultColorProvider };
46
- export { _Origin as Origin };
47
- export { _PointerSelectAction as PointerSelectAction };
43
+ export {
44
+ _createAnonymousGuest as createAnonymousGuest,
45
+ _createBody as createBody,
46
+ _defaultColorProvider as defaultColorProvider,
47
+ _Origin as Origin,
48
+ _UserSelectAction as UserSelectAction
49
+ }
48
50
 
49
51
  // Essential re-exports from @annotorious/annotorious
50
52
  export type {
package/tsconfig.json CHANGED
@@ -4,7 +4,6 @@
4
4
  "baseUrl": "src",
5
5
  "checkJs": true,
6
6
  "declaration": true,
7
- "declarationMap": true,
8
7
  "esModuleInterop": true,
9
8
  "forceConsistentCasingInFileNames": true,
10
9
  "ignoreDeprecations": "5.0",
@@ -1,106 +0,0 @@
1
- var G = { dragStart: !0 }, oe = (t, s, i) => Math.min(Math.max(t, s), i), J = (t) => typeof t == "string", ue = ([t, s], i, c) => {
2
- const u = (w, f) => f === 0 ? 0 : Math.ceil(w / f) * f;
3
- return [u(i, t), u(c, s)];
4
- }, ie = (t, s) => t.some((i) => s.some((c) => i.contains(c)));
5
- function K(t, s) {
6
- if (t === void 0) return;
7
- if (O(t)) return t.getBoundingClientRect();
8
- if (typeof t == "object") {
9
- const { top: c = 0, left: u = 0, right: w = 0, bottom: f = 0 } = t;
10
- return { top: c, right: window.innerWidth - w, bottom: window.innerHeight - f, left: u };
11
- }
12
- if (t === "parent") return s.parentNode.getBoundingClientRect();
13
- const i = document.querySelector(t);
14
- if (i === null) throw new Error("The selector provided for bound doesn't exists in the document.");
15
- return i.getBoundingClientRect();
16
- }
17
- var L = (t, s, i) => t.style.setProperty(s, i), O = (t) => t instanceof HTMLElement, fe = (t, s = {}) => {
18
- let i, c, { bounds: u, axis: w = "both", gpuAcceleration: f = !0, legacyTranslate: Q = !0, transform: T, applyUserSelectHack: X = !0, disabled: V = !1, ignoreMultitouch: Y = !1, recomputeBounds: x = G, grid: q, position: p, cancel: N, handle: D, defaultClass: M = "neodrag", defaultClassDragging: P = "neodrag-dragging", defaultClassDragged: S = "neodrag-dragged", defaultPosition: ae = { x: 0, y: 0 }, onDragStart: se, onDrag: le, onDragEnd: de } = s, B = !1, y = 0, b = 0, A = 0, C = 0, k = 0, z = 0, { x: $, y: R } = p ? { x: (p == null ? void 0 : p.x) ?? 0, y: (p == null ? void 0 : p.y) ?? 0 } : ae;
19
- W($, R);
20
- let g, v, E, I, Z, _ = "", ce = !!p;
21
- x = { ...G, ...x };
22
- let H = /* @__PURE__ */ new Set();
23
- const U = document.body.style, m = t.classList;
24
- function W(e = y, r = b) {
25
- if (!T) {
26
- if (Q) {
27
- let a = `${+e}px, ${+r}px`;
28
- return L(t, "transform", f ? `translate3d(${a}, 0)` : `translate(${a})`);
29
- }
30
- return L(t, "translate", `${+e}px ${+r}px ${f ? "1px" : ""}`);
31
- }
32
- const o = T({ offsetX: e, offsetY: r, rootNode: t });
33
- J(o) && L(t, "transform", o);
34
- }
35
- const j = (e, r) => {
36
- const o = { offsetX: y, offsetY: b, rootNode: t, currentNode: Z };
37
- t.dispatchEvent(new CustomEvent(e, { detail: o })), r == null || r(o);
38
- }, F = addEventListener;
39
- F("pointerdown", te, !1), F("pointerup", ne, !1), F("pointermove", re, !1), L(t, "touch-action", "none");
40
- const ee = () => {
41
- let e = t.offsetWidth / v.width;
42
- return isNaN(e) && (e = 1), e;
43
- };
44
- function te(e) {
45
- if (V || e.button === 2) return;
46
- if (H.add(e.pointerId), Y && H.size > 1) return e.preventDefault();
47
- if (x.dragStart && (g = K(u, t)), J(D) && J(N) && D === N) throw new Error("`handle` selector can't be same as `cancel` selector");
48
- if (m.add(M), E = function(n, d) {
49
- if (!n) return [d];
50
- if (O(n)) return [n];
51
- if (Array.isArray(n)) return n;
52
- const h = d.querySelectorAll(n);
53
- if (h === null) throw new Error("Selector passed for `handle` option should be child of the element on which the action is applied");
54
- return Array.from(h.values());
55
- }(D, t), I = function(n, d) {
56
- if (!n) return [];
57
- if (O(n)) return [n];
58
- if (Array.isArray(n)) return n;
59
- const h = d.querySelectorAll(n);
60
- if (h === null) throw new Error("Selector passed for `cancel` option should be child of the element on which the action is applied");
61
- return Array.from(h.values());
62
- }(N, t), i = /(both|x)/.test(w), c = /(both|y)/.test(w), ie(I, E)) throw new Error("Element being dragged can't be a child of the element on which `cancel` is applied");
63
- const r = e.composedPath()[0];
64
- if (!E.some((n) => {
65
- var d;
66
- return n.contains(r) || ((d = n.shadowRoot) == null ? void 0 : d.contains(r));
67
- }) || ie(I, [r])) return;
68
- Z = E.length === 1 ? t : E.find((n) => n.contains(r)), B = !0, v = t.getBoundingClientRect(), X && (_ = U.userSelect, U.userSelect = "none"), j("neodrag:start", se);
69
- const { clientX: o, clientY: a } = e, l = ee();
70
- i && (A = o - $ / l), c && (C = a - R / l), g && (k = o - v.left, z = a - v.top);
71
- }
72
- function ne(e) {
73
- H.delete(e.pointerId), B && (x.dragEnd && (g = K(u, t)), m.remove(P), m.add(S), X && (U.userSelect = _), j("neodrag:end", de), i && (A = y), c && (C = b), B = !1);
74
- }
75
- function re(e) {
76
- if (!B || Y && H.size > 1) return;
77
- x.drag && (g = K(u, t)), m.add(P), e.preventDefault(), v = t.getBoundingClientRect();
78
- let r = e.clientX, o = e.clientY;
79
- const a = ee();
80
- if (g) {
81
- const l = { left: g.left + k, top: g.top + z, right: g.right + k - v.width, bottom: g.bottom + z - v.height };
82
- r = oe(r, l.left, l.right), o = oe(o, l.top, l.bottom);
83
- }
84
- if (Array.isArray(q)) {
85
- let [l, n] = q;
86
- if (isNaN(+l) || l < 0) throw new Error("1st argument of `grid` must be a valid positive number");
87
- if (isNaN(+n) || n < 0) throw new Error("2nd argument of `grid` must be a valid positive number");
88
- let d = r - A, h = o - C;
89
- [d, h] = ue([l / a, n / a], d, h), r = A + d, o = C + h;
90
- }
91
- i && (y = Math.round((r - A) * a)), c && (b = Math.round((o - C) * a)), $ = y, R = b, j("neodrag", le), W();
92
- }
93
- return { destroy: () => {
94
- const e = removeEventListener;
95
- e("pointerdown", te, !1), e("pointerup", ne, !1), e("pointermove", re, !1);
96
- }, update: (e) => {
97
- var o, a;
98
- w = e.axis || "both", V = e.disabled ?? !1, Y = e.ignoreMultitouch ?? !1, D = e.handle, u = e.bounds, x = e.recomputeBounds ?? G, N = e.cancel, X = e.applyUserSelectHack ?? !0, q = e.grid, f = e.gpuAcceleration ?? !0, Q = e.legacyTranslate ?? !0, T = e.transform;
99
- const r = m.contains(S);
100
- m.remove(M, S), M = e.defaultClass ?? "neodrag", P = e.defaultClassDragging ?? "neodrag-dragging", S = e.defaultClassDragged ?? "neodrag-dragged", m.add(M), r && m.add(S), ce && ($ = y = ((o = e.position) == null ? void 0 : o.x) ?? y, R = b = ((a = e.position) == null ? void 0 : a.y) ?? b, W());
101
- } };
102
- };
103
- export {
104
- fe as draggable
105
- };
106
- //# sourceMappingURL=annotorious-svelte.es13.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotorious-svelte.es13.js","sources":["../../../node_modules/@neodrag/svelte/dist/min/index.js"],"sourcesContent":["var e={dragStart:!0},t=(e,t,n)=>Math.min(Math.max(e,t),n),n=e=>\"string\"==typeof e,r=([e,t],n,r)=>{const o=(e,t)=>0===t?0:Math.ceil(e/t)*t;return[o(n,e),o(r,t)]};var o=(e,t)=>e.some((e=>t.some((t=>e.contains(t)))));function i(e,t){if(void 0===e)return;if(s(e))return e.getBoundingClientRect();if(\"object\"==typeof e){const{top:t=0,left:n=0,right:r=0,bottom:o=0}=e;return{top:t,right:window.innerWidth-r,bottom:window.innerHeight-o,left:n}}if(\"parent\"===e)return t.parentNode.getBoundingClientRect();const n=document.querySelector(e);if(null===n)throw new Error(\"The selector provided for bound doesn't exists in the document.\");return n.getBoundingClientRect()}var a=(e,t,n)=>e.style.setProperty(t,n),s=e=>e instanceof HTMLElement,d=(d,l={})=>{let c,u,{bounds:f,axis:g=\"both\",gpuAcceleration:h=!0,legacyTranslate:p=!0,transform:m,applyUserSelectHack:w=!0,disabled:y=!1,ignoreMultitouch:b=!1,recomputeBounds:v=e,grid:x,position:E,cancel:S,handle:A,defaultClass:C=\"neodrag\",defaultClassDragging:N=\"neodrag-dragging\",defaultClassDragged:D=\"neodrag-dragged\",defaultPosition:M={x:0,y:0},onDragStart:B,onDrag:$,onDragEnd:R}=l,H=!1,L=0,T=0,X=0,Y=0,q=0,P=0,{x:k,y:z}=E?{x:E?.x??0,y:E?.y??0}:M;V(k,z);let I,U,W,j,F,G=\"\",J=!!E;v={...e,...v};let K=new Set;const O=document.body.style,Q=d.classList;function V(e=L,t=T){if(!m){if(p){let n=`${+e}px, ${+t}px`;return a(d,\"transform\",h?`translate3d(${n}, 0)`:`translate(${n})`)}return a(d,\"translate\",`${+e}px ${+t}px ${h?\"1px\":\"\"}`)}const r=m({offsetX:e,offsetY:t,rootNode:d});n(r)&&a(d,\"transform\",r)}const Z=(e,t)=>{const n={offsetX:L,offsetY:T,rootNode:d,currentNode:F};d.dispatchEvent(new CustomEvent(e,{detail:n})),t?.(n)};const _=addEventListener;_(\"pointerdown\",te,!1),_(\"pointerup\",ne,!1),_(\"pointermove\",re,!1),a(d,\"touch-action\",\"none\");const ee=()=>{let e=d.offsetWidth/U.width;return isNaN(e)&&(e=1),e};function te(e){if(y)return;if(2===e.button)return;if(K.add(e.pointerId),b&&K.size>1)return e.preventDefault();if(v.dragStart&&(I=i(f,d)),n(A)&&n(S)&&A===S)throw new Error(\"`handle` selector can't be same as `cancel` selector\");if(Q.add(C),W=function(e,t){if(!e)return[t];if(s(e))return[e];if(Array.isArray(e))return e;const n=t.querySelectorAll(e);if(null===n)throw new Error(\"Selector passed for `handle` option should be child of the element on which the action is applied\");return Array.from(n.values())}(A,d),j=function(e,t){if(!e)return[];if(s(e))return[e];if(Array.isArray(e))return e;const n=t.querySelectorAll(e);if(null===n)throw new Error(\"Selector passed for `cancel` option should be child of the element on which the action is applied\");return Array.from(n.values())}(S,d),c=/(both|x)/.test(g),u=/(both|y)/.test(g),o(j,W))throw new Error(\"Element being dragged can't be a child of the element on which `cancel` is applied\");const t=e.composedPath()[0];if(!W.some((e=>e.contains(t)||e.shadowRoot?.contains(t)))||o(j,[t]))return;F=1===W.length?d:W.find((e=>e.contains(t))),H=!0,U=d.getBoundingClientRect(),w&&(G=O.userSelect,O.userSelect=\"none\"),Z(\"neodrag:start\",B);const{clientX:r,clientY:a}=e,l=ee();c&&(X=r-k/l),u&&(Y=a-z/l),I&&(q=r-U.left,P=a-U.top)}function ne(e){K.delete(e.pointerId),H&&(v.dragEnd&&(I=i(f,d)),Q.remove(N),Q.add(D),w&&(O.userSelect=G),Z(\"neodrag:end\",R),c&&(X=L),u&&(Y=T),H=!1)}function re(e){if(!H||b&&K.size>1)return;v.drag&&(I=i(f,d)),Q.add(N),e.preventDefault(),U=d.getBoundingClientRect();let n=e.clientX,o=e.clientY;const a=ee();if(I){const e={left:I.left+q,top:I.top+P,right:I.right+q-U.width,bottom:I.bottom+P-U.height};n=t(n,e.left,e.right),o=t(o,e.top,e.bottom)}if(Array.isArray(x)){let[e,t]=x;if(isNaN(+e)||e<0)throw new Error(\"1st argument of `grid` must be a valid positive number\");if(isNaN(+t)||t<0)throw new Error(\"2nd argument of `grid` must be a valid positive number\");let i=n-X,s=o-Y;[i,s]=r([e/a,t/a],i,s),n=X+i,o=Y+s}c&&(L=Math.round((n-X)*a)),u&&(T=Math.round((o-Y)*a)),k=L,z=T,Z(\"neodrag\",$),V()}return{destroy:()=>{const e=removeEventListener;e(\"pointerdown\",te,!1),e(\"pointerup\",ne,!1),e(\"pointermove\",re,!1)},update:t=>{g=t.axis||\"both\",y=t.disabled??!1,b=t.ignoreMultitouch??!1,A=t.handle,f=t.bounds,v=t.recomputeBounds??e,S=t.cancel,w=t.applyUserSelectHack??!0,x=t.grid,h=t.gpuAcceleration??!0,p=t.legacyTranslate??!0,m=t.transform;const n=Q.contains(D);Q.remove(C,D),C=t.defaultClass??\"neodrag\",N=t.defaultClassDragging??\"neodrag-dragging\",D=t.defaultClassDragged??\"neodrag-dragged\",Q.add(C),n&&Q.add(D),J&&(k=L=t.position?.x??L,z=T=t.position?.y??T,V())}}};\n//!THIS IS HACK, WE WANNA IMPORT THE TYPE WHEN THE ISSUE IS FIXED LATER\nexport{d as draggable};"],"names":["e","t","n","r","o","i","s","a","d","l","c","u","f","g","h","p","m","w","y","b","v","x","E","S","A","C","N","D","M","B","$","R","H","L","T","X","Y","q","P","k","z","V","I","U","W","j","F","G","J","K","O","Q","Z","_","_a","_b"],"mappings":"AAAA,IAAIA,IAAE,EAAC,WAAU,GAAE,GAAEC,KAAE,CAACD,GAAEC,GAAEC,MAAI,KAAK,IAAI,KAAK,IAAIF,GAAEC,CAAC,GAAEC,CAAC,GAAEA,IAAE,CAAAF,MAAa,OAAOA,KAAjB,UAAmBG,KAAE,CAAC,CAACH,GAAEC,CAAC,GAAEC,GAAEC,MAAI;AAAC,QAAMC,IAAE,CAACJ,GAAEC,MAAQA,MAAJ,IAAM,IAAE,KAAK,KAAKD,IAAEC,CAAC,IAAEA;AAAE,SAAM,CAACG,EAAEF,GAAEF,CAAC,GAAEI,EAAED,GAAEF,CAAC,CAAC;AAAC,GAAMG,KAAE,CAACJ,GAAEC,MAAID,EAAE,KAAM,CAAAA,MAAGC,EAAE,KAAM,CAAAA,MAAGD,EAAE,SAASC,CAAC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