@annotorious/svelte 3.0.0-rc.2 → 3.0.0-rc.21
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/annotorious-svelte.es.js +17 -6
- package/dist/annotorious-svelte.es.js.map +1 -1
- package/dist/annotorious-svelte.es10.js +24 -2
- package/dist/annotorious-svelte.es10.js.map +1 -1
- package/dist/annotorious-svelte.es11.js +111 -2
- package/dist/annotorious-svelte.es11.js.map +1 -1
- package/dist/annotorious-svelte.es12.js +3 -0
- package/dist/annotorious-svelte.es12.js.map +1 -0
- package/dist/annotorious-svelte.es13.js +5 -0
- package/dist/annotorious-svelte.es13.js.map +1 -0
- package/dist/annotorious-svelte.es14.js +27439 -0
- package/dist/annotorious-svelte.es14.js.map +1 -0
- package/dist/annotorious-svelte.es15.js +123 -0
- package/dist/annotorious-svelte.es15.js.map +1 -0
- package/dist/annotorious-svelte.es16.js +2 -0
- package/dist/annotorious-svelte.es16.js.map +1 -0
- package/dist/annotorious-svelte.es17.js +59 -0
- package/dist/annotorious-svelte.es17.js.map +1 -0
- package/dist/annotorious-svelte.es2.js +30 -25
- package/dist/annotorious-svelte.es2.js.map +1 -1
- package/dist/annotorious-svelte.es3.js +91 -106
- package/dist/annotorious-svelte.es3.js.map +1 -1
- package/dist/annotorious-svelte.es4.js +4226 -110
- package/dist/annotorious-svelte.es4.js.map +1 -1
- package/dist/annotorious-svelte.es5.js +106 -305
- package/dist/annotorious-svelte.es5.js.map +1 -1
- package/dist/annotorious-svelte.es6.js +126 -7
- package/dist/annotorious-svelte.es6.js.map +1 -1
- package/dist/annotorious-svelte.es7.js +99 -2
- package/dist/annotorious-svelte.es7.js.map +1 -1
- package/dist/annotorious-svelte.es8.js +31 -20598
- package/dist/annotorious-svelte.es8.js.map +1 -1
- package/dist/annotorious-svelte.es9.js +29 -118
- package/dist/annotorious-svelte.es9.js.map +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +22 -11
- package/src/index.ts +72 -5
- package/vite.config.js +1 -0
- /package/dist/{style.css → annotorious-svelte.css} +0 -0
|
@@ -1,316 +1,117 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import { safe_not_equal as g, create_slot as b, update_slot_base as h, get_all_dirty_from_scope as k, get_slot_changes as w } from "./annotorious-svelte.es7.js";
|
|
2
|
+
import { empty as A, insert as O, detach as v } from "./annotorious-svelte.es8.js";
|
|
3
|
+
import { transition_in as f, transition_out as c, check_outros as C, group_outros as q } from "./annotorious-svelte.es9.js";
|
|
4
|
+
import { setContext as _ } from "./annotorious-svelte.es10.js";
|
|
5
|
+
import { SvelteComponent as y, init as D } from "./annotorious-svelte.es11.js";
|
|
6
|
+
import "./annotorious-svelte.es12.js";
|
|
7
|
+
import { toSvelteStore as E } from "./annotorious-svelte.es3.js";
|
|
8
|
+
import { createOSDAnnotator as I } from "./annotorious-svelte.es14.js";
|
|
9
|
+
function d(s) {
|
|
10
|
+
let o;
|
|
11
|
+
const n = (
|
|
12
|
+
/*#slots*/
|
|
13
|
+
s[4].default
|
|
14
|
+
), t = b(
|
|
15
|
+
n,
|
|
16
|
+
s,
|
|
17
|
+
/*$$scope*/
|
|
18
|
+
s[3],
|
|
19
|
+
null
|
|
20
|
+
);
|
|
21
|
+
return {
|
|
22
|
+
c() {
|
|
23
|
+
t && t.c();
|
|
24
|
+
},
|
|
25
|
+
m(e, r) {
|
|
26
|
+
t && t.m(e, r), o = !0;
|
|
27
|
+
},
|
|
28
|
+
p(e, r) {
|
|
29
|
+
t && t.p && (!o || r & /*$$scope*/
|
|
30
|
+
8) && h(
|
|
31
|
+
t,
|
|
32
|
+
n,
|
|
33
|
+
e,
|
|
34
|
+
/*$$scope*/
|
|
35
|
+
e[3],
|
|
36
|
+
o ? w(
|
|
37
|
+
n,
|
|
38
|
+
/*$$scope*/
|
|
39
|
+
e[3],
|
|
40
|
+
r,
|
|
41
|
+
null
|
|
42
|
+
) : k(
|
|
43
|
+
/*$$scope*/
|
|
44
|
+
e[3]
|
|
45
|
+
),
|
|
46
|
+
null
|
|
47
|
+
);
|
|
48
|
+
},
|
|
49
|
+
i(e) {
|
|
50
|
+
o || (f(t, e), o = !0);
|
|
51
|
+
},
|
|
52
|
+
o(e) {
|
|
53
|
+
c(t, e), o = !1;
|
|
54
|
+
},
|
|
55
|
+
d(e) {
|
|
56
|
+
t && t.d(e);
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
return n.dirty;
|
|
58
|
-
}
|
|
59
|
-
function Z(t, n, e, r, o, c) {
|
|
60
|
-
if (o) {
|
|
61
|
-
const i = L(n, e, r, c);
|
|
62
|
-
t.p(i, o);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function tt(t) {
|
|
66
|
-
if (t.ctx.length > 32) {
|
|
67
|
-
const n = [], e = t.ctx.length / 32;
|
|
68
|
-
for (let r = 0; r < e; r++)
|
|
69
|
-
n[r] = -1;
|
|
70
|
-
return n;
|
|
71
|
-
}
|
|
72
|
-
return -1;
|
|
73
|
-
}
|
|
74
|
-
function nt(t) {
|
|
75
|
-
return t && E(t.destroy) ? t.destroy : g;
|
|
76
|
-
}
|
|
77
|
-
function et(t, n) {
|
|
78
|
-
t.appendChild(n);
|
|
79
|
-
}
|
|
80
|
-
function rt(t, n, e) {
|
|
81
|
-
t.insertBefore(n, e || null);
|
|
82
|
-
}
|
|
83
|
-
function T(t) {
|
|
84
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
85
|
-
}
|
|
86
|
-
function ot(t) {
|
|
87
|
-
return document.createElement(t);
|
|
88
|
-
}
|
|
89
|
-
function q(t) {
|
|
90
|
-
return document.createTextNode(t);
|
|
91
|
-
}
|
|
92
|
-
function ut() {
|
|
93
|
-
return q("");
|
|
94
|
-
}
|
|
95
|
-
function it(t, n, e, r) {
|
|
96
|
-
return t.addEventListener(n, e, r), () => t.removeEventListener(n, e, r);
|
|
97
|
-
}
|
|
98
|
-
function ct(t, n, e) {
|
|
99
|
-
e == null ? t.removeAttribute(n) : t.getAttribute(n) !== e && t.setAttribute(n, e);
|
|
100
|
-
}
|
|
101
|
-
function D(t) {
|
|
102
|
-
return Array.from(t.childNodes);
|
|
103
|
-
}
|
|
104
|
-
function ft(t, n) {
|
|
105
|
-
n = "" + n, t.data !== n && (t.data = n);
|
|
106
|
-
}
|
|
107
|
-
let m;
|
|
108
|
-
function h(t) {
|
|
109
|
-
m = t;
|
|
110
|
-
}
|
|
111
|
-
function v() {
|
|
112
|
-
if (!m)
|
|
113
|
-
throw new Error("Function called outside component initialization");
|
|
114
|
-
return m;
|
|
115
|
-
}
|
|
116
|
-
function st(t) {
|
|
117
|
-
v().$$.on_mount.push(t);
|
|
118
|
-
}
|
|
119
|
-
function lt(t, n) {
|
|
120
|
-
return v().$$.context.set(t, n), n;
|
|
121
|
-
}
|
|
122
|
-
function at(t) {
|
|
123
|
-
return v().$$.context.get(t);
|
|
124
|
-
}
|
|
125
|
-
const d = [], O = [];
|
|
126
|
-
let _ = [];
|
|
127
|
-
const M = [], G = /* @__PURE__ */ Promise.resolve();
|
|
128
|
-
let b = !1;
|
|
129
|
-
function H() {
|
|
130
|
-
b || (b = !0, G.then(z));
|
|
131
|
-
}
|
|
132
|
-
function w(t) {
|
|
133
|
-
_.push(t);
|
|
58
|
+
};
|
|
134
59
|
}
|
|
135
|
-
|
|
136
|
-
let
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
60
|
+
function L(s) {
|
|
61
|
+
let o, n, t = (
|
|
62
|
+
/*viewer*/
|
|
63
|
+
s[0] && d(s)
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
c() {
|
|
67
|
+
t && t.c(), o = A();
|
|
68
|
+
},
|
|
69
|
+
m(e, r) {
|
|
70
|
+
t && t.m(e, r), O(e, o, r), n = !0;
|
|
71
|
+
},
|
|
72
|
+
p(e, [r]) {
|
|
73
|
+
/*viewer*/
|
|
74
|
+
e[0] ? t ? (t.p(e, r), r & /*viewer*/
|
|
75
|
+
1 && f(t, 1)) : (t = d(e), t.c(), f(t, 1), t.m(o.parentNode, o)) : t && (q(), c(t, 1, 1, () => {
|
|
76
|
+
t = null;
|
|
77
|
+
}), C());
|
|
78
|
+
},
|
|
79
|
+
i(e) {
|
|
80
|
+
n || (f(t), n = !0);
|
|
81
|
+
},
|
|
82
|
+
o(e) {
|
|
83
|
+
c(t), n = !1;
|
|
84
|
+
},
|
|
85
|
+
d(e) {
|
|
86
|
+
e && v(o), t && t.d(e);
|
|
149
87
|
}
|
|
150
|
-
for (h(null), d.length = 0, a = 0; O.length; )
|
|
151
|
-
O.pop()();
|
|
152
|
-
for (let n = 0; n < _.length; n += 1) {
|
|
153
|
-
const e = _[n];
|
|
154
|
-
$.has(e) || ($.add(e), e());
|
|
155
|
-
}
|
|
156
|
-
_.length = 0;
|
|
157
|
-
} while (d.length);
|
|
158
|
-
for (; M.length; )
|
|
159
|
-
M.pop()();
|
|
160
|
-
b = !1, $.clear(), h(t);
|
|
161
|
-
}
|
|
162
|
-
function I(t) {
|
|
163
|
-
if (t.fragment !== null) {
|
|
164
|
-
t.update(), p(t.before_update);
|
|
165
|
-
const n = t.dirty;
|
|
166
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, n), t.after_update.forEach(w);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function J(t) {
|
|
170
|
-
const n = [], e = [];
|
|
171
|
-
_.forEach((r) => t.indexOf(r) === -1 ? n.push(r) : e.push(r)), e.forEach((r) => r()), _ = n;
|
|
172
|
-
}
|
|
173
|
-
const x = /* @__PURE__ */ new Set();
|
|
174
|
-
let l;
|
|
175
|
-
function dt() {
|
|
176
|
-
l = {
|
|
177
|
-
r: 0,
|
|
178
|
-
c: [],
|
|
179
|
-
p: l
|
|
180
|
-
// parent group
|
|
181
88
|
};
|
|
182
89
|
}
|
|
183
|
-
function
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
x.add(t), l.c.push(() => {
|
|
194
|
-
x.delete(t), r && (e && t.d(1), r());
|
|
195
|
-
}), t.o(n);
|
|
196
|
-
} else
|
|
197
|
-
r && r();
|
|
198
|
-
}
|
|
199
|
-
function Q(t, n, e, r) {
|
|
200
|
-
const { fragment: o, after_update: c } = t.$$;
|
|
201
|
-
o && o.m(n, e), r || w(() => {
|
|
202
|
-
const i = t.$$.on_mount.map(S).filter(E);
|
|
203
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...i) : p(i), t.$$.on_mount = [];
|
|
204
|
-
}), c.forEach(w);
|
|
205
|
-
}
|
|
206
|
-
function R(t, n) {
|
|
207
|
-
const e = t.$$;
|
|
208
|
-
e.fragment !== null && (J(e.after_update), p(e.on_destroy), e.fragment && e.fragment.d(n), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
209
|
-
}
|
|
210
|
-
function U(t, n) {
|
|
211
|
-
t.$$.dirty[0] === -1 && (d.push(t), H(), t.$$.dirty.fill(0)), t.$$.dirty[n / 31 | 0] |= 1 << n % 31;
|
|
212
|
-
}
|
|
213
|
-
function gt(t, n, e, r, o, c, i, s = [-1]) {
|
|
214
|
-
const y = m;
|
|
215
|
-
h(t);
|
|
216
|
-
const u = t.$$ = {
|
|
217
|
-
fragment: null,
|
|
218
|
-
ctx: [],
|
|
219
|
-
// state
|
|
220
|
-
props: c,
|
|
221
|
-
update: g,
|
|
222
|
-
not_equal: o,
|
|
223
|
-
bound: N(),
|
|
224
|
-
// lifecycle
|
|
225
|
-
on_mount: [],
|
|
226
|
-
on_destroy: [],
|
|
227
|
-
on_disconnect: [],
|
|
228
|
-
before_update: [],
|
|
229
|
-
after_update: [],
|
|
230
|
-
context: new Map(n.context || (y ? y.$$.context : [])),
|
|
231
|
-
// everything else
|
|
232
|
-
callbacks: N(),
|
|
233
|
-
dirty: s,
|
|
234
|
-
skip_bound: !1,
|
|
235
|
-
root: n.target || y.$$.root
|
|
90
|
+
function N(s, o, n) {
|
|
91
|
+
let { $$slots: t = {}, $$scope: e } = o, { viewer: r } = o, { opts: l = {} } = o, { anno: a = void 0 } = o;
|
|
92
|
+
const p = (i) => {
|
|
93
|
+
if (i) {
|
|
94
|
+
const u = I(i, l), S = E(u.state.store), m = {
|
|
95
|
+
...u,
|
|
96
|
+
state: { ...u.state, store: S }
|
|
97
|
+
};
|
|
98
|
+
_("anno", m), _("viewer", i), n(1, a = m);
|
|
99
|
+
}
|
|
236
100
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
u.fragment && u.fragment.c();
|
|
248
|
-
n.intro && K(t.$$.fragment), Q(t, n.target, n.anchor, n.customElement), z();
|
|
249
|
-
}
|
|
250
|
-
h(y);
|
|
251
|
-
}
|
|
252
|
-
class mt {
|
|
253
|
-
$destroy() {
|
|
254
|
-
R(this, 1), this.$destroy = g;
|
|
255
|
-
}
|
|
256
|
-
$on(n, e) {
|
|
257
|
-
if (!E(e))
|
|
258
|
-
return g;
|
|
259
|
-
const r = this.$$.callbacks[n] || (this.$$.callbacks[n] = []);
|
|
260
|
-
return r.push(e), () => {
|
|
261
|
-
const o = r.indexOf(e);
|
|
262
|
-
o !== -1 && r.splice(o, 1);
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
$set(n) {
|
|
266
|
-
this.$$set && !F(n) && (this.$$.skip_bound = !0, this.$$set(n), this.$$.skip_bound = !1);
|
|
101
|
+
return s.$$set = (i) => {
|
|
102
|
+
"viewer" in i && n(0, r = i.viewer), "opts" in i && n(2, l = i.opts), "anno" in i && n(1, a = i.anno), "$$scope" in i && n(3, e = i.$$scope);
|
|
103
|
+
}, s.$$.update = () => {
|
|
104
|
+
s.$$.dirty & /*viewer*/
|
|
105
|
+
1 && p(r);
|
|
106
|
+
}, [r, a, l, e, t];
|
|
107
|
+
}
|
|
108
|
+
class j extends y {
|
|
109
|
+
constructor(o) {
|
|
110
|
+
super(), D(this, o, N, L, g, { viewer: 0, opts: 2, anno: 1 });
|
|
267
111
|
}
|
|
268
112
|
}
|
|
113
|
+
const P = j;
|
|
269
114
|
export {
|
|
270
|
-
|
|
271
|
-
nt as action_destroyer,
|
|
272
|
-
w as add_render_callback,
|
|
273
|
-
et as append,
|
|
274
|
-
B as assign,
|
|
275
|
-
ct as attr,
|
|
276
|
-
O as binding_callbacks,
|
|
277
|
-
N as blank_object,
|
|
278
|
-
_t as check_outros,
|
|
279
|
-
D as children,
|
|
280
|
-
W as component_subscribe,
|
|
281
|
-
X as create_slot,
|
|
282
|
-
m as current_component,
|
|
283
|
-
R as destroy_component,
|
|
284
|
-
T as detach,
|
|
285
|
-
d as dirty_components,
|
|
286
|
-
ot as element,
|
|
287
|
-
ut as empty,
|
|
288
|
-
z as flush,
|
|
289
|
-
J as flush_render_callbacks,
|
|
290
|
-
at as getContext,
|
|
291
|
-
tt as get_all_dirty_from_scope,
|
|
292
|
-
v as get_current_component,
|
|
293
|
-
Y as get_slot_changes,
|
|
294
|
-
dt as group_outros,
|
|
295
|
-
gt as init,
|
|
296
|
-
rt as insert,
|
|
297
|
-
F as is_empty,
|
|
298
|
-
E as is_function,
|
|
299
|
-
it as listen,
|
|
300
|
-
Q as mount_component,
|
|
301
|
-
g as noop,
|
|
302
|
-
st as onMount,
|
|
303
|
-
S as run,
|
|
304
|
-
p as run_all,
|
|
305
|
-
V as safe_not_equal,
|
|
306
|
-
H as schedule_update,
|
|
307
|
-
lt as setContext,
|
|
308
|
-
h as set_current_component,
|
|
309
|
-
ft as set_data,
|
|
310
|
-
P as subscribe,
|
|
311
|
-
q as text,
|
|
312
|
-
K as transition_in,
|
|
313
|
-
ht as transition_out,
|
|
314
|
-
Z as update_slot_base
|
|
115
|
+
P as default
|
|
315
116
|
};
|
|
316
117
|
//# sourceMappingURL=annotorious-svelte.es5.js.map
|