@annotorious/openseadragon 3.1.3 → 3.1.4
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.
|
@@ -3115,9 +3115,14 @@ function Cg(r, t, e) {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
}, y = () => {
|
|
3117
3117
|
if (!c) return;
|
|
3118
|
-
const g =
|
|
3118
|
+
const g = u.slice(0, -1);
|
|
3119
|
+
if (g.length < 3) return;
|
|
3120
|
+
const v = {
|
|
3119
3121
|
type: Tt.POLYGON,
|
|
3120
|
-
geometry: {
|
|
3122
|
+
geometry: {
|
|
3123
|
+
bounds: yn(u),
|
|
3124
|
+
points: g
|
|
3125
|
+
}
|
|
3121
3126
|
};
|
|
3122
3127
|
ba(v) > 4 && (e(0, u = []), e(1, c = void 0), s("create", v));
|
|
3123
3128
|
}, x = () => {
|