bwin 0.1.3 → 0.1.5
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/bwin.js +13 -10
- package/package.json +1 -1
package/dist/bwin.js
CHANGED
|
@@ -309,7 +309,7 @@ const S = {
|
|
|
309
309
|
size: "50%",
|
|
310
310
|
position: r.Left
|
|
311
311
|
};
|
|
312
|
-
class
|
|
312
|
+
class A {
|
|
313
313
|
constructor({
|
|
314
314
|
parentRect: t,
|
|
315
315
|
children: i,
|
|
@@ -411,7 +411,7 @@ class R {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
createPrimaryConfigNode({ size: t, position: i, children: n, id: s, minWidth: o, minHeight: h, ...l }) {
|
|
414
|
-
return new
|
|
414
|
+
return new A({
|
|
415
415
|
parentRect: this,
|
|
416
416
|
size: t ?? S.size,
|
|
417
417
|
position: i ?? S.position,
|
|
@@ -423,7 +423,7 @@ class R {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
createSecondaryConfigNode({ size: t, position: i, children: n, id: s, minWidth: o, minHeight: h, ...l }, a) {
|
|
426
|
-
return new
|
|
426
|
+
return new A({
|
|
427
427
|
parentRect: this,
|
|
428
428
|
size: t,
|
|
429
429
|
position: i,
|
|
@@ -450,22 +450,22 @@ class R {
|
|
|
450
450
|
)), s && o && (t.children.push(s.buildSashTree()), t.children.push(o.buildSashTree())), t;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const
|
|
453
|
+
const R = {
|
|
454
454
|
width: 333,
|
|
455
455
|
height: 333
|
|
456
456
|
}, D = {
|
|
457
457
|
fitContainer: !1
|
|
458
458
|
};
|
|
459
|
-
class K extends
|
|
459
|
+
class K extends A {
|
|
460
460
|
constructor({
|
|
461
461
|
id: t,
|
|
462
462
|
children: i,
|
|
463
|
-
width: n =
|
|
464
|
-
height: s =
|
|
463
|
+
width: n = R.width,
|
|
464
|
+
height: s = R.height,
|
|
465
465
|
fitContainer: o = D.fitContainer,
|
|
466
466
|
...h
|
|
467
467
|
} = {
|
|
468
|
-
...
|
|
468
|
+
...R,
|
|
469
469
|
...D
|
|
470
470
|
}) {
|
|
471
471
|
super({
|
|
@@ -669,10 +669,13 @@ const st = {
|
|
|
669
669
|
}
|
|
670
670
|
}, ht = {
|
|
671
671
|
fitContainer: !1,
|
|
672
|
+
fit() {
|
|
673
|
+
this.rootSash.width = this.containerElement.clientWidth, this.rootSash.height = this.containerElement.clientHeight, this.update();
|
|
674
|
+
},
|
|
672
675
|
enableFitContainer() {
|
|
673
676
|
new ResizeObserver((t) => {
|
|
674
677
|
for (const i of t)
|
|
675
|
-
i.target === this.containerElement && this.fitContainer &&
|
|
678
|
+
i.target === this.containerElement && this.fitContainer && this.fit();
|
|
676
679
|
}).observe(this.containerElement);
|
|
677
680
|
}
|
|
678
681
|
}, rt = {
|
|
@@ -730,7 +733,7 @@ const st = {
|
|
|
730
733
|
this.onPaneDrop(e, i), typeof i.store.onDrop == "function" && i.store.onDrop(e, i), this.activeDropPaneEl.removeAttribute("drop-area"), this.activeDropPaneEl = null;
|
|
731
734
|
});
|
|
732
735
|
}
|
|
733
|
-
}, at = !
|
|
736
|
+
}, at = !0;
|
|
734
737
|
class T {
|
|
735
738
|
constructor(t) {
|
|
736
739
|
f(this, "windowElement", null);
|