bwin 0.1.2 → 0.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.
Files changed (2) hide show
  1. package/dist/bwin.js +8 -2
  2. package/package.json +1 -1
package/dist/bwin.js CHANGED
@@ -737,14 +737,17 @@ class T {
737
737
  f(this, "containerElement", null);
738
738
  f(this, "debug", at);
739
739
  let i = null;
740
- t instanceof V ? (i = t, this.rootSash = t) : (i = new K(t), this.rootSash = i.buildSashTree()), this.fitContainer = i.fitContainer, this.windowElement = this.createWindow(), this.glaze();
740
+ t instanceof V ? (i = t, this.rootSash = t) : (i = new K(t), this.rootSash = i.buildSashTree()), this.fitContainer = i.fitContainer;
741
+ }
742
+ frame(t) {
743
+ this.containerElement = t, this.windowElement = this.createWindow(), this.glaze(), this.containerElement.append(this.windowElement);
741
744
  }
742
745
  // Features can work independently to each other
743
746
  enableFeatures() {
744
747
  this.enableResize(), this.enableDrop(), this.fitContainer && this.enableFitContainer();
745
748
  }
746
749
  mount(t) {
747
- this.containerElement = t, this.containerElement.append(this.windowElement), this.enableFeatures();
750
+ this.frame(t), this.enableFeatures();
748
751
  }
749
752
  static assemble(...t) {
750
753
  t.forEach((i) => {
@@ -970,6 +973,9 @@ class bt extends T {
970
973
  constructor() {
971
974
  super(...arguments);
972
975
  f(this, "sillElement", null);
976
+ }
977
+ frame() {
978
+ super.frame(...arguments);
973
979
  const i = C("<bw-sill />");
974
980
  this.windowElement.append(i), this.sillElement = i;
975
981
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "bwin",
3
3
  "description": "A tiling window manager for web browsers",
4
4
  "type": "module",
5
- "version": "0.1.2",
5
+ "version": "0.1.4",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/bhjsdev/bwin.git"