jsgui3-server 0.0.102 → 0.0.103

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.
@@ -61,7 +61,8 @@ class Demo_UI extends Active_HTML_Document {
61
61
 
62
62
  const window = new controls.Window({
63
63
  context: context,
64
- title: 'jsgui3-html Window Control'
64
+ title: 'jsgui3-html Window Control',
65
+ pos: [10, 10]
65
66
  })
66
67
  this.body.add(window);
67
68
 
@@ -122,7 +123,7 @@ class Demo_UI extends Active_HTML_Document {
122
123
  //
123
124
 
124
125
  // Would need to parse the JS files to extract the CSS.
125
- // Maybe could do it an easier way???
126
+ // Maybe could do it an easier way??? Now that it's easy, want a faster way.
126
127
 
127
128
 
128
129
  Demo_UI.css = `
@@ -56,7 +56,7 @@ class Demo_UI extends Active_HTML_Document {
56
56
 
57
57
  //console.log('this.body', this.body);
58
58
  //console.log('this.body.add_class', this.body.add_class);
59
-
59
+
60
60
 
61
61
  const compose = () => {
62
62
  // put 20 of them in place.
@@ -65,12 +65,24 @@ class Demo_UI extends Active_HTML_Document {
65
65
 
66
66
  const num_windows = 5;
67
67
 
68
+ let [x, y] = [0, 0];
69
+
70
+ // pos property?
71
+ //. consider a pos_info or pos_details property, or use another class to help with it.
72
+
73
+ // the .pos property would be a nice shortcut.
74
+ //. seems more like it's for enhanced controls? Not sure.
75
+
76
+
68
77
  for (let c = 1; c <= num_windows; c++) {
69
78
  const window = new controls.Window({
70
79
  context: context,
71
- title: c + ') jsgui3-html Window Control'
80
+ title: c + ') jsgui3-html Window Control',
81
+ pos: [x, y]
72
82
  })
73
83
  this.body.add(window);
84
+
85
+ x += 32; y += 64;
74
86
  }
75
87
 
76
88
  /*
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "esbuild": "^0.19.4",
15
15
  "fnl": "^0.0.29",
16
16
  "fnlfs": "^0.0.29",
17
- "jsgui3-client": "^0.0.87",
17
+ "jsgui3-client": "^0.0.88",
18
18
  "jsgui3-webpage": "^0.0.6",
19
19
  "jsgui3-website": "^0.0.6",
20
20
  "lang-tools": "^0.0.18",
@@ -45,5 +45,5 @@
45
45
  "type": "git",
46
46
  "url": "https://github.com/metabench/jsgui3-server.git"
47
47
  },
48
- "version": "0.0.102"
48
+ "version": "0.0.103"
49
49
  }