nodality 1.0.218 → 1.0.219

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 (210) 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 +1 -1
  6. package/dist/base.cjs.js.LICENSE.txt +1 -1
  7. package/dist/base.esm.js +1 -1
  8. package/dist/base.esm.js.LICENSE.txt +1 -1
  9. package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
  10. package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
  11. package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
  12. package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
  13. package/dist/bundle.umd.js +1 -1
  14. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  15. package/dist/button.cjs.js.LICENSE.txt +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.LICENSE.txt +1 -1
  24. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  25. package/dist/code.cjs.js.LICENSE.txt +1 -1
  26. package/dist/code.esm.js.LICENSE.txt +1 -1
  27. package/dist/container.cjs.js.LICENSE.txt +1 -1
  28. package/dist/container.esm.js.LICENSE.txt +1 -1
  29. package/dist/data-list.cjs.js.LICENSE.txt +1 -1
  30. package/dist/data-list.esm.js.LICENSE.txt +1 -1
  31. package/dist/designer.cjs.js +1 -1
  32. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  33. package/dist/designer.esm.js +1 -1
  34. package/dist/designer.esm.js.LICENSE.txt +1 -1
  35. package/dist/element-mapper.cjs.js +1 -1
  36. package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
  37. package/dist/element-mapper.esm.js +1 -1
  38. package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
  39. package/dist/finalresult.esm.js +1 -1
  40. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  41. package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
  42. package/dist/flex-card.esm.js.LICENSE.txt +1 -1
  43. package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
  44. package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
  45. package/dist/flex-row.cjs.js +1 -1
  46. package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
  47. package/dist/flex-row.esm.js +1 -1
  48. package/dist/flex-row.esm.js.LICENSE.txt +1 -1
  49. package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
  50. package/dist/floating-input.esm.js.LICENSE.txt +1 -1
  51. package/dist/free.cjs.js.LICENSE.txt +1 -1
  52. package/dist/free.esm.js.LICENSE.txt +1 -1
  53. package/dist/horizontal-scroller.cjs.js +1 -1
  54. package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
  55. package/dist/horizontal-scroller.esm.js +1 -1
  56. package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
  57. package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
  58. package/dist/image-picker.esm.js.LICENSE.txt +1 -1
  59. package/dist/image.cjs.js.LICENSE.txt +1 -1
  60. package/dist/image.esm.js.LICENSE.txt +1 -1
  61. package/dist/index.cjs.js +1 -1
  62. package/dist/index.cjs.js.LICENSE.txt +1 -1
  63. package/dist/index.esm.js +1 -1
  64. package/dist/index.esm.js.LICENSE.txt +1 -1
  65. package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
  66. package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
  67. package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
  68. package/dist/link-getter.esm.js.LICENSE.txt +1 -1
  69. package/dist/link.cjs.js.LICENSE.txt +1 -1
  70. package/dist/link.esm.js.LICENSE.txt +1 -1
  71. package/dist/meta-adder.cjs.js +1 -1
  72. package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
  73. package/dist/meta-adder.esm.js +1 -1
  74. package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
  75. package/dist/modal-2025.cjs.js +1 -1
  76. package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
  77. package/dist/modal-2025.esm.js +1 -1
  78. package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
  79. package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
  80. package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
  81. package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
  82. package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
  83. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  84. package/dist/picker.esm.js.LICENSE.txt +1 -1
  85. package/dist/progress.cjs.js +1 -1
  86. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  87. package/dist/progress.esm.js +1 -1
  88. package/dist/progress.esm.js.LICENSE.txt +1 -1
  89. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  90. package/dist/radio.esm.js.LICENSE.txt +1 -1
  91. package/dist/range.cjs.js.LICENSE.txt +1 -1
  92. package/dist/range.esm.js.LICENSE.txt +1 -1
  93. package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
  94. package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
  95. package/dist/side-bar.cjs.js +1 -1
  96. package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
  97. package/dist/side-bar.esm.js +1 -1
  98. package/dist/side-bar.esm.js.LICENSE.txt +1 -1
  99. package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
  100. package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
  101. package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
  102. package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
  103. package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
  104. package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
  105. package/dist/spacer.cjs.js +1 -1
  106. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  107. package/dist/spacer.esm.js +1 -1
  108. package/dist/spacer.esm.js.LICENSE.txt +1 -1
  109. package/dist/stack.cjs.js +1 -1
  110. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  111. package/dist/stack.esm.js +1 -1
  112. package/dist/stack.esm.js.LICENSE.txt +1 -1
  113. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  114. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  115. package/dist/table.cjs.js.LICENSE.txt +1 -1
  116. package/dist/table.esm.js.LICENSE.txt +1 -1
  117. package/dist/text-field.cjs.js.LICENSE.txt +1 -1
  118. package/dist/text-field.esm.js.LICENSE.txt +1 -1
  119. package/dist/text.cjs.js +1 -1
  120. package/dist/text.cjs.js.LICENSE.txt +1 -1
  121. package/dist/text.esm.js +1 -1
  122. package/dist/text.esm.js.LICENSE.txt +1 -1
  123. package/dist/theme.cjs.js.LICENSE.txt +1 -1
  124. package/dist/theme.esm.js.LICENSE.txt +1 -1
  125. package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
  126. package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
  127. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  128. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  129. package/dist/video.cjs.js.LICENSE.txt +1 -1
  130. package/dist/video.esm.js.LICENSE.txt +1 -1
  131. package/dist/wrap.cjs.js +1 -1
  132. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  133. package/dist/wrap.esm.js +1 -1
  134. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  135. package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
  136. package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
  137. package/layout/animator.js +1 -80
  138. package/layout/audio.js +1 -95
  139. package/layout/audionew.js +1 -4
  140. package/layout/base.js +3 -46
  141. package/layout/beta-desktop-bar.js +1 -12
  142. package/layout/beta-mobile-bar.js +1 -41
  143. package/layout/button.js +1 -77
  144. package/layout/center.js +1 -41
  145. package/layout/checkbox.js +1 -5
  146. package/layout/circle.js +1 -1
  147. package/layout/code.js +1 -11
  148. package/layout/container.js +1 -95
  149. package/layout/dropdown-2025.js +1 -3
  150. package/layout/flex-card.js +1 -4
  151. package/layout/flex-grid.js +1 -19
  152. package/layout/flex-row.js +5 -227
  153. package/layout/form-components/custom.js +1 -1
  154. package/layout/form-components/data-list.js +1 -1
  155. package/layout/form-components/floating-input.js +1 -1
  156. package/layout/form-components/form-all.js +1 -1
  157. package/layout/form-components/form.js +1 -1
  158. package/layout/form-components/image-picker.js +1 -1
  159. package/layout/form-components/picker.js +1 -1
  160. package/layout/form-components/radio.js +1 -1
  161. package/layout/form-components/radiogroup.js +1 -1
  162. package/layout/form-components/range.js +1 -1
  163. package/layout/free.js +1 -40
  164. package/layout/grid-switcher.js +1 -14
  165. package/layout/grid.js +1 -11
  166. package/layout/horizontal-scroller.js +1 -7
  167. package/layout/image.js +1 -160
  168. package/layout/index.js +1 -1
  169. package/layout/link.js +1 -259
  170. package/layout/list.js +1 -8
  171. package/layout/meta-adder.js +1 -3
  172. package/layout/modal-2025.js +1 -44
  173. package/layout/multiswitcher.js +1 -55
  174. package/layout/nav-bar.js +1 -29
  175. package/layout/nav-factor/custom-div.js +1 -1
  176. package/layout/new-nav-bar.js +1 -91
  177. package/layout/polygon.js +1 -1
  178. package/layout/prerender-site.js +1 -2
  179. package/layout/prerender.js +1 -2
  180. package/layout/progress.js +1 -3
  181. package/layout/row.js +1 -15
  182. package/layout/scroll-video.js +1 -4
  183. package/layout/side-bar.js +1 -11
  184. package/layout/side-nav-bar.js +1 -66
  185. package/layout/simple-bar.js +1 -1
  186. package/layout/slider-2025.js +1 -2
  187. package/layout/spacer.js +1 -8
  188. package/layout/stack.js +1 -3
  189. package/layout/svg.js +1 -1
  190. package/layout/switcher.js +1 -6
  191. package/layout/table.js +1 -12
  192. package/layout/text-field.js +1 -3
  193. package/layout/text.js +1 -154
  194. package/layout/ulist.js +1 -13
  195. package/layout/video.js +1 -12
  196. package/layout/wrap.js +1 -50
  197. package/layout/zoom-card.js +1 -69
  198. package/lib/card-getter.js +1 -1
  199. package/lib/data.js +1 -1
  200. package/lib/designer.js +1 -1
  201. package/lib/element-mapper.js +1 -1
  202. package/lib/keyframe-animation.js +1 -1
  203. package/lib/link-getter.js +1 -1
  204. package/lib/raster-ops.js +1 -1
  205. package/lib/scroll-video.js +1 -1
  206. package/lib/seo.js +1 -1
  207. package/lib/stacker.js +1 -1
  208. package/lib/theme.js +1 -1
  209. package/lib/transform-anim.js +1 -1
  210. package/package.json +1 -1
package/layout/free.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.219
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
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -10,7 +10,6 @@ class AreaSwitcher {
10
10
  this.gridContainer = document.createElement("div");
11
11
  this.gridContainer.classList.add("grid-container");
12
12
  this.gridContainer.style.display = "grid";
13
- // this.gridContainer.style.gridAutoRows = "1fr"; EVIL LINE
14
13
  }
15
14
 
16
15
  set(obj){
@@ -54,10 +53,8 @@ for (var i = 0; i < arr.length - 1; i++){
54
53
  const outputString = withSpaceObj.map(row => `"${row}"`).join(" ");
55
54
  this.gridContainer.style.gridTemplateAreas = outputString;
56
55
 
57
- // this.gridContainer.style.border = `3px solid ${arr[i].color}`;
58
56
 
59
57
  } else if (window.innerWidth > to) {
60
- // this.gridContainer.style.border = `3px solid ${arr[arr.length - 1].color}`;
61
58
  //alert("P")
62
59
  // This always fires
63
60
  let obj = arr[arr.length - 1].template;
@@ -70,7 +67,6 @@ for (var i = 0; i < arr.length - 1; i++){
70
67
 
71
68
 
72
69
  }
73
- //return this;
74
70
  }
75
71
  reacta();
76
72
  window.addEventListener("resize", reacta);
@@ -79,9 +75,6 @@ for (var i = 0; i < arr.length - 1; i++){
79
75
 
80
76
  add(items){
81
77
 
82
- // let withSpaceObj = obj.map(str => str.split('').join(' '));
83
- // const outputString = withSpaceObj.map(row => `"${row}"`).join(" ");
84
- // this.gridContainer.style.gridTemplateAreas = outputString;//'"a a a" "b b b" "c d d" "c d d"';
85
78
  // Function to generate alphabetic sequences
86
79
  const generateAlphabeticSequence = (count) => {
87
80
  const chars = [];
@@ -102,7 +95,6 @@ for (var i = 0; i < arr.length - 1; i++){
102
95
 
103
96
  for (let i = 0; i < items.length; i++) {
104
97
  let e = items[i].render();
105
- // e.style.border = "1px solid gray";
106
98
  e.style.gridArea = els[i].toLowerCase(); // e.g., 'a', 'b', 'aa', 'ab', ...
107
99
 
108
100
  const gridItem = document.createElement("div");
@@ -126,8 +118,6 @@ for (var i = 0; i < arr.length - 1; i++){
126
118
  }
127
119
 
128
120
  // Usage example:
129
- //const simpleGrid = new Simple();
130
- //document.body.appendChild(simpleGrid.render());
131
121
 
132
122
 
133
123
  class GridSwitcher {
@@ -152,7 +142,6 @@ for (var i = 0; i < arr.length - 1; i++){
152
142
  if ((mq || val.at == "default") && mq !== this.lastMq){
153
143
  const update = new Simple().set(val.template, this.dynamicItems).render();
154
144
  this.el = update;
155
- // this.el.style.border = "1px solid black";
156
145
  this.render(this.domStr);
157
146
  this.lastMq = mq;
158
147
  }
@@ -167,14 +156,12 @@ for (var i = 0; i < arr.length - 1; i++){
167
156
  this.gridWrap.innerHTML = "";
168
157
  this.gridWrap.appendChild(this.el);
169
158
 
170
- // document.querySelector(div).removeChild(this.el);
171
159
  if (div){
172
160
  document.querySelector(div).appendChild(this.gridWrap);
173
161
  }
174
162
 
175
163
  return this.gridWrap;
176
164
 
177
- // return this.el;
178
165
  // Just return this.el it normally
179
166
  }
180
167
  }
package/layout/grid.js CHANGED
@@ -1,12 +1,9 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import {Animator} from "./animator.js";
8
-
9
-
10
7
  class Grid {
11
8
  constructor(frs, saveEl) {
12
9
  this.saveEl = saveEl;
@@ -38,7 +35,6 @@ class Grid {
38
35
  }
39
36
 
40
37
 
41
-
42
38
  size(w, h) {
43
39
  if (w === "wide") {
44
40
  this.res.style.width = "100%";
@@ -104,7 +100,6 @@ class Grid {
104
100
  let count = obj.count;
105
101
  let h = obj.width;
106
102
 
107
- //let media = window.matchMedia(`(max-width: 600px)`);
108
103
  let query = window.matchMedia("(max-device-width: 415px)");
109
104
 
110
105
  if (window.innerWidth < h || query.matches) {
@@ -146,9 +141,4 @@ class Grid {
146
141
  }
147
142
 
148
143
 
149
-
150
-
151
-
152
-
153
-
154
144
  export { Grid };
@@ -1,16 +1,12 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import {Animator} from "./animator.js";
8
-
9
-
10
7
  class HScroller {
11
8
  constructor() {
12
9
  this.setupa();
13
- // this.seto();
14
10
 
15
11
  }
16
12
 
@@ -48,7 +44,6 @@ class HScroller {
48
44
  setup() {
49
45
 
50
46
 
51
- // alert(this.e);
52
47
 
53
48
 
54
49
 
@@ -129,7 +124,6 @@ class HScroller {
129
124
  return this.div;
130
125
  }
131
126
 
132
- // document.body.appendChild(this.div);
133
127
  }
134
128
  }
135
129
 
package/layout/image.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -15,26 +15,9 @@ class Image extends Animator {
15
15
  this.code = [];
16
16
 
17
17
 
18
- /* if (type == "exact" || type == "uncover"){
19
- this.image(this.url, mode, type, "a", gcs);
20
- } else {
21
- this.setup();
22
- }
23
-
24
-
25
- if (type === "exact"){ // Has to be there
26
- const str = `new Image("${this.url}", "exact")`;
27
- this.code.push(str);
28
- } else if (type === "uncover"){ // Has to be there
29
- const str = `new Image("${this.url}", "uncover")`;
30
- this.code.push(str);
31
- } else {
32
- this.code.push(`new Image('${this.url}')`);
33
- }*/
34
18
  }
35
19
 
36
20
 
37
-
38
21
  setType({url, type, mode}){
39
22
  //alert("Thrice?");
40
23
 
@@ -56,22 +39,17 @@ class Image extends Animator {
56
39
  }
57
40
 
58
41
 
59
-
60
42
  hand(){
61
43
  this.res.style.cursor = "hand";
62
44
  return this;
63
45
  }
64
46
 
65
47
 
66
-
67
-
68
48
  getHeight(){
69
- // // console.log(this.res.height);
70
49
  return this.res.height;
71
50
  }
72
51
 
73
52
  getWidth(){
74
- // // console.log(this.res.width);
75
53
  return this.res.width;
76
54
  }
77
55
 
@@ -79,9 +57,6 @@ class Image extends Animator {
79
57
  return "HTMLImageElement";
80
58
  }
81
59
 
82
- /*toCode(){
83
- return this.code;
84
- }*/
85
60
 
86
61
  toCode() {
87
62
  // Capture the style properties applied to the image
@@ -118,10 +93,6 @@ let obj = options;
118
93
  obj.onTap && this.onTap(obj.onTap);
119
94
 
120
95
 
121
-
122
-
123
-
124
-
125
96
  let type = options.isFull;
126
97
 
127
98
 
@@ -160,34 +131,12 @@ let obj = options;
160
131
 
161
132
  if (type === "exact"){ // Has to be there
162
133
  const str = `new Image("${this.url}", "exact")`;
163
- // this.code.push(str);
164
134
  } else if (type === "uncover"){ // Has to be there
165
135
  const str = `new Image("${this.url}", "uncover")`;
166
- //this.code.push(str);
167
136
  } else {
168
- // this.code.push(`new Image('${this.url}')`);
169
137
  }
170
138
 
171
139
 
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
- /*
183
- obj.pad && this.pad(obj.pad);
184
- // stra += // 2345 06/03 other file
185
- obj.mar && this.mar(obj.mar);
186
- obj.respad && this.respad(obj.respad);
187
- obj.resmar && this.resmar(obj.resmar);
188
- */
189
-
190
-
191
140
  this.commonMethods(obj);
192
141
 
193
142
  options.vtn && (this.res.style.viewTransitionName = options.vtn);
@@ -199,10 +148,6 @@ obj.pad && this.pad(obj.pad);
199
148
  options.index && (this.index = options.index);
200
149
  options.index && (stra += `\n index: "${options.index}",`);
201
150
 
202
- /*if (options.index === 0){ // condition no fire
203
- //alert("not written here");
204
- stra += `\n index: "0",`;
205
- }*/
206
151
  options.resprop && this.resprop(options.resprop);
207
152
 
208
153
  if (options.centerSelf){
@@ -230,7 +175,6 @@ obj.pad && this.pad(obj.pad);
230
175
  options.as && this.as(options.as);
231
176
 
232
177
  options.onScroll && this.onScroll(options.onScroll);
233
- // options.fitContent && (this.res.style.objectFit = "contain");
234
178
 
235
179
  options.class && (this.res.setAttribute("class", options.class));
236
180
 
@@ -243,16 +187,10 @@ obj.pad && this.pad(obj.pad);
243
187
  stra += `\n gpos: ${this.removeQuotesFromFirstWord(JSON.stringify(options.gpos))}, `;
244
188
 
245
189
  }
246
- // options.gpos && alert(this.gposObject);
247
190
 
248
- /*if (Object.keys(options).length > 0){
249
- this.code.push(`\n .set({ \n}`);
250
- }*/
251
191
 
252
192
  // console.log(options);
253
193
 
254
- //const opts = optsa.filter(el => el.op.name === "blast")[0];
255
- // let filterObject = this.options.filtera.filter(a => a.op.name === "filter")[0];
256
194
  // // console.log(filterObject);
257
195
 
258
196
  if (options.filtera){ // smoke
@@ -271,7 +209,6 @@ obj.pad && this.pad(obj.pad);
271
209
  // console.warn(noiseObject);
272
210
  // console.log(noiseObject.op.filter);
273
211
 
274
- // this.setFilter(noiseObject);
275
212
 
276
213
  let removed = this.removeQuotesFromFirstWord(JSON.stringify(noiseObject));
277
214
  (stra += `\n filtera: ${removed}, \n`); // If I comment this out the filter should disappear!
@@ -281,7 +218,6 @@ obj.pad && this.pad(obj.pad);
281
218
  }
282
219
 
283
220
 
284
- //options.filter && (this.res.style.filter = options.filter);
285
221
 
286
222
 
287
223
 
@@ -291,7 +227,6 @@ obj.pad && this.pad(obj.pad);
291
227
 
292
228
  options.isBackground && (this.isBackground = options.isBackground);
293
229
 
294
- //options.zIndex && (this.res.style.zIndex = options.zIndex);
295
230
  options.zIndex && (stra += `\n zIndex: "${options.zIndex}", \n`);
296
231
 
297
232
 
@@ -313,18 +248,12 @@ obj.pad && this.pad(obj.pad);
313
248
  options.height && (stra += `height: "${options.height}", `);
314
249
 
315
250
 
316
-
317
-
318
-
319
251
  options.maxWidth && this.maxWidth(options.maxWidth);
320
- // options.maxWidth && this.code.push(`maxWidth: "${options.maxWidth}", \n`);
321
252
 
322
253
  options.maxWidth && (stra += `maxWidth: "${options.maxWidth}", \n`);
323
254
 
324
- // console.warn(this.res.style.width);
325
255
 
326
256
  options.radius && this.cornerRadius(options.radius);
327
- // options.radius && this.code.push(`radius: "${options.radius}"`);
328
257
 
329
258
 
330
259
  options.radius && (stra += `radius: "${options.radius}", \n`);
@@ -338,7 +267,6 @@ obj.pad && this.pad(obj.pad);
338
267
  options.clipPath && (stra += `clipPath: "${options.clipPath}", \n`);
339
268
 
340
269
 
341
-
342
270
  // console.log("261");
343
271
  // console.warn(obj);
344
272
  //----
@@ -400,16 +328,6 @@ obj.pad && this.pad(obj.pad);
400
328
  }
401
329
 
402
330
  // Maybe just fill-in dynamically
403
- /*let queries = [
404
- {
405
- range: obj.gradient[1].range, // This is BLAST
406
- log: "blast"
407
- },
408
- {
409
- range: obj.gradient[2].range, // This is GRADIENT
410
- log: "gradient"
411
- }
412
- ];*/
413
331
 
414
332
 
415
333
  // Both only 600-650
@@ -418,15 +336,12 @@ obj.pad && this.pad(obj.pad);
418
336
 
419
337
 
420
338
  // REDUNDANT?????
421
- // window.addEventListener("resize", () => this.react(arr));
422
339
  // console.log(arr);
423
340
 
424
341
 
425
342
  // UNCOMMENT THIS !!!
426
- // this.protoReact(arr, this.options.id);
427
343
 
428
344
  //console.warn("CALLINGA BETA REACT");
429
- // this.betaReact(arr, this.options.id);
430
345
  this.chainReact(arr, this.options.id);
431
346
 
432
347
 
@@ -473,10 +388,6 @@ obj.pad && this.pad(obj.pad);
473
388
  ft = ft.filter(el => el != undefined);
474
389
 
475
390
 
476
-
477
-
478
- // let arr = [];
479
-
480
391
  for (var i = 0; i < ft.length; i++){
481
392
  // console.log("Hello");
482
393
  arr.push({
@@ -492,34 +403,27 @@ obj.pad && this.pad(obj.pad);
492
403
  }
493
404
 
494
405
 
495
-
496
406
  setID(id){
497
407
  this.res.setAttribute("id", id);
498
408
  return this;
499
409
  }
500
410
 
501
411
 
502
-
503
-
504
412
  opacity(value){
505
413
  this.res.style.opacity = `${value}`;
506
414
  return this;
507
415
  }
508
416
 
509
417
 
510
-
511
-
512
418
  setArea(area){
513
419
  this.res.style.gridArea = area;
514
420
  return this;
515
421
  }
516
422
 
517
423
 
518
-
519
424
  setGrid(){
520
425
  this.res.style.gridRow = "span 2";
521
426
  this.res.style.gridColumn= "span 3";
522
- //this.res.style.gridColumn = "span 3";
523
427
  return this;
524
428
  }
525
429
 
@@ -574,8 +478,6 @@ obj.pad && this.pad(obj.pad);
574
478
  }
575
479
 
576
480
 
577
-
578
-
579
481
  mobileWidth(){
580
482
  let query = window.matchMedia("(max-device-width: 415px)");
581
483
  if (query.matches){
@@ -587,23 +489,14 @@ obj.pad && this.pad(obj.pad);
587
489
  }
588
490
 
589
491
 
590
- /*
591
- if (type == "exact" || type == "uncover"){
592
- this.image(this.url, mode);
593
- } else {
594
- this.setup();
595
- }
596
- */
597
492
  image(url, mode, type, vtn, gcs){
598
493
  //alert(gcs);
599
494
  //alert(mode);
600
495
  //alert(value);
601
- // this.el = null;
602
496
  let query = window.matchMedia("(max-device-width: 415px)");
603
497
  let back = document.createElement("div");
604
498
  //alert(vtn);
605
499
  back.style.viewTransitionName = vtn;
606
- //back.style.backgroundColor = "#ecf0f1";
607
500
  back.style.width = "100%";
608
501
  back.style.height = this.options.height ? this.options.height : "400px";
609
502
 
@@ -621,7 +514,6 @@ obj.pad && this.pad(obj.pad);
621
514
 
622
515
  back.style.backgroundImage = `url(${url})`;
623
516
  back.style.backgroundPosition = "center center";
624
- // back.style.backgroundRepeatX = "no-repeat";
625
517
  back.style.backgroundRepeat = "no-repeat";
626
518
 
627
519
  back.style.backgroundSize = "cover";
@@ -631,12 +523,6 @@ obj.pad && this.pad(obj.pad);
631
523
 
632
524
  back.style.backgroundSize = "contain";
633
525
  }
634
- /*back.style.backgroundSize = "cover";
635
-
636
-
637
- if (this.options.cover === false){
638
- back.style.backgroundSize = "";
639
- }*/
640
526
 
641
527
  if (mode === "contain"){
642
528
  //alert("J")
@@ -644,21 +530,15 @@ obj.pad && this.pad(obj.pad);
644
530
  }
645
531
 
646
532
 
647
- //back.style.borderTopLeftRadius = `${value}px`;
648
- //back.style.borderTopRightRadius = `${value}px`;
649
533
 
650
534
  this.res = back;
651
535
  return this;
652
536
  }
653
537
 
654
538
 
655
-
656
-
657
-
658
539
  setup() {
659
540
  let img = document.createElement("img");
660
541
  img.style.width = "100%";
661
- //img.style.height = "auto";
662
542
  img.src = this.url;
663
543
  this.res = img;
664
544
 
@@ -667,7 +547,6 @@ obj.pad && this.pad(obj.pad);
667
547
  }
668
548
 
669
549
 
670
-
671
550
  float(dir){
672
551
  this.res.style.float = `${dir}`;
673
552
  return this;
@@ -693,8 +572,6 @@ obj.pad && this.pad(obj.pad);
693
572
  }
694
573
 
695
574
 
696
-
697
-
698
575
  expand(obj){
699
576
 
700
577
 
@@ -705,7 +582,6 @@ obj.pad && this.pad(obj.pad);
705
582
  const convert = (value) => {
706
583
 
707
584
 
708
-
709
585
  var convertedValue = value;
710
586
 
711
587
  if ((value.includes("%")) || value.includes("px")){
@@ -714,7 +590,6 @@ obj.pad && this.pad(obj.pad);
714
590
  }
715
591
 
716
592
 
717
-
718
593
  if (value.includes("%")){
719
594
  return Number(convertedValue / 100 * window.innerWidth);
720
595
  }
@@ -759,21 +634,6 @@ if (mqa.matches){
759
634
  return this;
760
635
  }
761
636
 
762
- /*center(w){
763
-
764
-
765
- const adj = () => {
766
- if (this.res.style.width != 0){
767
- let count = window.innerWidth / 2 - (((w * window.innerWidth) / 100) / 2);
768
- this.res.style.marginLeft = `${count}px`;
769
- }
770
- }
771
-
772
-
773
- adj();
774
- window.onresize = adj();
775
- return this;
776
- }*/
777
637
 
778
638
  width(w){
779
639
  this.res.style.width = w;
@@ -829,7 +689,6 @@ if (mqa.matches){
829
689
  }
830
690
 
831
691
 
832
-
833
692
 
834
693
 
835
694
 
@@ -869,20 +728,6 @@ svg.style.display = "block";
869
728
  svg.style.width = "100%";
870
729
  svg.style.height = "100%";
871
730
  svg.style.overflow = "visible";
872
- //this.res.style.position = "absolute";
873
-
874
- /*
875
- let path = document.createElementNS("http://www.w3.org/2000/svg", "path");
876
- path.setAttribute("d", pathData);
877
- path.setAttribute("fill", "none");
878
- path.setAttribute("stroke", "black");
879
- path.setAttribute("stroke-width", "7");
880
- path.setAttribute("viewBox", "0 0 700 700");
881
- path.setAttribute("preserveAspectRatio", "xMidYMid meet");
882
-
883
- svg.appendChild(path);
884
-
885
- document.body.appendChild(svg);*/
886
731
 
887
732
 
888
733
  return this;
@@ -890,12 +735,8 @@ document.body.appendChild(svg);*/
890
735
 
891
736
  render(el) {
892
737
  let ela = this.res;//document.createElement("div");
893
- //ela.style.overflowX = "hidden";
894
- //ela.style.overflowY = "hidden";
895
- //ela.appendChild(this.res); // cannot move while loading
896
738
  // apply to every element maybe through the
897
739
 
898
- // let ela = this.res;
899
740
 
900
741
  if (el) {
901
742
  document.querySelector(el).appendChild(/*this.res*/ ela);
package/layout/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.218
2
+ * nodality v1.0.219
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */