@dcrackel/meyersquaredui 1.0.257 → 1.0.260
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/meyersquaredui.es.js +15 -5
- package/dist/meyersquaredui.umd.js +4 -4
- package/package.json +1 -1
- package/src/mocks/getDEWithBouts32.js +2342 -0
- package/src/mocks/getDEWithBouts64.js +4483 -0
- package/src/stories/Organisms/Tableau/Tableau.stories.js +3 -2
- package/src/stories/Organisms/Tableau/Tableau.vue +23 -5
- package/src/stories/Organisms/Tableau/layout/TableauLayoutEngine.js +5 -1
- package/src/mocks/getDEWithBouts2.js +0 -7360
|
@@ -8033,7 +8033,11 @@ const pd = /* @__PURE__ */ S(md, [["render", fd]]), bd = {
|
|
|
8033
8033
|
padByDepthPx: [0, 32, 96, 224, 480, 992, 2016],
|
|
8034
8034
|
gapByDepthPx: [20, 84, 212, 468, 980, 2004, 0],
|
|
8035
8035
|
thirdPlacePadBiasPx: 120,
|
|
8036
|
-
|
|
8036
|
+
splitFinalPadTopByBracket: {
|
|
8037
|
+
"Table of 64": 430,
|
|
8038
|
+
"Table of 128": 940,
|
|
8039
|
+
"Table of 32": 170
|
|
8040
|
+
}
|
|
8037
8041
|
};
|
|
8038
8042
|
function yd({ rootEl: r, getOutAnchorEl: e, getInAnchorEl: t }) {
|
|
8039
8043
|
function i() {
|
|
@@ -8549,7 +8553,7 @@ const Fd = /* @__PURE__ */ S(qd, [["render", Vd]]), Jd = {
|
|
|
8549
8553
|
},
|
|
8550
8554
|
computed: {
|
|
8551
8555
|
isSplitMode() {
|
|
8552
|
-
return ["Table of
|
|
8556
|
+
return ["Table of 64", "Table of 128", "Table of 256"].includes(this.bracketSize);
|
|
8553
8557
|
},
|
|
8554
8558
|
splitData() {
|
|
8555
8559
|
return this.isSplitMode ? vd(this.bouts) : null;
|
|
@@ -8573,11 +8577,12 @@ const Fd = /* @__PURE__ */ S(qd, [["render", Vd]]), Jd = {
|
|
|
8573
8577
|
}
|
|
8574
8578
|
},
|
|
8575
8579
|
mounted() {
|
|
8576
|
-
|
|
8580
|
+
var r;
|
|
8581
|
+
this.ro = new ResizeObserver(() => this.recompute()), this.ro.observe(this.$refs.rootEl), this.$refs.scrollEl.addEventListener("scroll", this.recompute, { passive: !0 }), this.$nextTick(() => this.recompute()), (r = document.fonts) != null && r.ready && document.fonts.ready.then(() => this.recompute()), window.addEventListener("load", this.recompute, { once: !0 }), requestAnimationFrame(() => requestAnimationFrame(() => this.recompute()));
|
|
8577
8582
|
},
|
|
8578
8583
|
beforeUnmount() {
|
|
8579
8584
|
var r;
|
|
8580
|
-
this.ro && this.ro.disconnect(), (r = this.$refs.scrollEl) == null || r.removeEventListener("scroll", this.recompute);
|
|
8585
|
+
this.ro && this.ro.disconnect(), (r = this.$refs.scrollEl) == null || r.removeEventListener("scroll", this.recompute), window.removeEventListener("load", this.recompute);
|
|
8581
8586
|
},
|
|
8582
8587
|
watch: {
|
|
8583
8588
|
bouts: {
|
|
@@ -8635,9 +8640,14 @@ const Fd = /* @__PURE__ */ S(qd, [["render", Vd]]), Jd = {
|
|
|
8635
8640
|
}, {});
|
|
8636
8641
|
},
|
|
8637
8642
|
getRoundLayout(r) {
|
|
8643
|
+
var w;
|
|
8638
8644
|
const e = bd, t = this.normalizeRoundNumber(r), n = (e.gapByDepthPx || [])[t] ?? e.baseGapPx * Math.pow(2, t), s = e.baseGapPx * Math.pow(2, Math.max(0, t - 1)), o = t === 0 ? 0 : s / 2, l = (e.padByDepthPx || [])[t], f = r === "Final" ? 0 : r === "Third Place" ? e.thirdPlacePadBiasPx : 0, b = this.isSplitMode && r === "Final";
|
|
8639
8645
|
let y = (l !== void 0 ? l : o) + f;
|
|
8640
|
-
|
|
8646
|
+
if (b) {
|
|
8647
|
+
const v = this.bracketSize, A = (w = e.splitFinalPadTopByBracket) == null ? void 0 : w[v], k = A !== void 0 ? A : e.splitFinalPadTopPx;
|
|
8648
|
+
k !== void 0 && (y = k + f);
|
|
8649
|
+
}
|
|
8650
|
+
return b && (y += 0), console.log(
|
|
8641
8651
|
"layout",
|
|
8642
8652
|
r,
|
|
8643
8653
|
"depth",
|