@3cr/viewer-browser 0.0.22 → 0.0.24

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.
@@ -12157,7 +12157,7 @@ function Pa(e) {
12157
12157
  }
12158
12158
  function D0(e) {
12159
12159
  const t = "0px", n = document.getElementById("unity-canvas"), l = {};
12160
- return e.Anchor === Ie.TOP && (l.left = "50%", l.transform = "translateX(-50%)"), e.Anchor === Ie.BOTTOM && (l.left = "50%", l.transform = "translateX(-50%)"), e.Anchor === Ie.LEFT && (l.top = "50%", l.transform = "translateY(-50%)"), e.Anchor === Ie.RIGHT && (l.top = "50%", l.transform = "translateY(-50%)"), (e.Anchor === Ie.TOP_LEFT || e.Anchor === Ie.TOP || e.Anchor === Ie.TOP_RIGHT || e.Anchor === Ie.CENTER) && (l.top = t), (e.Anchor === Ie.LEFT || e.Anchor === Ie.BOTTOM_LEFT || e.Anchor === Ie.TOP_LEFT || e.Anchor === Ie.CENTER) && (l.left = t), (e.Anchor === Ie.RIGHT || e.Anchor === Ie.TOP_RIGHT || e.Anchor === Ie.BOTTOM_RIGHT) && (l.right = t), (e.Anchor === Ie.BOTTOM || e.Anchor === Ie.BOTTOM_LEFT || e.Anchor === Ie.BOTTOM_RIGHT) && (l.bottom = "4px"), (e.Anchor === Ie.TOP_LEFT || e.Anchor === Ie.CENTER) && (l["border-top-left-radius"] = t), (e.Anchor === Ie.TOP_RIGHT || e.Anchor === Ie.CENTER) && (l["border-top-right-radius"] = t), (e.Anchor === Ie.BOTTOM_LEFT || e.Anchor === Ie.CENTER) && (l["border-bottom-left-radius"] = t), (e.Anchor === Ie.BOTTOM_RIGHT || e.Anchor === Ie.CENTER) && (l["border-bottom-right-radius"] = t), l.width = `calc(${e.MaxSize.X * 100}% - ${t})`, l.height = `calc(${e.MaxSize.Y * 100}% - 2px)`, e.Anchor === Ie.CENTER && (l.width = `calc(${e.MaxSize.X * 100}% - ${t} - ${t})`, l.height = `calc(${e.MaxSize.Y * 100}% - 2px - 2px)`), e.AspectRatio === 1 && (e.MaxSize.X === 1 && (l.width = `calc(${e.MaxSize.Y * Pa(n?.offsetHeight)}px)`), e.MaxSize.Y === 1 && (l.height = `calc(${e.MaxSize.X * Pa(n?.offsetWidth)}px)`)), l;
12160
+ return e.Anchor === Ie.TOP && (l.left = "50%", l.transform = "translateX(-50%)"), e.Anchor === Ie.BOTTOM && (l.left = "50%", l.transform = "translateX(-50%)"), e.Anchor === Ie.LEFT && (l.top = "50%", l.transform = "translateY(-50%)"), e.Anchor === Ie.RIGHT && (l.top = "50%", l.transform = "translateY(-50%)"), (e.Anchor === Ie.TOP_LEFT || e.Anchor === Ie.TOP || e.Anchor === Ie.TOP_RIGHT || e.Anchor === Ie.CENTER) && (l.top = t), (e.Anchor === Ie.LEFT || e.Anchor === Ie.BOTTOM_LEFT || e.Anchor === Ie.TOP_LEFT || e.Anchor === Ie.CENTER) && (l.left = t), (e.Anchor === Ie.RIGHT || e.Anchor === Ie.TOP_RIGHT || e.Anchor === Ie.BOTTOM_RIGHT) && (l.right = t), (e.Anchor === Ie.BOTTOM || e.Anchor === Ie.BOTTOM_LEFT || e.Anchor === Ie.BOTTOM_RIGHT) && (l.bottom = "4px"), (e.Anchor === Ie.TOP_LEFT || e.Anchor === Ie.CENTER) && (l["border-top-left-radius"] = t), (e.Anchor === Ie.TOP_RIGHT || e.Anchor === Ie.CENTER) && (l["border-top-right-radius"] = t), (e.Anchor === Ie.BOTTOM_LEFT || e.Anchor === Ie.CENTER) && (l["border-bottom-left-radius"] = t), (e.Anchor === Ie.BOTTOM_RIGHT || e.Anchor === Ie.CENTER) && (l["border-bottom-right-radius"] = t), l.width = `calc(${e.MaxSize.X * 100}% - ${t})`, l.height = `calc(${e.MaxSize.Y * 100}% - 2px)`, e.Anchor === Ie.CENTER && (l.width = `calc(${e.MaxSize.X * 100}% - ${t} - ${t})`, l.height = `calc(${e.MaxSize.Y * 100}% - 2px - 2px)`), e.AspectRatio === 1 && (e.MaxSize.X === 1 && (l.width = `calc(${e.MaxSize.Y * Pa(n?.offsetHeight)}px)`), e.MaxSize.Y === 1 && (l.height = `calc(${e.MaxSize.X * Pa(n?.offsetWidth)}px)`)), console.log(l), l;
12161
12161
  }
12162
12162
  var Il = /* @__PURE__ */ ((e) => (e.scan_loading = "scan_loading", e.file_management = "file_management", e.view_selection = "view_selection", e.layout = "layout", e.presets = "presets", e.sliders = "sliders", e.scan_orientation = "scan_orientation", e.scan_movement = "scan_movement", e.interactivity = "interactivity", e))(Il || {}), sv = /* @__PURE__ */ ((e) => (e.fm01 = "fm_01", e.fm02 = "fm_02", e))(sv || {}), uv = /* @__PURE__ */ ((e) => (e.so01 = "so_01", e))(uv || {}), no = /* @__PURE__ */ ((e) => (e.pr01 = "pr_01", e.pr02 = "pr_02", e))(no || {}), lo = /* @__PURE__ */ ((e) => (e.sm01 = "sm_01", e.sm02 = "sm_02", e.sm03 = "sm_03", e.sm04 = "sm_04", e.sm05 = "sm_05", e.sm06 = "sm_06", e.sm07 = "sm_07", e.sm08 = "sm_08", e.sm09 = "sm_09", e.sm10 = "sm_10", e.sm11 = "sm_11", e.sm12 = "sm_12", e))(lo || {}), rt = /* @__PURE__ */ ((e) => (e.sl01 = "sl_01", e.sl02 = "sl_02", e.sl03 = "sl_03", e.sl04 = "sl_04", e.sl05 = "sl_05", e.sl06 = "sl_06", e.sl07 = "sl_07", e.sl08 = "sl_08", e.sl09 = "sl_09", e.sl10 = "sl_10", e.sl11 = "sl_11", e.sl12 = "sl_12", e.sl13 = "sl_13", e.sl14 = "sl_14", e.sl15 = "sl_15", e.sl16 = "sl_16", e))(rt || {});
12163
12163
  function cv() {
@@ -17222,7 +17222,7 @@ const iw = J({
17222
17222
  alterValue: ue,
17223
17223
  load: ie
17224
17224
  });
17225
- const l = e, o = JSON.stringify({ Version: "1.1.0" }), a = Z(!1), i = Z(!0), r = Z(!0), s = Z(!0), c = Z(!0), u = Z(cv()), f = Z(k0()), v = Z(null), m = Z(0), h = Z("lo_02"), g = Z([
17225
+ const l = e, o = { Version: "1.1.0" }, a = Z(!1), i = Z(!0), r = Z(!0), s = Z(!0), c = Z(!0), u = Z(cv()), f = Z(k0()), v = Z(null), m = Z(0), h = Z("lo_02"), g = Z([
17226
17226
  {
17227
17227
  text: "Reset Scan",
17228
17228
  icon: "refresh",