@floegence/floe-webapp-core 0.101.40 → 0.101.41
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.
|
@@ -3,6 +3,12 @@ export type ImageAnnotationSurfaceProps = ImageDimensions & {
|
|
|
3
3
|
src: string;
|
|
4
4
|
label: string;
|
|
5
5
|
annotation?: ImageAnnotation;
|
|
6
|
+
/** Ordered markers rendered identically in the exported image. */
|
|
7
|
+
annotations?: readonly ImageAnnotation[];
|
|
8
|
+
activeIndex?: number;
|
|
9
|
+
onSelect?: (index: number) => void;
|
|
10
|
+
/** Number used for a new or independently edited annotation. */
|
|
11
|
+
marker?: number;
|
|
6
12
|
onChange?: (annotation: ImageAnnotation) => void;
|
|
7
13
|
disabled?: boolean;
|
|
8
14
|
zoom?: number;
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { use as
|
|
2
|
-
import { createSignal as
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
const [
|
|
1
|
+
import { use as O, insert as U, createComponent as D, effect as X, setAttribute as h, setStyleProperty as M, memo as W, className as _, template as F, delegateEvents as p } from "solid-js/web";
|
|
2
|
+
import { createSignal as j, createMemo as tt, onMount as et, onCleanup as it, For as G, Show as J } from "solid-js";
|
|
3
|
+
import { imageAnnotationMarkup as Q, validateImageAnnotation as Y, imagePointFromClient as nt } from "./imageAnnotation.js";
|
|
4
|
+
var at = /* @__PURE__ */ F("<div data-floe-image-annotation style=width:100%;height:100%;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain><div style=display:grid;place-items:center><svg xmlns=http://www.w3.org/2000/svg role=img style=display:block;user-select:none;flex:none><image></image><g data-annotation-target>"), rt = /* @__PURE__ */ F("<svg><g></svg>", !1, !0, !1), ot = /* @__PURE__ */ F("<svg><rect data-annotation-target fill=white stroke=#111827></svg>", !1, !0, !1);
|
|
5
|
+
function ct(e) {
|
|
6
|
+
let v, u;
|
|
7
|
+
const [L, V] = j({
|
|
8
8
|
width: 1,
|
|
9
9
|
height: 1
|
|
10
|
-
}), [
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
|
|
10
|
+
}), [N, k] = j();
|
|
11
|
+
let b, f;
|
|
12
|
+
const z = () => N() ?? e.annotation, w = tt(() => Math.min(L().width / e.width, L().height / e.height) * Math.max(1, e.zoom ?? 1)), Z = () => e.showAnnotation !== !1 && z() && Y(e, z()) ? Q(e, z(), e.marker ?? (e.activeIndex !== void 0 ? e.activeIndex + 1 : 1)) : "";
|
|
13
|
+
et(() => {
|
|
14
14
|
let i = 0;
|
|
15
|
-
const
|
|
15
|
+
const d = () => {
|
|
16
16
|
i = 0;
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
width:
|
|
17
|
+
const o = v.clientWidth, c = v.clientHeight;
|
|
18
|
+
V((s) => s.width === o && s.height === c ? s : {
|
|
19
|
+
width: o,
|
|
20
20
|
height: c
|
|
21
21
|
});
|
|
22
|
-
},
|
|
23
|
-
i || (i = requestAnimationFrame(
|
|
22
|
+
}, a = new ResizeObserver(() => {
|
|
23
|
+
i || (i = requestAnimationFrame(d));
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
a.observe(v), d(), it(() => {
|
|
26
|
+
a.disconnect(), cancelAnimationFrame(i);
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
const
|
|
29
|
+
const T = (i, d = !1) => nt(e, u.getBoundingClientRect(), {
|
|
30
30
|
x: i.clientX,
|
|
31
31
|
y: i.clientY
|
|
32
|
-
},
|
|
32
|
+
}, d), m = () => !!e.onChange && !e.disabled && !e.panning, B = (i) => {
|
|
33
33
|
if (f?.id === i.pointerId) {
|
|
34
|
-
|
|
34
|
+
v.scrollLeft = f.left + f.x - i.clientX, v.scrollTop = f.top + f.y - i.clientY;
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const
|
|
40
|
-
if (!
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const c =
|
|
44
|
-
|
|
45
|
-
...
|
|
46
|
-
x: Math.max(0, Math.min(e.width - c,
|
|
47
|
-
y: Math.max(0, Math.min(e.height - s,
|
|
37
|
+
const d = b;
|
|
38
|
+
if (!d || d.id !== i.pointerId || d.src !== e.src || !m()) return;
|
|
39
|
+
const a = T(i, !0);
|
|
40
|
+
if (!a) return;
|
|
41
|
+
const o = d.original;
|
|
42
|
+
if (o && d.corner === void 0) {
|
|
43
|
+
const c = o.kind === "rectangle" ? o.width : 0, s = o.kind === "rectangle" ? o.height : 0;
|
|
44
|
+
k({
|
|
45
|
+
...o,
|
|
46
|
+
x: Math.max(0, Math.min(e.width - c, o.x + a.x - d.start.x)),
|
|
47
|
+
y: Math.max(0, Math.min(e.height - s, o.y + a.y - d.start.y))
|
|
48
48
|
});
|
|
49
49
|
} else {
|
|
50
|
-
const c =
|
|
51
|
-
x:
|
|
52
|
-
y:
|
|
53
|
-
} :
|
|
54
|
-
Math.hypot(i.clientX -
|
|
50
|
+
const c = o?.kind === "rectangle" && d.corner !== void 0 ? {
|
|
51
|
+
x: o.x + (d.corner % 2 ? 0 : o.width),
|
|
52
|
+
y: o.y + (d.corner < 2 ? o.height : 0)
|
|
53
|
+
} : d.start, s = Math.abs(a.x - c.x), I = Math.abs(a.y - c.y);
|
|
54
|
+
Math.hypot(i.clientX - d.client.x, i.clientY - d.client.y) < 5 && !o ? k({
|
|
55
55
|
kind: "point",
|
|
56
56
|
...c
|
|
57
|
-
}) : s > 0 &&
|
|
57
|
+
}) : s > 0 && I > 0 && k({
|
|
58
58
|
kind: "rectangle",
|
|
59
|
-
x: Math.min(c.x,
|
|
60
|
-
y: Math.min(c.y,
|
|
59
|
+
x: Math.min(c.x, a.x),
|
|
60
|
+
y: Math.min(c.y, a.y),
|
|
61
61
|
width: s,
|
|
62
|
-
height:
|
|
62
|
+
height: I
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, E = (i, d = !1) => {
|
|
66
66
|
if (f?.id === i.pointerId) {
|
|
67
|
-
f = void 0,
|
|
67
|
+
f = void 0, u.hasPointerCapture(i.pointerId) && u.releasePointerCapture(i.pointerId);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
if (!
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
const i =
|
|
70
|
+
const a = b;
|
|
71
|
+
if (!a || a.id !== i.pointerId) return;
|
|
72
|
+
d || B(i);
|
|
73
|
+
const o = N();
|
|
74
|
+
b = void 0, k(void 0), u.hasPointerCapture(i.pointerId) && u.releasePointerCapture(i.pointerId), !d && a.src === e.src && m() && o && Y(e, o) && e.onChange?.(o);
|
|
75
|
+
}, $ = () => {
|
|
76
|
+
const i = z();
|
|
77
77
|
return i?.kind === "rectangle" ? [{
|
|
78
78
|
x: i.x,
|
|
79
79
|
y: i.y
|
|
@@ -89,82 +89,107 @@ function lt(e) {
|
|
|
89
89
|
}] : [];
|
|
90
90
|
};
|
|
91
91
|
return (() => {
|
|
92
|
-
var i =
|
|
93
|
-
typeof s == "function" ?
|
|
92
|
+
var i = at(), d = i.firstChild, a = d.firstChild, o = a.firstChild, c = o.nextSibling, s = v;
|
|
93
|
+
typeof s == "function" ? O(s, i) : v = i, a.$$keydown = (t) => {
|
|
94
94
|
if (!m()) return;
|
|
95
95
|
if (t.key === "Escape") {
|
|
96
|
-
|
|
96
|
+
b = void 0, k(void 0);
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const l = {
|
|
100
100
|
ArrowLeft: [-1, 0],
|
|
101
101
|
ArrowRight: [1, 0],
|
|
102
102
|
ArrowUp: [0, -1],
|
|
103
103
|
ArrowDown: [0, 1]
|
|
104
104
|
}[t.key];
|
|
105
|
-
if (!
|
|
105
|
+
if (!l && t.key !== "Enter" && t.key !== " ") return;
|
|
106
106
|
t.preventDefault();
|
|
107
|
-
const
|
|
107
|
+
const r = e.annotation ?? {
|
|
108
108
|
kind: "point",
|
|
109
109
|
x: e.width / 2,
|
|
110
110
|
y: e.height / 2
|
|
111
|
-
},
|
|
111
|
+
}, n = t.shiftKey ? 10 : 1;
|
|
112
112
|
e.onChange?.({
|
|
113
|
-
...
|
|
114
|
-
x: Math.max(0, Math.min(e.width - (
|
|
115
|
-
y: Math.max(0, Math.min(e.height - (
|
|
113
|
+
...r,
|
|
114
|
+
x: Math.max(0, Math.min(e.width - (r.kind === "rectangle" ? r.width : 0), r.x + (l?.[0] ?? 0) * n)),
|
|
115
|
+
y: Math.max(0, Math.min(e.height - (r.kind === "rectangle" ? r.height : 0), r.y + (l?.[1] ?? 0) * n))
|
|
116
116
|
});
|
|
117
|
-
},
|
|
117
|
+
}, a.addEventListener("lostpointercapture", (t) => E(t, !0)), a.addEventListener("pointercancel", (t) => E(t, !0)), a.$$pointerup = (t) => E(t), a.$$pointermove = B, a.$$pointerdown = (t) => {
|
|
118
118
|
if (e.panning && t.button === 0 && !f) {
|
|
119
119
|
f = {
|
|
120
120
|
id: t.pointerId,
|
|
121
121
|
x: t.clientX,
|
|
122
122
|
y: t.clientY,
|
|
123
|
-
left:
|
|
124
|
-
top:
|
|
125
|
-
},
|
|
123
|
+
left: v.scrollLeft,
|
|
124
|
+
top: v.scrollTop
|
|
125
|
+
}, u.setPointerCapture(t.pointerId), t.preventDefault();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (!m() || t.button !== 0 || b) return;
|
|
129
|
+
const l = T(t);
|
|
130
|
+
if (!l) return;
|
|
131
|
+
const r = t.target, n = r.closest("[data-annotation-index]")?.getAttribute("data-annotation-index");
|
|
132
|
+
if (n != null && Number(n) !== e.activeIndex) {
|
|
133
|
+
e.onSelect?.(Number(n)), t.preventDefault();
|
|
126
134
|
return;
|
|
127
135
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (!d) return;
|
|
131
|
-
const h = t.target, a = h.getAttribute("data-corner");
|
|
132
|
-
v = {
|
|
136
|
+
const g = r.getAttribute("data-corner");
|
|
137
|
+
b = {
|
|
133
138
|
id: t.pointerId,
|
|
134
|
-
start:
|
|
139
|
+
start: l,
|
|
135
140
|
client: {
|
|
136
141
|
x: t.clientX,
|
|
137
142
|
y: t.clientY
|
|
138
143
|
},
|
|
139
144
|
src: e.src,
|
|
140
|
-
...
|
|
145
|
+
...r.closest("[data-annotation-target]") ? {
|
|
141
146
|
original: e.annotation
|
|
142
147
|
} : {},
|
|
143
|
-
...
|
|
144
|
-
corner: Number(
|
|
148
|
+
...g !== null ? {
|
|
149
|
+
corner: Number(g)
|
|
145
150
|
} : {}
|
|
146
|
-
},
|
|
151
|
+
}, k(b.original ?? {
|
|
147
152
|
kind: "point",
|
|
148
|
-
...
|
|
149
|
-
}),
|
|
153
|
+
...l
|
|
154
|
+
}), u.setPointerCapture(t.pointerId), u.focus({
|
|
150
155
|
preventScroll: !0
|
|
151
156
|
}), t.preventDefault();
|
|
152
157
|
};
|
|
153
|
-
var
|
|
154
|
-
return typeof
|
|
158
|
+
var I = u;
|
|
159
|
+
return typeof I == "function" ? O(I, a) : u = a, U(a, D(G, {
|
|
160
|
+
get each() {
|
|
161
|
+
return e.annotations?.slice(0, 99);
|
|
162
|
+
},
|
|
163
|
+
children: (t, l) => D(J, {
|
|
164
|
+
get when() {
|
|
165
|
+
return W(() => e.showAnnotation !== !1 && l() !== e.activeIndex)() && Y(e, t);
|
|
166
|
+
},
|
|
167
|
+
get children() {
|
|
168
|
+
var r = rt();
|
|
169
|
+
return X((n) => {
|
|
170
|
+
var g = l(), x = Q(e, t, l() + 1), y = e.onSelect ? "pointer" : void 0;
|
|
171
|
+
return g !== n.e && h(r, "data-annotation-index", n.e = g), x !== n.t && (r.innerHTML = n.t = x), y !== n.a && M(r, "cursor", n.a = y), n;
|
|
172
|
+
}, {
|
|
173
|
+
e: void 0,
|
|
174
|
+
t: void 0,
|
|
175
|
+
a: void 0
|
|
176
|
+
}), r;
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
}), c), U(a, D(J, {
|
|
155
180
|
get when() {
|
|
156
|
-
return
|
|
181
|
+
return W(() => !!m())() && e.showAnnotation !== !1;
|
|
157
182
|
},
|
|
158
183
|
get children() {
|
|
159
|
-
return
|
|
184
|
+
return D(G, {
|
|
160
185
|
get each() {
|
|
161
|
-
return
|
|
186
|
+
return $();
|
|
162
187
|
},
|
|
163
|
-
children: (t,
|
|
164
|
-
var
|
|
165
|
-
return
|
|
166
|
-
var
|
|
167
|
-
return
|
|
188
|
+
children: (t, l) => (() => {
|
|
189
|
+
var r = ot();
|
|
190
|
+
return X((n) => {
|
|
191
|
+
var g = l(), x = t.x - 5 / w(), y = t.y - 5 / w(), C = 10 / w(), A = 10 / w(), S = 1 / w(), P = l() === 0 || l() === 3 ? "nwse-resize" : "nesw-resize";
|
|
192
|
+
return g !== n.e && h(r, "data-corner", n.e = g), x !== n.t && h(r, "x", n.t = x), y !== n.a && h(r, "y", n.a = y), C !== n.o && h(r, "width", n.o = C), A !== n.i && h(r, "height", n.i = A), S !== n.n && h(r, "stroke-width", n.n = S), P !== n.s && M(r, "cursor", n.s = P), n;
|
|
168
193
|
}, {
|
|
169
194
|
e: void 0,
|
|
170
195
|
t: void 0,
|
|
@@ -173,13 +198,13 @@ function lt(e) {
|
|
|
173
198
|
i: void 0,
|
|
174
199
|
n: void 0,
|
|
175
200
|
s: void 0
|
|
176
|
-
}),
|
|
201
|
+
}), r;
|
|
177
202
|
})()
|
|
178
203
|
});
|
|
179
204
|
}
|
|
180
|
-
}), null),
|
|
181
|
-
var
|
|
182
|
-
return
|
|
205
|
+
}), null), X((t) => {
|
|
206
|
+
var l = e.class, r = `${Math.max(L().width, e.width * w())}px`, n = `${Math.max(L().height, e.height * w())}px`, g = e.width * w(), x = e.height * w(), y = `0 0 ${e.width} ${e.height}`, C = e.label, A = m() ? 0 : void 0, S = m() || e.panning ? "none" : "auto", P = e.panning ? "grab" : m() ? "crosshair" : "default", H = e.src, R = e.width, q = e.height, K = Z();
|
|
207
|
+
return l !== t.e && _(i, t.e = l), r !== t.t && M(d, "width", t.t = r), n !== t.a && M(d, "height", t.a = n), g !== t.o && h(a, "width", t.o = g), x !== t.i && h(a, "height", t.i = x), y !== t.n && h(a, "viewBox", t.n = y), C !== t.s && h(a, "aria-label", t.s = C), A !== t.h && h(a, "tabindex", t.h = A), S !== t.r && M(a, "touch-action", t.r = S), P !== t.d && M(a, "cursor", t.d = P), H !== t.l && h(o, "href", t.l = H), R !== t.u && h(o, "width", t.u = R), q !== t.c && h(o, "height", t.c = q), K !== t.w && (c.innerHTML = t.w = K), t;
|
|
183
208
|
}, {
|
|
184
209
|
e: void 0,
|
|
185
210
|
t: void 0,
|
|
@@ -198,7 +223,7 @@ function lt(e) {
|
|
|
198
223
|
}), i;
|
|
199
224
|
})();
|
|
200
225
|
}
|
|
201
|
-
|
|
226
|
+
p(["pointerdown", "pointermove", "pointerup", "keydown"]);
|
|
202
227
|
export {
|
|
203
|
-
|
|
228
|
+
ct as ImageAnnotationSurface
|
|
204
229
|
};
|
|
@@ -27,5 +27,5 @@ export declare function imagePointFromClient(image: ImageDimensions, rect: Reado
|
|
|
27
27
|
height: number;
|
|
28
28
|
}>, client: ImagePoint, clamp?: boolean): ImagePoint | undefined;
|
|
29
29
|
/** One deterministic overlay is used by the editor and exported/model-visible PNG. */
|
|
30
|
-
export declare function imageAnnotationMarkup(image: ImageDimensions, annotation: ImageAnnotation): string;
|
|
31
|
-
export declare function annotateImage(source: Blob, annotation: ImageAnnotation): Promise<Blob>;
|
|
30
|
+
export declare function imageAnnotationMarkup(image: ImageDimensions, annotation: ImageAnnotation, marker?: number): string;
|
|
31
|
+
export declare function annotateImage(source: Blob, annotation: ImageAnnotation | readonly ImageAnnotation[]): Promise<Blob>;
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
function
|
|
2
|
-
return ![i.width, i.height].every((
|
|
1
|
+
function g(i, e) {
|
|
2
|
+
return ![i.width, i.height].every((r) => Number.isSafeInteger(r) && r > 0 && r <= 16384) || !e || ![e.x, e.y].every(Number.isFinite) || e.x < 0 || e.y < 0 || e.x > i.width || e.y > i.height ? !1 : e.kind === "point" ? !0 : e.kind === "rectangle" && [e.width, e.height].every((r) => Number.isFinite(r) && r > 0) && e.x + e.width <= i.width && e.y + e.height <= i.height;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function x(i, e, r, t = !1) {
|
|
5
5
|
if (e.width <= 0 || e.height <= 0) return;
|
|
6
|
-
const h = (
|
|
7
|
-
if (!(![h,
|
|
8
|
-
return { x: Math.max(0, Math.min(i.width, h)), y: Math.max(0, Math.min(i.height,
|
|
6
|
+
const h = (r.x - e.left) * i.width / e.width, n = (r.y - e.top) * i.height / e.height;
|
|
7
|
+
if (!(![h, n].every(Number.isFinite) || !t && (h < 0 || n < 0 || h > i.width || n > i.height)))
|
|
8
|
+
return { x: Math.max(0, Math.min(i.width, h)), y: Math.max(0, Math.min(i.height, n)) };
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
if (!
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
function $(i, e, r = 1) {
|
|
11
|
+
if (!Number.isSafeInteger(r) || r < 1 || r > 99) throw new Error("Invalid annotation marker");
|
|
12
|
+
if (!g(i, e)) throw new Error("Invalid image annotation");
|
|
13
|
+
const t = Math.max(1, Math.min(i.width, i.height) / 500), { x: h, y: n } = e, s = 9 * t, w = Math.max(s + t, Math.min(i.width - s - t, h + 17 * t)), o = Math.max(s + t, Math.min(i.height - s - t, n - 17 * t)), l = e.kind === "rectangle" ? `<rect x="${h}" y="${n}" width="${e.width}" height="${e.height}" fill="#f59e0b" fill-opacity=".08"/>` : `<path d="M${h - 6 * t},${n}h${12 * t}M${h},${n - 6 * t}v${12 * t}"/><circle cx="${h}" cy="${n}" r="${2 * t}" fill="#f59e0b"/>`;
|
|
14
|
+
return `<g fill="none" stroke-linejoin="round"><g stroke="#111827" stroke-width="${4 * t}">${l}</g><g stroke="#fbbf24" stroke-width="${2 * t}">${l}<path d="M${h},${n}L${w},${o}"/></g><circle cx="${w}" cy="${o}" r="${s}" fill="#fbbf24" stroke="#111827" stroke-width="${t}"/><text x="${w}" y="${o}" dy=".35em" text-anchor="middle" fill="#111827" stroke="none" font-family="sans-serif" font-size="${12 * t}" font-weight="700">${r}</text></g>`;
|
|
14
15
|
}
|
|
15
|
-
async function
|
|
16
|
-
const
|
|
17
|
-
let
|
|
16
|
+
async function y(i, e) {
|
|
17
|
+
const r = await createImageBitmap(i);
|
|
18
|
+
let t;
|
|
18
19
|
try {
|
|
19
|
-
const { width: h, height:
|
|
20
|
-
if (h *
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const
|
|
20
|
+
const { width: h, height: n } = r;
|
|
21
|
+
if (h * n > 32e6) throw new Error("Image exceeds annotation pixel limit");
|
|
22
|
+
const s = Array.isArray(e) ? e : [e];
|
|
23
|
+
if (!s.length || s.length > 99) throw new Error("Invalid annotation count");
|
|
24
|
+
const w = s.map((c, d) => $({ width: h, height: n }, c, d + 1)).join(""), o = document.createElement("canvas");
|
|
25
|
+
o.width = h, o.height = n;
|
|
26
|
+
const l = o.getContext("2d");
|
|
24
27
|
if (!l) throw new Error("Image annotation is unavailable");
|
|
25
|
-
l.drawImage(
|
|
26
|
-
const
|
|
27
|
-
return
|
|
28
|
+
l.drawImage(r, 0, 0), t = URL.createObjectURL(new Blob([`<svg xmlns="http://www.w3.org/2000/svg" width="${h}" height="${n}" viewBox="0 0 ${h} ${n}">${w}</svg>`], { type: "image/svg+xml" }));
|
|
29
|
+
const a = new Image();
|
|
30
|
+
return a.src = t, await a.decode(), l.drawImage(a, 0, 0), await new Promise((c, d) => o.toBlob((f) => f ? c(f) : d(new Error("Image annotation is unavailable")), "image/png"));
|
|
28
31
|
} finally {
|
|
29
|
-
|
|
32
|
+
r.close(), t && URL.revokeObjectURL(t);
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
y as annotateImage,
|
|
37
|
+
$ as imageAnnotationMarkup,
|
|
38
|
+
x as imagePointFromClient,
|
|
39
|
+
g as validateImageAnnotation
|
|
37
40
|
};
|