nodality 1.0.215 → 1.0.216

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 (241) hide show
  1. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  2. package/dist/animator.esm.js.LICENSE.txt +1 -1
  3. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  4. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  5. package/dist/base.cjs.js.LICENSE.txt +1 -1
  6. package/dist/base.esm.js.LICENSE.txt +1 -1
  7. package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
  8. package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
  9. package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
  10. package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
  11. package/dist/bundle.umd.js +1 -1
  12. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  13. package/dist/button.cjs.js +1 -1
  14. package/dist/button.cjs.js.LICENSE.txt +1 -1
  15. package/dist/button.esm.js +1 -1
  16. package/dist/button.esm.js.LICENSE.txt +1 -1
  17. package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
  18. package/dist/card-getter.esm.js.LICENSE.txt +1 -1
  19. package/dist/center.cjs.js +1 -1
  20. package/dist/center.cjs.js.LICENSE.txt +1 -1
  21. package/dist/center.esm.js +1 -1
  22. package/dist/center.esm.js.LICENSE.txt +1 -1
  23. package/dist/checkbox.cjs.js +1 -1
  24. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  25. package/dist/checkbox.esm.js +1 -1
  26. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  27. package/dist/code.cjs.js.LICENSE.txt +1 -1
  28. package/dist/code.esm.js.LICENSE.txt +1 -1
  29. package/dist/container.cjs.js +1 -1
  30. package/dist/container.cjs.js.LICENSE.txt +1 -1
  31. package/dist/container.esm.js +1 -1
  32. package/dist/container.esm.js.LICENSE.txt +1 -1
  33. package/dist/data-list.cjs.js.LICENSE.txt +1 -1
  34. package/dist/data-list.esm.js.LICENSE.txt +1 -1
  35. package/dist/designer.cjs.js +1 -1
  36. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  37. package/dist/designer.esm.js +1 -1
  38. package/dist/designer.esm.js.LICENSE.txt +1 -1
  39. package/dist/element-mapper.cjs.js +1 -1
  40. package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
  41. package/dist/element-mapper.esm.js +1 -1
  42. package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
  43. package/dist/finalresult.esm.js +1 -1
  44. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  45. package/dist/flex-card.cjs.js +1 -1
  46. package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
  47. package/dist/flex-card.esm.js +1 -1
  48. package/dist/flex-card.esm.js.LICENSE.txt +1 -1
  49. package/dist/flex-grid.cjs.js +1 -1
  50. package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
  51. package/dist/flex-grid.esm.js +1 -1
  52. package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
  53. package/dist/flex-row.cjs.js +1 -1
  54. package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
  55. package/dist/flex-row.esm.js +1 -1
  56. package/dist/flex-row.esm.js.LICENSE.txt +1 -1
  57. package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
  58. package/dist/floating-input.esm.js.LICENSE.txt +1 -1
  59. package/dist/free.cjs.js.LICENSE.txt +1 -1
  60. package/dist/free.esm.js.LICENSE.txt +1 -1
  61. package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
  62. package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
  63. package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
  64. package/dist/image-picker.esm.js.LICENSE.txt +1 -1
  65. package/dist/image.cjs.js +1 -1
  66. package/dist/image.cjs.js.LICENSE.txt +1 -1
  67. package/dist/image.esm.js +1 -1
  68. package/dist/image.esm.js.LICENSE.txt +1 -1
  69. package/dist/index.cjs.js +1 -1
  70. package/dist/index.cjs.js.LICENSE.txt +1 -1
  71. package/dist/index.esm.js +1 -1
  72. package/dist/index.esm.js.LICENSE.txt +1 -1
  73. package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
  74. package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
  75. package/dist/link-getter.cjs.js +1 -1
  76. package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
  77. package/dist/link-getter.esm.js +1 -1
  78. package/dist/link-getter.esm.js.LICENSE.txt +1 -1
  79. package/dist/link.cjs.js +1 -1
  80. package/dist/link.cjs.js.LICENSE.txt +1 -1
  81. package/dist/link.esm.js +1 -1
  82. package/dist/link.esm.js.LICENSE.txt +1 -1
  83. package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
  84. package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
  85. package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
  86. package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
  87. package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
  88. package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
  89. package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
  90. package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
  91. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  92. package/dist/picker.esm.js.LICENSE.txt +1 -1
  93. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  94. package/dist/progress.esm.js.LICENSE.txt +1 -1
  95. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  96. package/dist/radio.esm.js.LICENSE.txt +1 -1
  97. package/dist/range.cjs.js.LICENSE.txt +1 -1
  98. package/dist/range.esm.js.LICENSE.txt +1 -1
  99. package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
  100. package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
  101. package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
  102. package/dist/side-bar.esm.js.LICENSE.txt +1 -1
  103. package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
  104. package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
  105. package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
  106. package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
  107. package/dist/slider-2025.cjs.js +1 -1
  108. package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
  109. package/dist/slider-2025.esm.js +1 -1
  110. package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
  111. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  112. package/dist/spacer.esm.js.LICENSE.txt +1 -1
  113. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  114. package/dist/stack.esm.js.LICENSE.txt +1 -1
  115. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  116. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  117. package/dist/table.cjs.js.LICENSE.txt +1 -1
  118. package/dist/table.esm.js.LICENSE.txt +1 -1
  119. package/dist/text-field.cjs.js +1 -1
  120. package/dist/text-field.cjs.js.LICENSE.txt +1 -1
  121. package/dist/text-field.esm.js +1 -1
  122. package/dist/text-field.esm.js.LICENSE.txt +1 -1
  123. package/dist/text.cjs.js +1 -1
  124. package/dist/text.cjs.js.LICENSE.txt +1 -1
  125. package/dist/text.esm.js +1 -1
  126. package/dist/text.esm.js.LICENSE.txt +1 -1
  127. package/dist/theme.cjs.js.LICENSE.txt +1 -1
  128. package/dist/theme.esm.js.LICENSE.txt +1 -1
  129. package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
  130. package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
  131. package/dist/ulist.cjs.js +1 -1
  132. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  133. package/dist/ulist.esm.js +1 -1
  134. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  135. package/dist/video.cjs.js.LICENSE.txt +1 -1
  136. package/dist/video.esm.js.LICENSE.txt +1 -1
  137. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  138. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  139. package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
  140. package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
  141. package/layout/animator.js +1 -1
  142. package/layout/audio.js +1 -5
  143. package/layout/audionew.js +1 -1
  144. package/layout/base-2.js +1 -1
  145. package/layout/base.js +1 -1
  146. package/layout/beta-desktop-bar.js +1 -1
  147. package/layout/beta-mobile-bar.js +1 -1
  148. package/layout/button.js +7 -30
  149. package/layout/cards.js +6 -2
  150. package/layout/center.js +1 -29
  151. package/layout/checkbox.js +1 -5
  152. package/layout/circle.js +6 -2
  153. package/layout/code.js +1 -1
  154. package/layout/container.js +15 -16
  155. package/layout/dropdown-2025.js +1 -1
  156. package/layout/external-stylesheet.js +1 -1
  157. package/layout/flex-card.js +20 -10
  158. package/layout/flex-grid.js +1 -5
  159. package/layout/flex-row.js +2 -6
  160. package/layout/footer.js +1 -1
  161. package/layout/form-components/custom.js +1 -1
  162. package/layout/form-components/data-list.js +1 -1
  163. package/layout/form-components/floating-input.js +1 -1
  164. package/layout/form-components/form-all.js +1 -1
  165. package/layout/form-components/form.js +1 -1
  166. package/layout/form-components/image-picker.js +1 -1
  167. package/layout/form-components/picker.js +1 -1
  168. package/layout/form-components/radio.js +1 -1
  169. package/layout/form-components/radiogroup.js +1 -1
  170. package/layout/form-components/range.js +1 -1
  171. package/layout/free.js +1 -1
  172. package/layout/grid-switcher.js +1 -1
  173. package/layout/grid.js +1 -1
  174. package/layout/group.js +6 -6
  175. package/layout/horizontal-scroller.js +1 -1
  176. package/layout/image.js +15 -26
  177. package/layout/index.js +1 -1
  178. package/layout/label.js +1 -1
  179. package/layout/link.js +19 -51
  180. package/layout/list-OLD.js +1 -1
  181. package/layout/list.js +1 -1
  182. package/layout/meta-adder.js +1 -1
  183. package/layout/modal-2025.js +1 -1
  184. package/layout/multiswitcher.js +1 -1
  185. package/layout/nav-bar.js +1 -1
  186. package/layout/nav-factor/custom-div.js +1 -1
  187. package/layout/navBar-OLD.js +1 -1
  188. package/layout/new-flat-adder.js +1 -1
  189. package/layout/new-nav-bar.js +1 -1
  190. package/layout/offset-container.js +1 -15
  191. package/layout/polygon.js +7 -12
  192. package/layout/prerender-site.js +1 -1
  193. package/layout/prerender.js +1 -1
  194. package/layout/progress.js +1 -1
  195. package/layout/row.js +1 -1
  196. package/layout/saved-new-nav-bar.js +1 -1
  197. package/layout/scroll-video.js +1 -1
  198. package/layout/side-bar.js +1 -1
  199. package/layout/side-nav-bar.js +1 -1
  200. package/layout/simple-bar.js +1 -1
  201. package/layout/slider-2025.js +1 -1
  202. package/layout/spacer.js +1 -1
  203. package/layout/stack.js +1 -1
  204. package/layout/svg.js +1 -1
  205. package/layout/switcher.js +1 -1
  206. package/layout/table.js +1 -1
  207. package/layout/text-field.js +14 -28
  208. package/layout/text.js +2 -45
  209. package/layout/ulist.js +1 -12
  210. package/layout/video.js +1 -1
  211. package/layout/without-new.js +1 -1
  212. package/layout/wrap.js +1 -1
  213. package/layout/zoom-card.js +1 -1
  214. package/lib/card-getter.js +1 -1
  215. package/lib/data.js +1 -1
  216. package/lib/designer.js +1 -1
  217. package/lib/element-mapper.js +1 -1
  218. package/lib/keyframe-animation.js +1 -1
  219. package/lib/link-getter.js +1 -1
  220. package/lib/raster-ops.js +1 -1
  221. package/lib/scroll-video.js +1 -1
  222. package/lib/seo.js +1 -1
  223. package/lib/stacker.js +1 -1
  224. package/lib/theme.js +1 -1
  225. package/lib/transform-anim.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/dropdown.cjs.js +0 -2
  228. package/dist/dropdown.cjs.js.LICENSE.txt +0 -5
  229. package/dist/dropdown.esm.js +0 -2
  230. package/dist/dropdown.esm.js.LICENSE.txt +0 -5
  231. package/layout/box.js +0 -35
  232. package/layout/clean-row.js +0 -686
  233. package/layout/custom.js +0 -297
  234. package/layout/div-image.js +0 -167
  235. package/layout/dropdown.js +0 -158
  236. package/layout/empty-element.js +0 -27
  237. package/layout/grid-new.js +0 -301
  238. package/layout/header.js +0 -181
  239. package/layout/image-old.js +0 -453
  240. package/layout/modernwrap.js +0 -97
  241. package/layout/multiswitcherBeta.js +0 -69
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.214
2
+ * nodality v1.0.215
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/audio.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -28,10 +28,6 @@ import {Animator} from "./animator.js";
28
28
  return this;
29
29
  }
30
30
 
31
- padding(value){
32
- this.res.style.padding = `${value}px`;
33
- return this;
34
- }
35
31
 
36
32
  size(w, h){
37
33
  this.w = w;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/base-2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/base.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/button.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -123,11 +123,13 @@ this.options = obj;
123
123
  }
124
124
 
125
125
  if (obj.padding){
126
- this.padding(obj.padding);
126
+ this.deprecatedOption("padding", "pad");
127
+ this.pad([{a: obj.padding}]);
127
128
  }
128
129
 
129
130
  if (obj.margin){
130
- this.margin(obj.margin);
131
+ this.deprecatedOption("margin", "mar");
132
+ this.mar([{a: obj.margin}]);
131
133
  }
132
134
 
133
135
  // Plain `mar` / `pad` are handled implicitly by the
@@ -203,8 +205,8 @@ this.options = obj;
203
205
  // Before S25 Ultra redesign!
204
206
 
205
207
  /*.background("#1abc9c")
206
- .padding("10px")
207
- .margin("10px")
208
+ .pad([{a: "10px"}])
209
+ .mar([{a: "10px"}])
208
210
  .border("none")
209
211
  .borderRadius("7px")*/
210
212
 
@@ -327,32 +329,7 @@ this.options = obj;
327
329
  return this;
328
330
  }
329
331
 
330
- padding(L, T, R, B){
331
- if (L && T && R && B){
332
- this.res.style.paddingLeft = L;
333
- this.res.style.paddingTop = T;
334
- this.res.style.paddingRight = R;
335
- this.res.style.paddingBottom = B;
336
- } else {
337
- this.res.style.padding = L;
338
- }
339
-
340
- return this;
341
- }
342
332
 
343
- margin(L, T, R, B){
344
-
345
- if (L && T && R && B){
346
- this.res.style.marginLeft = L;
347
- this.res.style.marginTop = T;
348
- this.res.style.marginRight = R;
349
- this.res.style.marginBottom = B;
350
- } else {
351
- this.res.style.margin = L;
352
- }
353
-
354
- return this;
355
- }
356
333
 
357
334
  auto() {
358
335
  const adj = () => {
package/layout/cards.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -29,7 +29,11 @@ class Card {
29
29
  }
30
30
 
31
31
  background(color){
32
- this.el.style.backgroundColor = color;
32
+ // The shorthand, not backgroundColor: it also resets background-image,
33
+ // so setting a flat colour after a gradient clears the gradient. The
34
+ // longhand left it in place, so the same call behaved differently
35
+ // depending on which component you happened to hold.
36
+ this.el.style.background = color;
33
37
  return this;
34
38
  }
35
39
 
package/layout/center.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -85,20 +85,6 @@ return this;
85
85
  }
86
86
 
87
87
 
88
- margin(L, T, R, B) {
89
- if (L || T || R || B){ // CAUGHT MYSELF
90
- this.res.style.marginLeft = L;
91
- this.res.style.marginTop = T;
92
- this.res.style.marginRight = R;
93
- this.res.style.marginBottom = B;
94
- }
95
-
96
- if (!T && !R && !B){
97
- this.res.style.margin = L;
98
- }
99
-
100
- return this;
101
- }
102
88
 
103
89
 
104
90
  itemWidth(w){
@@ -111,20 +97,6 @@ return this;
111
97
  }
112
98
 
113
99
 
114
- margin(L, T, R, B) {
115
- if (L || T || R || B){ // CAUGHT MYSELF
116
- this.res.style.marginLeft = L;
117
- this.res.style.marginTop = T;
118
- this.res.style.marginRight = R;
119
- this.res.style.marginBottom = B;
120
- }
121
-
122
- if (!T && !R && !B){
123
- this.res.style.margin = L;
124
- }
125
-
126
- return this;
127
- }
128
100
 
129
101
  /*arrayPadding(arr, value) {
130
102
  if (arr.includes("left")){
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -170,10 +170,6 @@ obj.resmar && this.resmar(obj.resmar);
170
170
  return [`new Checkbox().set({\n ${entries}\n})`];
171
171
  }
172
172
 
173
- margin(amount) {
174
- this.el.style.margin = amount;
175
- return this;
176
- }
177
173
 
178
174
  render(div) {
179
175
  if (div) {
package/layout/circle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -51,7 +51,11 @@ class Circle extends Animator {
51
51
  // --- Circle-specific API ---
52
52
  diameter(px) { this.res.style.width = this.res.style.height = typeof px === "number" ? px + "px" : px; this.res.style.borderRadius = "50%"; return this; }
53
53
  size(w, h = w) { this.res.style.width = typeof w === "number" ? w + "px" : w; this.res.style.height = typeof h === "number" ? h + "px" : h; this.res.style.borderRadius = "50%"; return this; }
54
- color(c) { this.res.style.backgroundColor = c; return this; }
54
+ // `color` is the text colour on every component (it is a styleMap key on
55
+ // Animator). It used to set backgroundColor here, which made `color:` and
56
+ // `background:` do the same thing and left no way to set text colour.
57
+ color(c) { this.res.style.color = c; return this; }
58
+ background(c) { this.res.style.background = c; return this; }
55
59
  border(spec) { this.res.style.border = typeof spec === "string" ? spec : `${spec?.width || 1}px solid ${spec?.color || "black"}`; return this; }
56
60
  radius(r) { this.res.style.borderRadius = typeof r === "number" ? r + "px" : r; return this; }
57
61
 
package/layout/code.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -771,8 +771,14 @@ code = `${pad}new Wrapper()`;
771
771
  this.res.style.height = `${h}`;
772
772
  return this;
773
773
  }
774
+ /**
775
+ * Width and height. Renamed from size(), which collided with the `size`
776
+ * OPTION — on any component that calls commonMethods, `size:` is the
777
+ * fluid type scale (S1…S6), so `.size()` meaning width read as the same
778
+ * word doing two unrelated jobs in one call chain.
779
+ */
774
780
 
775
- size(w, h){
781
+ dimensions(w, h) {
776
782
  this.w = w;
777
783
  this.h = h;
778
784
 
@@ -792,6 +798,13 @@ code = `${pad}new Wrapper()`;
792
798
  return this;
793
799
  }
794
800
 
801
+ //@deprecated size: on this component `size()` set width and height, which collided with the `size` option (fluid type scale). Use `dimensions(w, h)`.
802
+ size(w, h) {
803
+ this.deprecatedOption("size() on this component", "dimensions(w, h)");
804
+ return this.dimensions(w, h);
805
+ }
806
+
807
+
795
808
  background(color) {
796
809
  this.res.style.background = color;
797
810
  return this;
@@ -803,21 +816,7 @@ code = `${pad}new Wrapper()`;
803
816
  return this;
804
817
  }
805
818
 
806
- padding(L, T, R, B){
807
- this.res.style.paddingLeft = L;
808
- this.res.style.paddingTop = T;
809
- this.res.style.paddingRight = R;
810
- this.res.style.paddingBottom = B;
811
- return this;
812
- }
813
819
 
814
- margin(L, T, R, B){
815
- this.res.style.marginLeft = L;
816
- this.res.style.marginTop = T;
817
- this.res.style.marginRight = R;
818
- this.res.style.marginBottom = B;
819
- return this;
820
- }
821
820
 
822
821
  itemWidth(w){
823
822
  for (var i = 0; i < this.res.childNodes.length; i++){
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -159,7 +159,11 @@ this.options = obj;
159
159
  }
160
160
 
161
161
  background(color){
162
- this.res.style.backgroundColor = color;
162
+ // The shorthand, not backgroundColor: it also resets background-image,
163
+ // so setting a flat colour after a gradient clears the gradient. The
164
+ // longhand left it in place, so the same call behaved differently
165
+ // depending on which component you happened to hold.
166
+ this.res.style.background = color;
163
167
  return this;
164
168
  }
165
169
 
@@ -168,10 +172,6 @@ this.options = obj;
168
172
  return this;
169
173
  }
170
174
 
171
- padding(pad){
172
- this.res.style.padding = `${pad}px`;
173
- return this;
174
- }
175
175
 
176
176
  items(els){
177
177
  for (var i = 0; i < els.length; i++){
@@ -185,11 +185,21 @@ this.options = obj;
185
185
  this.res.style.boxShadow = "1px 1px 20px rgba(0, 0, 0, 0.60)";
186
186
  return this;
187
187
  }
188
-
189
- round(value){
190
- this.res.style.borderRadius = `${value}px`;
191
- return this;
188
+ /**
189
+ * Corner radius. A number is pixels; a string is passed through, so
190
+ * `radius("50%")` and `radius(12)` both work.
191
+ */
192
+ radius(v) {
193
+ this.res.style.borderRadius = typeof v === "number" ? `${v}px` : v;
194
+ return this;
195
+ }
196
+
197
+ //@deprecated round: superseded by `radius()`, which is the same thing under the name the option already uses.
198
+ round(v) {
199
+ this.deprecatedOption("round()", "radius()");
200
+ return this.radius(v);
192
201
  }
202
+
193
203
 
194
204
  render(div){
195
205
  if (div){
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -204,10 +204,6 @@ class FlexGrid extends Animator {
204
204
  }
205
205
 
206
206
 
207
- padding(value){
208
- this.res.style.padding = `${value}px`;
209
- return this;
210
- }
211
207
 
212
208
 
213
209
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -65,7 +65,7 @@ class FlexRow extends Animator {
65
65
 
66
66
  //this.code.push(`\n .set({`);
67
67
  if (options.padding){
68
- this.padding(options.padding);
68
+ this.pad([{a: options.padding}]);
69
69
  }
70
70
 
71
71
  //alert(options.opacity);
@@ -621,10 +621,6 @@ let stringified = JSON.stringify(options.borderObj);
621
621
 
622
622
 
623
623
 
624
- padding(vals){
625
- this.res.style.padding = vals;
626
- return this;
627
- }
628
624
 
629
625
 
630
626
  toColumn(){
package/layout/footer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/free.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/grid.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/group.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -69,14 +69,14 @@ class Group extends Animator {
69
69
  }
70
70
 
71
71
  background(value){
72
- this.res.style.backgroundColor = value;
72
+ // The shorthand, not backgroundColor: it also resets background-image,
73
+ // so setting a flat colour after a gradient clears the gradient. The
74
+ // longhand left it in place, so the same call behaved differently
75
+ // depending on which component you happened to hold.
76
+ this.res.style.background = value;
73
77
  return this;
74
78
  }
75
79
 
76
- padding(value){
77
- this.res.style.padding = `${value}px`;
78
- return this;
79
- }
80
80
 
81
81
 
82
82
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/image.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -840,34 +840,16 @@ if (mqa.matches){
840
840
  return this;
841
841
  }
842
842
 
843
- margin(L, T, R, B) {
844
- if (L || T || R || B){ // CAUGHT MYSELF
845
- this.res.style.marginLeft = L;
846
- this.res.style.marginTop = T;
847
- this.res.style.marginRight = R;
848
- this.res.style.marginBottom = B;
849
- }
850
-
851
- if (!T && !R && !B){
852
-
853
- if (T !== 0 || R !== 0 || B !== 0){
854
- // alert("j")
855
- this.res.style.margin = L;
856
- }
857
-
858
-
859
- }
860
-
861
- return this;
862
- }
863
843
 
864
844
 
865
- padding(el){
866
- this.res.style.padding = el;
867
- return this;
868
- }
845
+ /**
846
+ * Width and height. Renamed from size(), which collided with the `size`
847
+ * OPTION — on any component that calls commonMethods, `size:` is the
848
+ * fluid type scale (S1…S6), so `.size()` meaning width read as the same
849
+ * word doing two unrelated jobs in one call chain.
850
+ */
869
851
 
870
- size(w, h) {
852
+ dimensions(w, h) {
871
853
  if (w && h) {
872
854
  this.res.style.width = w;
873
855
  this.res.style.height = h;
@@ -879,6 +861,13 @@ if (mqa.matches){
879
861
  return this;
880
862
  }
881
863
 
864
+ //@deprecated size: on this component `size()` set width and height, which collided with the `size` option (fluid type scale). Use `dimensions(w, h)`.
865
+ size(w, h) {
866
+ this.deprecatedOption("size() on this component", "dimensions(w, h)");
867
+ return this.dimensions(w, h);
868
+ }
869
+
870
+
882
871
 
883
872
 
884
873
  frame(obj) {
package/layout/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/label.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.215
2
+ * nodality v1.0.216
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */