nodality 1.0.218 → 1.0.220

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 (264) hide show
  1. package/dist/animator.cjs.js +1 -1
  2. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  3. package/dist/animator.esm.js +1 -1
  4. package/dist/animator.esm.js.LICENSE.txt +1 -1
  5. package/dist/audionew.cjs.js +1 -1
  6. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  7. package/dist/audionew.esm.js +1 -1
  8. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  9. package/dist/base.cjs.js +1 -1
  10. package/dist/base.cjs.js.LICENSE.txt +1 -1
  11. package/dist/base.esm.js +1 -1
  12. package/dist/base.esm.js.LICENSE.txt +1 -1
  13. package/dist/beta-desktop-bar.cjs.js +1 -1
  14. package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
  15. package/dist/beta-desktop-bar.esm.js +1 -1
  16. package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
  17. package/dist/beta-mobile-bar.cjs.js +1 -1
  18. package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
  19. package/dist/beta-mobile-bar.esm.js +1 -1
  20. package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
  21. package/dist/bundle.umd.js +1 -1
  22. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  23. package/dist/button.cjs.js +1 -1
  24. package/dist/button.cjs.js.LICENSE.txt +1 -1
  25. package/dist/button.esm.js +1 -1
  26. package/dist/button.esm.js.LICENSE.txt +1 -1
  27. package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
  28. package/dist/card-getter.esm.js.LICENSE.txt +1 -1
  29. package/dist/center.cjs.js +1 -1
  30. package/dist/center.cjs.js.LICENSE.txt +1 -1
  31. package/dist/center.esm.js +1 -1
  32. package/dist/center.esm.js.LICENSE.txt +1 -1
  33. package/dist/checkbox.cjs.js +1 -1
  34. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  35. package/dist/checkbox.esm.js +1 -1
  36. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  37. package/dist/code.cjs.js +1 -1
  38. package/dist/code.cjs.js.LICENSE.txt +1 -1
  39. package/dist/code.esm.js +1 -1
  40. package/dist/code.esm.js.LICENSE.txt +1 -1
  41. package/dist/container.cjs.js +1 -1
  42. package/dist/container.cjs.js.LICENSE.txt +1 -1
  43. package/dist/container.esm.js +1 -1
  44. package/dist/container.esm.js.LICENSE.txt +1 -1
  45. package/dist/data-list.cjs.js.LICENSE.txt +1 -1
  46. package/dist/data-list.esm.js.LICENSE.txt +1 -1
  47. package/dist/designer.cjs.js +1 -1
  48. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  49. package/dist/designer.esm.js +1 -1
  50. package/dist/designer.esm.js.LICENSE.txt +1 -1
  51. package/dist/element-mapper.cjs.js +1 -1
  52. package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
  53. package/dist/element-mapper.esm.js +1 -1
  54. package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
  55. package/dist/finalresult.esm.js +1 -1
  56. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  57. package/dist/flex-card.cjs.js +1 -1
  58. package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
  59. package/dist/flex-card.esm.js +1 -1
  60. package/dist/flex-card.esm.js.LICENSE.txt +1 -1
  61. package/dist/flex-grid.cjs.js +1 -1
  62. package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
  63. package/dist/flex-grid.esm.js +1 -1
  64. package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
  65. package/dist/flex-row.cjs.js +1 -1
  66. package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
  67. package/dist/flex-row.esm.js +1 -1
  68. package/dist/flex-row.esm.js.LICENSE.txt +1 -1
  69. package/dist/floating-input.cjs.js +1 -1
  70. package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
  71. package/dist/floating-input.esm.js +1 -1
  72. package/dist/floating-input.esm.js.LICENSE.txt +1 -1
  73. package/dist/free.cjs.js +1 -1
  74. package/dist/free.cjs.js.LICENSE.txt +1 -1
  75. package/dist/free.esm.js +1 -1
  76. package/dist/free.esm.js.LICENSE.txt +1 -1
  77. package/dist/horizontal-scroller.cjs.js +1 -1
  78. package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
  79. package/dist/horizontal-scroller.esm.js +1 -1
  80. package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
  81. package/dist/image-picker.cjs.js +1 -1
  82. package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
  83. package/dist/image-picker.esm.js +1 -1
  84. package/dist/image-picker.esm.js.LICENSE.txt +1 -1
  85. package/dist/image.cjs.js +1 -1
  86. package/dist/image.cjs.js.LICENSE.txt +1 -1
  87. package/dist/image.esm.js +1 -1
  88. package/dist/image.esm.js.LICENSE.txt +1 -1
  89. package/dist/index.cjs.js +1 -1
  90. package/dist/index.cjs.js.LICENSE.txt +1 -1
  91. package/dist/index.esm.js +1 -1
  92. package/dist/index.esm.js.LICENSE.txt +1 -1
  93. package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
  94. package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
  95. package/dist/link-getter.cjs.js +1 -1
  96. package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
  97. package/dist/link-getter.esm.js +1 -1
  98. package/dist/link-getter.esm.js.LICENSE.txt +1 -1
  99. package/dist/link.cjs.js +1 -1
  100. package/dist/link.cjs.js.LICENSE.txt +1 -1
  101. package/dist/link.esm.js +1 -1
  102. package/dist/link.esm.js.LICENSE.txt +1 -1
  103. package/dist/meta-adder.cjs.js +1 -1
  104. package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
  105. package/dist/meta-adder.esm.js +1 -1
  106. package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
  107. package/dist/modal-2025.cjs.js +1 -1
  108. package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
  109. package/dist/modal-2025.esm.js +1 -1
  110. package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
  111. package/dist/multiswitcher.cjs.js +1 -1
  112. package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
  113. package/dist/multiswitcher.esm.js +1 -1
  114. package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
  115. package/dist/new-nav-bar.cjs.js +1 -1
  116. package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
  117. package/dist/new-nav-bar.esm.js +1 -1
  118. package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
  119. package/dist/picker.cjs.js +1 -1
  120. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  121. package/dist/picker.esm.js +1 -1
  122. package/dist/picker.esm.js.LICENSE.txt +1 -1
  123. package/dist/progress.cjs.js +1 -1
  124. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  125. package/dist/progress.esm.js +1 -1
  126. package/dist/progress.esm.js.LICENSE.txt +1 -1
  127. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  128. package/dist/radio.esm.js.LICENSE.txt +1 -1
  129. package/dist/range.cjs.js.LICENSE.txt +1 -1
  130. package/dist/range.esm.js.LICENSE.txt +1 -1
  131. package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
  132. package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
  133. package/dist/side-bar.cjs.js +1 -1
  134. package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
  135. package/dist/side-bar.esm.js +1 -1
  136. package/dist/side-bar.esm.js.LICENSE.txt +1 -1
  137. package/dist/side-nav-bar.cjs.js +1 -1
  138. package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
  139. package/dist/side-nav-bar.esm.js +1 -1
  140. package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
  141. package/dist/simple-bar.cjs.js +1 -1
  142. package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
  143. package/dist/simple-bar.esm.js +1 -1
  144. package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
  145. package/dist/slider-2025.cjs.js +1 -1
  146. package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
  147. package/dist/slider-2025.esm.js +1 -1
  148. package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
  149. package/dist/spacer.cjs.js +1 -1
  150. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  151. package/dist/spacer.esm.js +1 -1
  152. package/dist/spacer.esm.js.LICENSE.txt +1 -1
  153. package/dist/stack.cjs.js +1 -1
  154. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  155. package/dist/stack.esm.js +1 -1
  156. package/dist/stack.esm.js.LICENSE.txt +1 -1
  157. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  158. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  159. package/dist/table.cjs.js +1 -1
  160. package/dist/table.cjs.js.LICENSE.txt +1 -1
  161. package/dist/table.esm.js +1 -1
  162. package/dist/table.esm.js.LICENSE.txt +1 -1
  163. package/dist/text-field.cjs.js +1 -1
  164. package/dist/text-field.cjs.js.LICENSE.txt +1 -1
  165. package/dist/text-field.esm.js +1 -1
  166. package/dist/text-field.esm.js.LICENSE.txt +1 -1
  167. package/dist/text.cjs.js +1 -1
  168. package/dist/text.cjs.js.LICENSE.txt +1 -1
  169. package/dist/text.esm.js +1 -1
  170. package/dist/text.esm.js.LICENSE.txt +1 -1
  171. package/dist/theme.cjs.js.LICENSE.txt +1 -1
  172. package/dist/theme.esm.js.LICENSE.txt +1 -1
  173. package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
  174. package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
  175. package/dist/ulist.cjs.js +1 -1
  176. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  177. package/dist/ulist.esm.js +1 -1
  178. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  179. package/dist/video.cjs.js +1 -1
  180. package/dist/video.cjs.js.LICENSE.txt +1 -1
  181. package/dist/video.esm.js +1 -1
  182. package/dist/video.esm.js.LICENSE.txt +1 -1
  183. package/dist/wrap.cjs.js +1 -1
  184. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  185. package/dist/wrap.esm.js +1 -1
  186. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  187. package/dist/zoom-card.cjs.js +1 -1
  188. package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
  189. package/dist/zoom-card.esm.js +1 -1
  190. package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
  191. package/layout/animator.js +53 -80
  192. package/layout/audio.js +1 -95
  193. package/layout/audionew.js +1 -4
  194. package/layout/base.js +3 -46
  195. package/layout/beta-desktop-bar.js +1 -12
  196. package/layout/beta-mobile-bar.js +1 -43
  197. package/layout/button.js +5 -87
  198. package/layout/center.js +1 -41
  199. package/layout/checkbox.js +6 -10
  200. package/layout/circle.js +1 -1
  201. package/layout/code.js +1 -11
  202. package/layout/container.js +1 -106
  203. package/layout/dropdown-2025.js +1 -3
  204. package/layout/flex-card.js +8 -38
  205. package/layout/flex-grid.js +2 -23
  206. package/layout/flex-row.js +5 -233
  207. package/layout/form-components/custom.js +1 -1
  208. package/layout/form-components/data-list.js +1 -1
  209. package/layout/form-components/floating-input.js +1 -1
  210. package/layout/form-components/form-all.js +1 -1
  211. package/layout/form-components/form.js +1 -1
  212. package/layout/form-components/image-picker.js +1 -1
  213. package/layout/form-components/picker.js +1 -1
  214. package/layout/form-components/radio.js +1 -1
  215. package/layout/form-components/radiogroup.js +1 -1
  216. package/layout/form-components/range.js +1 -1
  217. package/layout/free.js +1 -40
  218. package/layout/grid-switcher.js +1 -14
  219. package/layout/grid.js +1 -11
  220. package/layout/horizontal-scroller.js +1 -7
  221. package/layout/image.js +3 -217
  222. package/layout/index.js +1 -1
  223. package/layout/link.js +7 -281
  224. package/layout/list.js +1 -8
  225. package/layout/meta-adder.js +1 -3
  226. package/layout/modal-2025.js +1 -44
  227. package/layout/multiswitcher.js +1 -55
  228. package/layout/nav-bar.js +1 -29
  229. package/layout/nav-factor/custom-div.js +1 -1
  230. package/layout/new-nav-bar.js +1 -91
  231. package/layout/polygon.js +1 -1
  232. package/layout/prerender-site.js +1 -2
  233. package/layout/prerender.js +1 -2
  234. package/layout/progress.js +1 -3
  235. package/layout/row.js +1 -15
  236. package/layout/scroll-video.js +1 -4
  237. package/layout/side-bar.js +1 -11
  238. package/layout/side-nav-bar.js +1 -66
  239. package/layout/simple-bar.js +1 -1
  240. package/layout/slider-2025.js +1 -2
  241. package/layout/spacer.js +1 -8
  242. package/layout/stack.js +1 -3
  243. package/layout/svg.js +1 -1
  244. package/layout/switcher.js +1 -6
  245. package/layout/table.js +1 -12
  246. package/layout/text-field.js +7 -17
  247. package/layout/text.js +1 -161
  248. package/layout/ulist.js +1 -13
  249. package/layout/video.js +1 -12
  250. package/layout/wrap.js +1 -50
  251. package/layout/zoom-card.js +1 -69
  252. package/lib/card-getter.js +1 -1
  253. package/lib/data.js +1 -1
  254. package/lib/designer.js +1 -1
  255. package/lib/element-mapper.js +1 -1
  256. package/lib/keyframe-animation.js +1 -1
  257. package/lib/link-getter.js +1 -1
  258. package/lib/raster-ops.js +1 -1
  259. package/lib/scroll-video.js +1 -1
  260. package/lib/seo.js +1 -1
  261. package/lib/stacker.js +1 -1
  262. package/lib/theme.js +1 -1
  263. package/lib/transform-anim.js +1 -1
  264. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -15,7 +15,6 @@ class FlexRow extends Animator {
15
15
  this.res = null;
16
16
  this.setup();
17
17
  this.responsive();
18
- // this.code.push(" new FlexRow()");
19
18
  }
20
19
 
21
20
  getType(){
@@ -23,7 +22,6 @@ class FlexRow extends Animator {
23
22
  }
24
23
 
25
24
 
26
-
27
25
  set(options){
28
26
  //alert("OJ")
29
27
  this.options = options;
@@ -40,7 +38,6 @@ class FlexRow extends Animator {
40
38
  obj.top !== undefined && (this.res.style.top = obj.top);
41
39
 
42
40
 
43
- //if (obj.gradient){
44
41
  // console.log("STAFF");
45
42
  // console.log(obj.id);
46
43
  // }
@@ -48,8 +45,6 @@ class FlexRow extends Animator {
48
45
  //// console.log("MARA");
49
46
  //// console.log(obj.mar);
50
47
 
51
- //obj.pad && this.pad(obj.pad);
52
- // obj.mar && this.mar(obj.mar);
53
48
 
54
49
 
55
50
 
@@ -63,13 +58,11 @@ class FlexRow extends Animator {
63
58
  options.id && this.res.setAttribute("id", options.id);
64
59
  this.commonMethods(obj);
65
60
 
66
- //this.code.push(`\n .set({`);
67
61
  if (options.padding){
68
62
  this.pad([{a: options.padding}]);
69
63
  }
70
64
 
71
65
  //alert(options.opacity);
72
- //(options.opacity === 0) && (this.res.style.opacity = 0 /*options.opacity*/);
73
66
 
74
67
 
75
68
  if (options.background){
@@ -80,23 +73,18 @@ class FlexRow extends Animator {
80
73
  if (options.alignTo){
81
74
  //alert("J")
82
75
  this.res.style.justifyContent = options.alignTo;
83
- // let stringified = JSON.stringify(options.alignTo);
84
- //this.code.push(`\n alignTo: "${stringified}",`);
85
76
  }
86
77
 
87
78
 
88
79
 
89
80
 
90
81
 
91
-
92
82
  if (options.background){
93
83
  this.res.style.backgroundColor = options.background;
94
- // this.code.push(`\n background: "${options.background}",`);
95
84
  }
96
85
 
97
86
  if (options.justify){
98
87
  this.res.style.justifyContent = options.justify;
99
- //this.code.push(`\n justify: "${options.justify}",`);
100
88
  }
101
89
 
102
90
  if (options.border) {
@@ -113,26 +101,15 @@ class FlexRow extends Animator {
113
101
 
114
102
 
115
103
 
116
- // this.code.push(`\n border: ["${options.border[0]}", "${options.border[1]}"],`);
117
104
  }
118
105
 
119
106
 
120
107
  // Give this to animator
121
108
  if (options.borderObj){
122
109
 
123
- /* let type = options.borderObj.type ?? "solid";
124
-
125
-
126
- this.res.style.border = `${options.borderObj.width} ${type} ${options.borderObj.color}`
127
- this.res.style.borderRadius = options.borderObj.radius;
128
-
129
- let stringified = JSON.stringify(options.borderObj);
130
- this.code.push(`\n borderObj: ${stringified},`);
131
- */
132
110
 
133
111
  this.borderObj(options.borderObj);
134
112
  let stringified = JSON.stringify(options.borderObj);
135
- // this.code.push(`\n borderObj: ${stringified},`);
136
113
  /*borderObj: {
137
114
  side: "all",
138
115
  width: "3px",
@@ -141,10 +118,8 @@ let stringified = JSON.stringify(options.borderObj);
141
118
  }
142
119
 
143
120
  options.width && (this.res.style.width = options.width);
144
- // options.width && this.code.push(`\n width: "${options.width}",`);
145
121
 
146
122
  options.height && (this.res.style.height = options.height);
147
- // options.height && this.code.push(`\n height: "${options.height}",`);
148
123
 
149
124
  options.gap && (this.res.style.gap = options.gap);
150
125
 
@@ -152,7 +127,6 @@ let stringified = JSON.stringify(options.borderObj);
152
127
  if (options.align){
153
128
  let stringified = JSON.stringify(options.align);
154
129
  this.res.style.alignItems = "flex-start";
155
- // this.code.push(`\n alignIts: "flex-start",`);
156
130
  this.res.style.alignItems = "flex-start";
157
131
  }
158
132
 
@@ -164,7 +138,6 @@ let stringified = JSON.stringify(options.borderObj);
164
138
  if (options.alignIts){
165
139
  let stringified = JSON.stringify(options.alignIts);
166
140
  this.res.style.alignItems = "flex-start";
167
- // this.code.push(`\n alignIts: ${stringified},`);
168
141
 
169
142
  }
170
143
  // options.alignIts && alert("J");
@@ -185,34 +158,26 @@ let stringified = JSON.stringify(options.borderObj);
185
158
 
186
159
  // // console.warn(options);
187
160
 
188
- // options.columnAlways && (this.columnAlways = true);
189
-
190
- options.toColumn && this.toColumn(options.toColumn); // OK
161
+ // `toColumn` collapsed to a column unconditionally, ignoring the
162
+ // breakpoint it was given. `colat` is the documented option that
163
+ // actually honours one, via toColumnAt().
164
+ options.toColumn && this.deprecatedOption("toColumn", "colat");
191
165
 
192
166
 
193
167
  options.column && this.makeCol(); // OK
194
168
 
195
169
 
196
-
197
170
  if (options.colat){
198
171
 
199
172
  options.colat && this.toColumnAt(options.colat);
200
- //this.code.push(`\n colat: "${options.colat}",`);
201
173
  }
202
174
 
203
175
 
204
176
  //alert(options.arrpad);
205
177
 
206
178
 
207
- //options.arrayMargin && this.code.push(`\n arrayMargin: {sides: [${options.arrayMargin.sides.map(m => `"${m}"`).join(", ")}], value: "${options.arrayMargin.value}"},`); // 2345 06/03
208
-
209
-
210
179
 
211
180
 
212
- //obj.pad && this.pad(obj.pad);
213
- //obj.respad && this.respad(obj.respad);
214
- //obj.resmar && this.resmar(obj.resmar);
215
- //obj.mar && this.mar(obj.mar);
216
181
 
217
182
  // alert(options.multipad);
218
183
 
@@ -221,16 +186,12 @@ let stringified = JSON.stringify(options.borderObj);
221
186
  //alert("K")
222
187
 
223
188
  this.makeJustify(options.justify);
224
- // this.setAlign(options.align);
225
189
  }
226
190
 
227
191
  if (options.justify){
228
192
 
229
193
  this.makeAlign(options.justify);
230
- // this.setAlign(options.align);
231
194
  }
232
- //this.res.style.justifyContent = "flex-start";
233
- //alert(this.res.style.justifyContent);
234
195
  if (options.justifo === "flex-start"){
235
196
 
236
197
  this.res.style.justifyContent = "flex-start";
@@ -244,87 +205,9 @@ let stringified = JSON.stringify(options.borderObj);
244
205
  // undefined `borderObj.radius`.
245
206
  options.radius && (this.res.style.borderRadius = options.radius);
246
207
 
247
- //const obj = options;
248
208
  options.aligns && this.aligns(options.aligns);
249
209
 
250
210
 
251
- /*if (obj && obj.stroke || obj && obj.gradient || obj && obj.span){
252
-
253
-
254
- if (obj.gradient) {
255
- this.globalGradient = obj.gradient.op.gradient;
256
- // console.log(obj.gradient);
257
- }
258
-
259
-
260
- if (obj.stroke){
261
- // console.warn("OAP");
262
- // console.log(obj.stroke.op.color);
263
-
264
- super.setAny({globalBlast: `${obj.stroke.op.width} ${obj.stroke.op.color}`});
265
-
266
- // console.warn("GBL");
267
- // console.warn(super.globalBlast);
268
- }
269
-
270
- // Filter just the elements with layout element
271
- let ft = [obj.stroke, obj.gradient, obj.animation, obj.span]//obj.gradient.filter(el => el.op.name !== "layout");
272
- // console.log(ft);
273
-
274
- ft = ft.filter(el => el != undefined);
275
-
276
- let arr = [];
277
-
278
- for (var i = 0; i < ft.length; i++){
279
- // console.log("Hello");
280
- arr.push({
281
- range: ft[i].range,
282
- log: ft[i].op.name,
283
- target: ft[i].target
284
- });
285
- }
286
-
287
- // console.log(arr);
288
- this.protoReact(arr, options.id);
289
- }*/
290
-
291
-
292
-
293
- /*
294
- if (obj && obj.id && obj.stroke || obj && obj.id && obj.gradient || obj && obj.id && obj.span || obj && obj.id && obj.backgroundOp){
295
- //alert("P")
296
- if (obj.gradient){
297
- this.globalGradient = obj.gradient.op.gradient;
298
-
299
- } // OK
300
-
301
- if (obj.stroke){
302
- super.setAny({globalBlast: `${obj.stroke.op.width} ${obj.stroke.op.color}`});
303
- }
304
-
305
- // Filter just the elements with layout element
306
- let ft = [obj.stroke, obj.gradient, obj.animation, obj.span, obj.backgroundOp]//obj.gradient.filter(el => el.op.name !== "layout");
307
- ft = ft.filter(el => el != undefined);
308
-
309
- let arr = [];
310
-
311
- for (var i = 0; i < ft.length; i++){
312
- arr.push({
313
- range: ft[i].range,
314
- log: ft[i].op.name,
315
- target: ft[i].target
316
- });
317
- }
318
-
319
- // console.log("-----RDAAA----");
320
- // console.log(arr);
321
- // console.log(obj.id);
322
- this.res.setAttribute("id", obj.id);
323
- this.betaReact(arr, obj.id);
324
- // this.protoReact(arr, obj.id);
325
- } // 17:06:00 17/03/2024 Yes!!!
326
-
327
- */
328
211
 
329
212
  this.callReact(obj);
330
213
 
@@ -334,7 +217,6 @@ let stringified = JSON.stringify(options.borderObj);
334
217
  this.res.style.marginRight = "auto";
335
218
  }
336
219
 
337
- // this.code.push(`\n })`);
338
220
  return this;
339
221
  }
340
222
 
@@ -402,9 +284,6 @@ let stringified = JSON.stringify(options.borderObj);
402
284
  keep.push("span");
403
285
  }
404
286
 
405
- /* if (obj.transform){
406
- keep.push("transform");
407
- }*/
408
287
 
409
288
  // console.log("ARA IS " + arr);
410
289
 
@@ -412,19 +291,12 @@ let stringified = JSON.stringify(options.borderObj);
412
291
  }
413
292
  }
414
293
 
415
-
416
-
417
294
 
418
- setArea(area){
419
- this.res.style.gridArea = area;
420
- return this;
421
- }
422
295
 
423
296
  toColumnAt(at){ // THIS IS THE ONE!!!
424
297
 
425
298
 
426
299
  if (!this.columnAlways){
427
- // alert(this.columnAlways);
428
300
 
429
301
 
430
302
  const toCol = () => {
@@ -489,34 +361,6 @@ let stringified = JSON.stringify(options.borderObj);
489
361
  }
490
362
 
491
363
 
492
- toColumn(at){
493
-
494
- const toCol = () => {
495
- let media = window.matchMedia(`(max-width: ${at})`);
496
- let mobileMedia = window.matchMedia(`(max-device-width: 415px)`);
497
- // alert(media);
498
-
499
- //// console.log(mobileMedia);
500
-
501
- if (media.matches || mobileMedia.matches){
502
- this.res.style.flexDirection = "column";
503
- } else {
504
- this.res.style.flexDirection = "row";
505
-
506
- }
507
- }
508
-
509
- toCol();
510
- window.addEventListener("resize", toCol);
511
-
512
-
513
-
514
-
515
-
516
- return this;
517
- }
518
-
519
-
520
364
  toCode(){
521
365
  // copy and clean options
522
366
  const clean = {};
@@ -540,30 +384,15 @@ let stringified = JSON.stringify(options.borderObj);
540
384
  .map(item => (item?.toCode ? item.toCode() : "/* element */"))
541
385
  .join(",\n ");
542
386
 
543
- //return ["new Text('Hello')"];
544
387
 
545
388
  return [[
546
389
  `new FlexRow().set(${objString})`,
547
390
  itemsCode ? `.items([\n ${itemsCode}\n])` : ""
548
391
  ].join("")]; //commented out
549
392
 
550
- /*
551
- const objString = JSON
552
- .stringify(this.options, null, 4)
553
- .replace(/"([^"]+)":/g, '$1:');
554
-
555
- const itemsCode = this.items.map(item => item.toCode()).join(",\n ");
556
-
557
- return [
558
- `new FlexRow().set(${objString}).items([`,
559
- ` ${itemsCode}`,
560
- `])`
561
- ].join("\n");
562
- //return this.code; // 21:40:09*/
563
393
  }
564
394
 
565
395
 
566
-
567
396
 
568
397
 
569
398
  cornerRadius(el){
@@ -573,7 +402,6 @@ let stringified = JSON.stringify(options.borderObj);
573
402
 
574
403
 
575
404
 
576
-
577
405
  makeJustify(opt){
578
406
  //alert("KJ");
579
407
  if (opt === "start"){
@@ -600,8 +428,6 @@ let stringified = JSON.stringify(options.borderObj);
600
428
 
601
429
  //alert(opt)
602
430
  this.res.style.justifyContent = opt;
603
- // let stringified = JSON.stringify(options.alignTo);
604
- //this.code.push(`\n alignTo: "${stringified}",`);
605
431
  }
606
432
 
607
433
  return this;
@@ -614,15 +440,6 @@ let stringified = JSON.stringify(options.borderObj);
614
440
  }
615
441
 
616
442
 
617
-
618
-
619
-
620
-
621
-
622
- toColumn(){
623
- this.res.style.flexDirection = "column";
624
- return this;
625
- }
626
443
 
627
444
 
628
445
 
@@ -637,7 +454,6 @@ let stringified = JSON.stringify(options.borderObj);
637
454
  flex.style.display = "flex";
638
455
  flex.style.justifyContent = "space-around";
639
456
  flex.style.alignItems = "center";
640
- // flex.style.width = "100%";
641
457
  this.res = flex;
642
458
 
643
459
 
@@ -652,8 +468,6 @@ let stringified = JSON.stringify(options.borderObj);
652
468
  }
653
469
 
654
470
 
655
-
656
-
657
471
  /*
658
472
  {
659
473
  if
@@ -703,11 +517,9 @@ let stringified = JSON.stringify(options.borderObj);
703
517
  //// console.log("2 images enter flex row")
704
518
  //// console.warn(arr); // 2 images enter flexRow or there is problem in FlexRow code gen
705
519
 
706
- //// console.warn(this.res);
707
520
 
708
521
  this.els = arr;
709
522
  this.items = arr;
710
- // this.code.push(".items([");
711
523
 
712
524
  /*
713
525
  // console.log("FL ITEM---");
@@ -724,8 +536,6 @@ let stringified = JSON.stringify(options.borderObj);
724
536
  if (arr[i] != undefined){
725
537
  if (arr[i].render instanceof Function){ // 170736
726
538
  let r = arr[i].render();
727
- // r.style.width = "100%";
728
- //r.style.flex = 1;
729
539
  this.res.appendChild(r);
730
540
  } else {
731
541
  this.res.appendChild(arr[i]);
@@ -734,23 +544,6 @@ let stringified = JSON.stringify(options.borderObj);
734
544
 
735
545
 
736
546
 
737
- //this.code.push("L");
738
-
739
-
740
- /* if (arr[i].toCode instanceof Array){
741
- // // console.warn(arr[i].toCode().flatMap(x => x));
742
- this.code.push(arr[i].toCode().flatMap(x => x));
743
- } else {
744
- if (arr[i].toCode){
745
- this.code.push(arr[i].toCode());
746
-
747
-
748
-
749
-
750
- }
751
- }*/
752
-
753
-
754
547
  if (arr[i] != undefined){
755
548
 
756
549
 
@@ -777,36 +570,16 @@ let stringified = JSON.stringify(options.borderObj);
777
570
 
778
571
 
779
572
  //// console.log("FREDERICK!");
780
- //// console.log(this.code);
781
573
 
782
- //this.code = this.code.flatMap(x => x).flatMap(x => x);
783
574
  }
784
575
 
785
576
 
786
- //this.code.push("])");
787
-
788
-
789
- // this.code = this.code.flatMap(x => x);
790
- // // console.log(this.code);
791
-
792
-
793
577
 
794
578
  return this;
795
579
  }
796
580
 
797
581
 
798
582
 
799
-
800
- resizeValues(){
801
- let newWidth = window.innerWidth * 0.7;
802
- let aspect = (this.els[1].getHeight() / this.els[1].getWidth());
803
- let goal = newWidth * aspect;
804
-
805
- this.res.children[0].style.height = `${goal}px`;
806
- this.res.children[0].style.width = `30%`;
807
- this.res.children[1].style.width = `70%`;
808
- }
809
-
810
583
  responsive(h){
811
584
  let media = window.matchMedia(`(max-device-width: 415px)`);
812
585
 
@@ -835,7 +608,6 @@ let stringified = JSON.stringify(options.borderObj);
835
608
 
836
609
 
837
610
  render(el) {
838
- // // console.log("BORDER:" + this.res.style.border);
839
611
  if (el){
840
612
  document.querySelector(el).appendChild(this.res);
841
613
  } else {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.220
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.218
2
+ * nodality v1.0.220
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -18,7 +18,6 @@ class Free extends Animator {
18
18
  this.options = obj;
19
19
  this.attributes = obj;
20
20
  this.templateCols = obj.templateCols;
21
- // alert(this.templateCols);
22
21
 
23
22
  if (obj.templateCols) { // condition wrong
24
23
  this.res.style.gridTemplateColumns = `repeat(${obj.templateCols.cols}, 1fr)`;
@@ -105,15 +104,9 @@ class Free extends Animator {
105
104
 
106
105
  // element.id = attr.attract.slice(1);
107
106
  element.style.gridRowStart = row;
108
- // element.style.gridRowEnd = row + 3; // Example height of 3 grid cells
109
107
  element.style.gridColumnStart = col;
110
- // element.style.gridColumnEnd = col + 5; // Example width of 5 grid cells
111
108
 
112
- // element.style.border = `3px solid #${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`;//[]
113
109
 
114
- /*if (element.toString() === "[HTMLParagaphElement]"){
115
- element.style.width = "fit-content";
116
- }*/
117
110
 
118
111
  // Optional: Add some content or styles for better visibility
119
112
  // element.textContent = `${attr.attract.slice(1)}`
@@ -123,14 +116,11 @@ class Free extends Animator {
123
116
  element.style.alignItems = "center";
124
117
  element.style.justifyContent = "center";
125
118
  element.style.fontWeight = "bold";
126
- // element.style.color = "white";
127
119
  // alert(element)
128
120
  this.res.appendChild(element);
129
121
 
130
- // this.res.style.border = "3px solid #1abc9c";
131
122
  });
132
123
 
133
- // document.body.appendChild(container);
134
124
  return this;
135
125
  }
136
126
 
@@ -143,11 +133,9 @@ class Free extends Animator {
143
133
  this.res.appendChild(component.render());
144
134
  // alert("PP");
145
135
  // console.log("ORAA");
146
- // console.log(this.res.children.length);
147
136
  }
148
137
 
149
138
  // alert("PP");
150
- // alert(this.res);
151
139
 
152
140
  if (this.storedPositions){
153
141
  this.generateGridPositions(this.storedPositions);
@@ -158,35 +146,9 @@ class Free extends Animator {
158
146
  return this;
159
147
  }
160
148
 
161
- /* toCode(){
162
- let codeStr = `new Free()`;
163
-
164
- // 16:01:09 09/11/24 What????
165
- // Convert attributes to .set({...}) format if there are any attributes
166
- if (Object.keys(this.attributes).length > 0) {
167
- codeStr += `.set(${JSON.stringify(this.attributes, null, 2).replace(/"([^"]+)":/g, '$1:')})`;
168
-
169
- // codeStr += `.set(${JSON.stringify(this.attributes, null, 2)})`;
170
- } else {
171
- codeStr += `.set({})`;
172
- }
173
-
174
- codeStr += `.add([\n`;
175
-
176
- // Generate the code for each item and join with commas only between items
177
- codeStr += this.items
178
- .map(item => item.toCode().join("").trim()) // Trim any line breaks or whitespace around the item code
179
- .join(",\n"); // Insert commas only between items
180
-
181
- codeStr += `\n])`;
182
-
183
-
184
- return codeStr;
185
- }*/
186
149
 
187
150
  toCode() {
188
151
  if (this.excludeFromCodeTrue){
189
- // this.code = ["new Text('').set({})"];
190
152
  return [""];
191
153
  }
192
154
 
@@ -222,7 +184,6 @@ class Free extends Animator {
222
184
 
223
185
 
224
186
  // alert("PP");
225
- // alert(this.res);
226
187
  return this.res;
227
188
  }
228
189
  }