triiiceratops 0.5.0 → 0.6.0
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/chunks/TriiiceratopsViewer-CuHkgof3.js +22309 -0
- package/dist/index.js +1407 -1302
- package/dist/plugin-COh2S4OT.js +236 -0
- package/dist/plugins/image-manipulation.js +51 -47
- package/dist/src/lib/index.d.ts +4 -0
- package/dist/src/lib/paraglide/messages/de.d.ts +10 -0
- package/dist/src/lib/paraglide/messages/en.d.ts +10 -0
- package/dist/src/lib/paraglide/messages.d.ts +30 -0
- package/dist/src/lib/plugins/image-manipulation/filters.d.ts +1 -1
- package/dist/src/lib/theme/colorUtils.d.ts +36 -0
- package/dist/src/lib/theme/index.d.ts +51 -0
- package/dist/src/lib/theme/themeManager.d.ts +39 -0
- package/dist/src/lib/theme/types.d.ts +73 -0
- package/dist/triiiceratops-element-image.js +315 -276
- package/dist/triiiceratops-element.js +54 -19
- package/dist/{triiiceratops-element.css → triiiceratops.css} +1 -1
- package/package.json +8 -3
- package/dist/chunks/TriiiceratopsViewer-BardJ3c3.js +0 -22029
- package/dist/plugin-DqOSV8lm.js +0 -30
|
@@ -1,48 +1,83 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
let a = n
|
|
6
|
-
|
|
1
|
+
import { c as y, p as C, a as r, f as T, b, h as w, s as S, d as _, e as E, T as V, g as l, u as h, r as j, i as k, j as x, k as B, l as J, m as s } from "./chunks/TriiiceratopsViewer-CuHkgof3.js";
|
|
2
|
+
var N = T('<!> <div class="w-full h-full"><!></div>', 1);
|
|
3
|
+
function O(o, n) {
|
|
4
|
+
C(n, !0);
|
|
5
|
+
let a = r(n, "manifestId", 7, ""), u = r(n, "canvasId", 7, ""), d = r(n, "plugins", 23, () => []), i = r(n, "theme", 7, void 0), t = r(n, "themeConfig", 7, void 0), c = h(() => {
|
|
6
|
+
if (i()) {
|
|
7
|
+
if (J(i())) return i();
|
|
8
|
+
console.warn(`Invalid theme "${i()}". Using inherited theme.`);
|
|
9
|
+
}
|
|
10
|
+
}), v = h(() => {
|
|
11
|
+
if (t()) {
|
|
12
|
+
if (typeof t() == "string") {
|
|
13
|
+
const e = B(t());
|
|
14
|
+
return e || console.warn(`Invalid theme-config JSON: "${t()}". Ignoring.`), e ?? void 0;
|
|
15
|
+
}
|
|
16
|
+
return t();
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var p = {
|
|
7
20
|
get manifestId() {
|
|
8
21
|
return a();
|
|
9
22
|
},
|
|
10
23
|
set manifestId(e = "") {
|
|
11
|
-
a(e),
|
|
24
|
+
a(e), s();
|
|
12
25
|
},
|
|
13
26
|
get canvasId() {
|
|
14
|
-
return
|
|
27
|
+
return u();
|
|
15
28
|
},
|
|
16
29
|
set canvasId(e = "") {
|
|
17
|
-
|
|
30
|
+
u(e), s();
|
|
18
31
|
},
|
|
19
32
|
get plugins() {
|
|
20
|
-
return
|
|
33
|
+
return d();
|
|
21
34
|
},
|
|
22
35
|
set plugins(e = []) {
|
|
23
|
-
|
|
36
|
+
d(e), s();
|
|
37
|
+
},
|
|
38
|
+
get theme() {
|
|
39
|
+
return i();
|
|
40
|
+
},
|
|
41
|
+
set theme(e = void 0) {
|
|
42
|
+
i(e), s();
|
|
43
|
+
},
|
|
44
|
+
get themeConfig() {
|
|
45
|
+
return t();
|
|
46
|
+
},
|
|
47
|
+
set themeConfig(e = void 0) {
|
|
48
|
+
t(e), s();
|
|
24
49
|
}
|
|
25
|
-
},
|
|
26
|
-
|
|
50
|
+
}, f = N(), m = b(f);
|
|
51
|
+
w(m, () => `<style>${S}</style>`);
|
|
52
|
+
var g = _(m, 2), I = E(g);
|
|
53
|
+
return V(I, {
|
|
27
54
|
get manifestId() {
|
|
28
55
|
return a();
|
|
29
56
|
},
|
|
30
57
|
get canvasId() {
|
|
31
|
-
return
|
|
58
|
+
return u();
|
|
32
59
|
},
|
|
33
60
|
get plugins() {
|
|
34
|
-
return
|
|
61
|
+
return d();
|
|
62
|
+
},
|
|
63
|
+
get theme() {
|
|
64
|
+
return l(c);
|
|
65
|
+
},
|
|
66
|
+
get themeConfig() {
|
|
67
|
+
return l(v);
|
|
35
68
|
}
|
|
36
|
-
}),
|
|
69
|
+
}), j(g), k(o, f), x(p);
|
|
37
70
|
}
|
|
38
|
-
customElements.define("triiiceratops-viewer",
|
|
39
|
-
|
|
71
|
+
customElements.define("triiiceratops-viewer", y(
|
|
72
|
+
O,
|
|
40
73
|
{
|
|
41
74
|
manifestId: { attribute: "manifest-id", reflect: !0, type: "String" },
|
|
42
75
|
canvasId: { attribute: "canvas-id", reflect: !0, type: "String" },
|
|
76
|
+
theme: { attribute: "theme", reflect: !0, type: "String" },
|
|
77
|
+
themeConfig: { attribute: "theme-config", type: "String" },
|
|
43
78
|
plugins: {}
|
|
44
79
|
},
|
|
45
80
|
[],
|
|
46
81
|
[],
|
|
47
|
-
!
|
|
82
|
+
!0
|
|
48
83
|
));
|