@annotorious/openseadragon 3.0.16 → 3.0.17

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.
@@ -120,7 +120,7 @@ let lp = () => ({
120
120
  }
121
121
  });
122
122
  const hp = 250, cp = (r, t) => {
123
- const e = lp(), i = [];
123
+ const e = lp(), i = t || [];
124
124
  let s = -1, n = !1, o = 0;
125
125
  const a = (f) => {
126
126
  if (!n) {
@@ -1295,7 +1295,7 @@ let mm = () => ({
1295
1295
  }
1296
1296
  });
1297
1297
  const gm = 250, ym = (r, t) => {
1298
- const e = mm(), i = [];
1298
+ const e = mm(), i = t || [];
1299
1299
  let s = -1, n = !1, o = 0;
1300
1300
  const a = (f) => {
1301
1301
  if (!n) {
@@ -4685,7 +4685,7 @@ const Ug = () => {
4685
4685
  drawingMode: "drag",
4686
4686
  userSelectAction: Cu.EDIT,
4687
4687
  theme: "light"
4688
- }), s = kg(i), { selection: n, store: o } = s, a = ym(o), l = vm(
4688
+ }), s = kg(i), { selection: n, store: o } = s, a = ym(o, i.initialHistory), l = vm(
4689
4689
  s,
4690
4690
  a,
4691
4691
  i.adapter,
@@ -31455,7 +31455,7 @@ const _u = (r, t) => {
31455
31455
  drawingMode: Mu ? "drag" : "click",
31456
31456
  userSelectAction: vu.EDIT,
31457
31457
  theme: "light"
31458
- }), i = ku(e), { hover: s, selection: n, store: o } = i, a = cp(o), l = up(
31458
+ }), i = ku(e), { hover: s, selection: n, store: o } = i, a = cp(o, e.initialHistory), l = up(
31459
31459
  i,
31460
31460
  a,
31461
31461
  e.adapter,