triiiceratops 0.9.13 → 0.10.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/ArrowCounterClockwise-aFffCOKw.js +136 -0
- package/dist/X-DZEgXrJ8.js +877 -0
- package/dist/annotation_tool_point-CZKsj4Nk.js +290 -0
- package/dist/components/AnnotationOverlay.svelte +179 -86
- package/dist/components/LeftFab.svelte +21 -9
- package/dist/components/OSDViewer.svelte +20 -3
- package/dist/components/TriiiceratopsViewer.svelte +96 -43
- package/dist/components/TriiiceratopsViewer.svelte.d.ts +5 -5
- package/dist/components/TriiiceratopsViewerElement.svelte +2 -2
- package/dist/components/TriiiceratopsViewerElement.svelte.d.ts +2 -2
- package/dist/custom-element.d.ts +10 -0
- package/dist/custom-element.js +13 -0
- package/dist/image_filters_reset-BEIf-_QA.js +108 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +0 -1
- package/dist/paraglide/messages/_index.d.ts +30 -0
- package/dist/paraglide/messages/_index.js +31 -1
- package/dist/paraglide/messages/annotation_editor_add_content.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_add_content.js +34 -0
- package/dist/paraglide/messages/annotation_editor_cancel.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_cancel.js +34 -0
- package/dist/paraglide/messages/annotation_editor_create_mode.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_create_mode.js +34 -0
- package/dist/paraglide/messages/annotation_editor_delete.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_delete.js +34 -0
- package/dist/paraglide/messages/annotation_editor_delete_message.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_delete_message.js +34 -0
- package/dist/paraglide/messages/annotation_editor_delete_title.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_delete_title.js +34 -0
- package/dist/paraglide/messages/annotation_editor_delete_tooltip.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_delete_tooltip.js +34 -0
- package/dist/paraglide/messages/annotation_editor_edit_mode.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_edit_mode.js +34 -0
- package/dist/paraglide/messages/annotation_editor_edit_section.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_edit_section.js +34 -0
- package/dist/paraglide/messages/annotation_editor_instruction_create.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_instruction_create.js +34 -0
- package/dist/paraglide/messages/annotation_editor_instruction_edit.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_instruction_edit.js +34 -0
- package/dist/paraglide/messages/annotation_editor_link_placeholder.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_link_placeholder.js +34 -0
- package/dist/paraglide/messages/annotation_editor_redo.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_redo.js +34 -0
- package/dist/paraglide/messages/annotation_editor_save.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_save.js +34 -0
- package/dist/paraglide/messages/annotation_editor_tag_placeholder.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_tag_placeholder.js +34 -0
- package/dist/paraglide/messages/annotation_editor_text_placeholder.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_text_placeholder.js +34 -0
- package/dist/paraglide/messages/annotation_editor_title.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_title.js +34 -0
- package/dist/paraglide/messages/annotation_editor_tool_label.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_tool_label.js +34 -0
- package/dist/paraglide/messages/annotation_editor_undo.d.ts +4 -0
- package/dist/paraglide/messages/annotation_editor_undo.js +34 -0
- package/dist/paraglide/messages/annotation_tool_point.d.ts +4 -0
- package/dist/paraglide/messages/annotation_tool_point.js +34 -0
- package/dist/paraglide/messages/annotation_tool_polygon.d.ts +4 -0
- package/dist/paraglide/messages/annotation_tool_polygon.js +34 -0
- package/dist/paraglide/messages/annotation_tool_rectangle.d.ts +4 -0
- package/dist/paraglide/messages/annotation_tool_rectangle.js +34 -0
- package/dist/paraglide/messages/image_adjustments_title.d.ts +4 -0
- package/dist/paraglide/messages/image_adjustments_title.js +34 -0
- package/dist/paraglide/messages/image_filters_brightness.d.ts +4 -0
- package/dist/paraglide/messages/image_filters_brightness.js +34 -0
- package/dist/paraglide/messages/image_filters_contrast.d.ts +4 -0
- package/dist/paraglide/messages/image_filters_contrast.js +34 -0
- package/dist/paraglide/messages/image_filters_effects.d.ts +4 -0
- package/dist/paraglide/messages/image_filters_effects.js +34 -0
- package/dist/paraglide/messages/image_filters_grayscale.d.ts +4 -0
- package/dist/paraglide/messages/image_filters_grayscale.js +34 -0
- package/dist/paraglide/messages/image_filters_invert.d.ts +4 -0
- package/dist/paraglide/messages/image_filters_invert.js +34 -0
- package/dist/paraglide/messages/image_filters_reset.d.ts +4 -0
- package/dist/paraglide/messages/image_filters_reset.js +34 -0
- package/dist/paraglide/messages/image_filters_saturation.d.ts +4 -0
- package/dist/paraglide/messages/image_filters_saturation.js +34 -0
- package/dist/paraglide/messages/plugins_tooltip.js +1 -1
- package/dist/plugins/annotation-editor/AnnotationEditorController.svelte +166 -0
- package/dist/plugins/annotation-editor/AnnotationEditorController.svelte.d.ts +9 -0
- package/dist/plugins/annotation-editor/AnnotationEditorPanel.svelte +315 -0
- package/dist/plugins/annotation-editor/AnnotationEditorPanel.svelte.d.ts +24 -0
- package/dist/plugins/annotation-editor/AnnotationManager.svelte.d.ts +39 -0
- package/dist/plugins/annotation-editor/AnnotationManager.svelte.js +433 -0
- package/dist/plugins/annotation-editor/adapters/LocalStorageAdapter.d.ts +20 -0
- package/dist/plugins/annotation-editor/adapters/LocalStorageAdapter.js +67 -0
- package/dist/plugins/annotation-editor/adapters/index.d.ts +2 -0
- package/dist/plugins/annotation-editor/adapters/index.js +1 -0
- package/dist/plugins/annotation-editor/adapters/types.d.ts +23 -0
- package/dist/plugins/annotation-editor/adapters/types.js +1 -0
- package/dist/plugins/annotation-editor/iife-entry.d.ts +15 -0
- package/dist/plugins/annotation-editor/iife-entry.js +35 -0
- package/dist/plugins/annotation-editor/index.d.ts +41 -0
- package/dist/plugins/annotation-editor/index.js +57 -0
- package/dist/plugins/annotation-editor/loader.svelte.d.ts +7 -0
- package/dist/plugins/annotation-editor/loader.svelte.js +32 -0
- package/dist/plugins/annotation-editor/types.d.ts +41 -0
- package/dist/plugins/annotation-editor/types.js +13 -0
- package/dist/plugins/annotation-editor.js +32824 -0
- package/dist/plugins/image-manipulation/ImageManipulationController.svelte +54 -0
- package/dist/plugins/image-manipulation/ImageManipulationController.svelte.d.ts +6 -0
- package/dist/plugins/image-manipulation/ImageManipulationPanel.svelte +19 -9
- package/dist/plugins/image-manipulation/ImageManipulationPanel.svelte.d.ts +1 -0
- package/dist/plugins/image-manipulation/iife-entry.d.ts +13 -0
- package/dist/plugins/image-manipulation/iife-entry.js +17 -0
- package/dist/plugins/image-manipulation/index.d.ts +15 -1
- package/dist/plugins/image-manipulation/index.js +21 -1
- package/dist/plugins/image-manipulation.js +265 -0
- package/dist/state/i18n.svelte.js +4 -2
- package/dist/state/manifests.svelte.d.ts +5 -0
- package/dist/state/manifests.svelte.js +42 -13
- package/dist/state/viewer.svelte.d.ts +14 -13
- package/dist/state/viewer.svelte.js +63 -74
- package/dist/triiiceratops-bundle.js +3208 -3126
- package/dist/triiiceratops-element.iife.js +99 -0
- package/dist/triiiceratops.css +1 -1
- package/dist/types/plugin.d.ts +21 -62
- package/dist/types/plugin.js +1 -23
- package/dist/utils/annotationAdapter.d.ts +12 -1
- package/dist/utils/annotationAdapter.js +98 -39
- package/package.json +13 -6
- package/dist/chunks/TriiiceratopsViewer-EViTQO_n.js +0 -10437
- package/dist/chunks/openseadragon-CHvATAD9.js +0 -12427
- package/dist/components/TriiiceratopsViewerElementImage.svelte +0 -143
- package/dist/components/TriiiceratopsViewerElementImage.svelte.d.ts +0 -27
- package/dist/custom-element-image.d.ts +0 -1
- package/dist/custom-element-image.js +0 -2
- package/dist/plugins/image-manipulation/ImageManipulationPlugin.svelte.d.ts +0 -19
- package/dist/plugins/image-manipulation/ImageManipulationPlugin.svelte.js +0 -87
- package/dist/triiiceratops-element-image.js +0 -555
- package/dist/triiiceratops-element.js +0 -114
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as a from "svelte/internal/client";
|
|
3
|
+
import { g as N } from "./X-DZEgXrJ8.js";
|
|
4
|
+
var O = a.from_svg('<path d="M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"></path>'), P = a.from_svg('<path d="M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z" opacity="0.2"></path><path d="M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"></path>', 1), Q = a.from_svg('<path d="M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"></path>'), R = a.from_svg('<path d="M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"></path>'), S = a.from_svg('<path d="M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"></path>'), T = a.from_svg('<path d="M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"></path>'), W = a.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
|
|
5
|
+
function $(L, r) {
|
|
6
|
+
a.push(r, !0);
|
|
7
|
+
const f = N();
|
|
8
|
+
let x = a.rest_props(r, ["$$slots", "$$events", "$$legacy", "children"]), i = a.derived(() => r.weight ?? f.weight ?? "regular"), M = a.derived(() => r.color ?? f.color ?? "currentColor"), u = a.derived(() => r.size ?? f.size ?? "1em"), Z = a.derived(() => r.mirrored ?? f.mirrored ?? !1);
|
|
9
|
+
function A(e) {
|
|
10
|
+
let { weight: t, color: s, size: w, mirrored: V, ...o } = e;
|
|
11
|
+
return o;
|
|
12
|
+
}
|
|
13
|
+
var p = W();
|
|
14
|
+
a.attribute_effect(
|
|
15
|
+
p,
|
|
16
|
+
(e, t) => ({
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
role: "img",
|
|
19
|
+
width: a.get(u),
|
|
20
|
+
height: a.get(u),
|
|
21
|
+
fill: a.get(M),
|
|
22
|
+
transform: a.get(Z) ? "scale(-1, 1)" : void 0,
|
|
23
|
+
viewBox: "0 0 256 256",
|
|
24
|
+
...e,
|
|
25
|
+
...t
|
|
26
|
+
}),
|
|
27
|
+
[() => A(f), () => A(x)]
|
|
28
|
+
);
|
|
29
|
+
var H = a.child(p);
|
|
30
|
+
{
|
|
31
|
+
var C = (e) => {
|
|
32
|
+
var t = a.comment(), s = a.first_child(t);
|
|
33
|
+
a.snippet(s, () => r.children), a.append(e, t);
|
|
34
|
+
};
|
|
35
|
+
a.if(H, (e) => {
|
|
36
|
+
r.children && e(C);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
var b = a.sibling(H, 2);
|
|
40
|
+
{
|
|
41
|
+
var z = (e) => {
|
|
42
|
+
var t = O();
|
|
43
|
+
a.append(e, t);
|
|
44
|
+
}, y = (e) => {
|
|
45
|
+
var t = a.comment(), s = a.first_child(t);
|
|
46
|
+
{
|
|
47
|
+
var w = (o) => {
|
|
48
|
+
var g = P();
|
|
49
|
+
a.next(), a.append(o, g);
|
|
50
|
+
}, V = (o) => {
|
|
51
|
+
var g = a.comment(), k = a.first_child(g);
|
|
52
|
+
{
|
|
53
|
+
var B = (l) => {
|
|
54
|
+
var h = Q();
|
|
55
|
+
a.append(l, h);
|
|
56
|
+
}, I = (l) => {
|
|
57
|
+
var h = a.comment(), U = a.first_child(h);
|
|
58
|
+
{
|
|
59
|
+
var j = (n) => {
|
|
60
|
+
var m = R();
|
|
61
|
+
a.append(n, m);
|
|
62
|
+
}, q = (n) => {
|
|
63
|
+
var m = a.comment(), D = a.first_child(m);
|
|
64
|
+
{
|
|
65
|
+
var E = (v) => {
|
|
66
|
+
var _ = S();
|
|
67
|
+
a.append(v, _);
|
|
68
|
+
}, F = (v) => {
|
|
69
|
+
var _ = a.comment(), G = a.first_child(_);
|
|
70
|
+
{
|
|
71
|
+
var J = (d) => {
|
|
72
|
+
var c = T();
|
|
73
|
+
a.append(d, c);
|
|
74
|
+
}, K = (d) => {
|
|
75
|
+
var c = a.text();
|
|
76
|
+
c.nodeValue = (console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'), ""), a.append(d, c);
|
|
77
|
+
};
|
|
78
|
+
a.if(
|
|
79
|
+
G,
|
|
80
|
+
(d) => {
|
|
81
|
+
a.get(i) === "thin" ? d(J) : d(K, !1);
|
|
82
|
+
},
|
|
83
|
+
!0
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
a.append(v, _);
|
|
87
|
+
};
|
|
88
|
+
a.if(
|
|
89
|
+
D,
|
|
90
|
+
(v) => {
|
|
91
|
+
a.get(i) === "regular" ? v(E) : v(F, !1);
|
|
92
|
+
},
|
|
93
|
+
!0
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
a.append(n, m);
|
|
97
|
+
};
|
|
98
|
+
a.if(
|
|
99
|
+
U,
|
|
100
|
+
(n) => {
|
|
101
|
+
a.get(i) === "light" ? n(j) : n(q, !1);
|
|
102
|
+
},
|
|
103
|
+
!0
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
a.append(l, h);
|
|
107
|
+
};
|
|
108
|
+
a.if(
|
|
109
|
+
k,
|
|
110
|
+
(l) => {
|
|
111
|
+
a.get(i) === "fill" ? l(B) : l(I, !1);
|
|
112
|
+
},
|
|
113
|
+
!0
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
a.append(o, g);
|
|
117
|
+
};
|
|
118
|
+
a.if(
|
|
119
|
+
s,
|
|
120
|
+
(o) => {
|
|
121
|
+
a.get(i) === "duotone" ? o(w) : o(V, !1);
|
|
122
|
+
},
|
|
123
|
+
!0
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
a.append(e, t);
|
|
127
|
+
};
|
|
128
|
+
a.if(b, (e) => {
|
|
129
|
+
a.get(i) === "bold" ? e(z) : e(y, !1);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
a.reset(p), a.append(L, p), a.pop();
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
$ as A
|
|
136
|
+
};
|