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,453 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
-
10
- /*
11
- class ExactImage {
12
- constructor(url){
13
- this.image(url);
14
- }
15
-
16
- image(url, value, direction){
17
-
18
- // this.el = null;
19
- let query = window.matchMedia("(max-device-width: 415px)");
20
- let back = document.createElement("div");
21
- back.style.backgroundColor = "#ecf0f1";
22
- back.style.width = "100%";
23
- back.style.height = "200";
24
-
25
- if (query.matches){
26
- back.style.height = "500";
27
- }
28
-
29
- back.style.backgroundImage = `url(${url})`;
30
- back.style.backgroundPosition = "center center";
31
- back.style.backgroundSize = "cover";
32
- back.style.borderTopLeftRadius = `${value}px`;
33
- back.style.borderTopRightRadius = `${value}px`;
34
-
35
- this.el = back;
36
- return this;
37
- }
38
-
39
-
40
- render(){
41
- return this.el;
42
- }
43
- }
44
- */
45
-
46
- class Imager extends Animator {
47
- constructor(url, type, mode) {
48
- super();
49
- this.url = url;
50
- this.res = null;
51
-
52
-
53
-
54
-
55
- if (type == "exact"){
56
- this.image(this.url, mode);
57
- } else {
58
- this.setup();
59
- }
60
- }
61
-
62
- toSticky(){
63
- this.res.style.position = "sticky";
64
- this.res.style.top = "0px";
65
- return this;
66
- }
67
-
68
- setID(id){
69
- this.res.setAttribute("id", id);
70
- return this;
71
- }
72
-
73
- square(){
74
- this.res.style.width = "30%";
75
- this.res.style.paddingBottom = "30%";
76
- return this;
77
- }
78
-
79
-
80
- opacity(value){
81
- this.res.style.opacity = `${value}`;
82
- return this;
83
- }
84
-
85
-
86
- setGrid(){
87
- this.res.style.gridRow = "span 2";
88
- this.res.style.gridColumn= "span 3";
89
- //this.res.style.gridColumn = "span 3";
90
- return this;
91
- }
92
-
93
- transform(str){
94
- this.res.style.transform = str; //"rotate3d(.5,-.866,0,15deg) rotate(60deg)";
95
- return this;
96
- }
97
-
98
- offset(){
99
- this.res.style.marginLeft = "-60px";
100
- return this;
101
- }
102
-
103
- offseta(){
104
- this.res.style.marginLeft = "90px";
105
- this.res.style.marginTop = "-30px";
106
- return this;
107
- }
108
-
109
- borderAround(data){
110
- this.res.style.border = data;
111
- return this;
112
- }
113
-
114
- setClass(name){
115
- this.res.setAttribute("class", name);
116
- return this;
117
- }
118
-
119
- scale(obj){
120
-
121
- let previousWidth = this.res.style.width;
122
-
123
- this.res.style.transition= "0.5s all";
124
- // alert(previousWidth);
125
-
126
- this.res.addEventListener("mouseover", () => {
127
- let previousWidth = this.res.style.width;
128
- this.res.style.transform = "scale(1.04)";
129
- });
130
-
131
- this.res.addEventListener("mouseout", () => {
132
- let previousWidth = this.res.style.width;
133
- this.res.style.transform = "scale(1.0)";
134
- });
135
-
136
-
137
- return this;
138
- }
139
-
140
-
141
- onTap(e) {
142
- this.res.addEventListener("click", e);
143
- return this;
144
- }
145
-
146
- border(corners){
147
- this.res.style.borderTopLeftRadius = "16px";
148
- this.res.style.borderTopRightRadius = "16px";
149
- return this;
150
- }
151
-
152
- allRound(dimensions){
153
- this.res.style.borderRadius = dimensions;
154
- return this;
155
- }
156
-
157
-
158
- mobileWidth(){
159
- let query = window.matchMedia("(max-device-width: 415px)");
160
- if (query.matches){
161
- this.res.style.width = "120%";
162
- }
163
-
164
-
165
- return this;
166
- }
167
-
168
- image(url, mode, value, direction){
169
-
170
- // this.el = null;
171
- let query = window.matchMedia("(max-device-width: 415px)");
172
- let back = document.createElement("div");
173
- //back.style.backgroundColor = "#ecf0f1";
174
- back.style.width = "100%";
175
- back.style.height = "200";
176
-
177
- if (query.matches){
178
- back.style.height = "500";
179
- }
180
-
181
- back.style.backgroundImage = `url(${url})`;
182
- back.style.backgroundPosition = "center center";
183
- // back.style.backgroundRepeatX = "no-repeat";
184
- back.style.backgroundRepeat = "no-repeat";
185
-
186
- back.style.backgroundSize = "cover";
187
-
188
-
189
- if (mode === "contain"){
190
- back.style.backgroundSize = "contain";
191
- }
192
-
193
-
194
- back.style.borderTopLeftRadius = `${value}px`;
195
- back.style.borderTopRightRadius = `${value}px`;
196
-
197
- this.res = back;
198
- return this;
199
- }
200
-
201
-
202
-
203
-
204
-
205
- setup() {
206
- let img = document.createElement("img");
207
- img.style.width = "100%";
208
- //img.style.height = "auto";
209
- img.src = this.url;
210
- this.res = img;
211
- return this;
212
- }
213
-
214
- autoW(){
215
- this.res.style.width = "initial";
216
- return this;
217
- }
218
-
219
- float(dir){
220
- this.res.style.float = `${dir}`;
221
- return this;
222
- }
223
-
224
- fillAvailable(){
225
- this.res.style.height = "-webkit-fill-available";
226
- return this;
227
- }
228
-
229
-
230
-
231
-
232
- flex(val){
233
- this.res.style.flex = 1;
234
- return this;
235
- }
236
-
237
- height(h){
238
- this.res.style.height = h;
239
- this.res.style.width = "auto";
240
- return this;
241
- }
242
-
243
-
244
-
245
-
246
- expand(obj){
247
-
248
-
249
-
250
-
251
-
252
-
253
- const convert = (value) => {
254
-
255
-
256
-
257
- var convertedValue = value;
258
-
259
- if ((value.includes("%")) || value.includes("px")){
260
-
261
- convertedValue = convertedValue.substr(0, 2);
262
- }
263
-
264
-
265
-
266
- if (value.includes("%")){
267
- return Number(convertedValue / 100 * window.innerWidth);
268
- }
269
-
270
- if (value.includes("px")){
271
- return Number(convertedValue);
272
- }
273
-
274
- }
275
-
276
- const check = () => {
277
- let mq = window.matchMedia(`(min-width: ${obj.at})`);
278
-
279
- if (mq.matches){
280
- // alert("MATCH")
281
- this.res.style.width = `${obj.width}`;
282
-
283
- let newWidth = window.innerWidth / 2 - convert(obj.width) / 2;
284
- // alert(newWidth);
285
- this.res.style.marginLeft = `${newWidth}px`; // `calc(${window.innerWidth}-${obj.width} / 2)`;
286
- } else {
287
- this.res.style.width = `100%`;
288
- this.res.style.marginLeft = `0px`;
289
- }
290
-
291
-
292
- let mqa = window.matchMedia(`(max-device-width: 415px)`);
293
- if (mqa.matches){
294
- this.res.style.width = `100%`;
295
- this.res.style.marginLeft = `0px`;
296
- }
297
-
298
-
299
- }
300
-
301
-
302
- check();
303
-
304
- window.addEventListener("resize", check);
305
-
306
-
307
- return this;
308
- }
309
-
310
- /*center(w){
311
-
312
-
313
- const adj = () => {
314
- if (this.res.style.width != 0){
315
- let count = window.innerWidth / 2 - (((w * window.innerWidth) / 100) / 2);
316
- this.res.style.marginLeft = `${count}px`;
317
- }
318
- }
319
-
320
-
321
- adj();
322
- window.onresize = adj();
323
- return this;
324
- }*/
325
-
326
- width(w){
327
- this.res.style.width = w;
328
- this.res.style.height = "auto";
329
- return this;
330
- }
331
-
332
- margin(L, T, R, B) {
333
- if (L || T || R || B){ // CAUGHT MYSELF
334
- this.res.style.marginLeft = L;
335
- this.res.style.marginTop = T;
336
- this.res.style.marginRight = R;
337
- this.res.style.marginBottom = B;
338
- }
339
-
340
- if (!T && !R && !B){
341
-
342
- if (T !== 0 || R !== 0 || B !== 0){
343
- // alert("j")
344
- this.res.style.margin = L;
345
- }
346
-
347
-
348
- }
349
-
350
- return this;
351
- }
352
-
353
-
354
- padding(el){
355
- this.res.style.padding = el;
356
- return this;
357
- }
358
-
359
- size(w, h) {
360
- if (w && h) {
361
- this.res.style.width = w;
362
- this.res.style.height = h;
363
- } else {
364
- this.res.style.width = w;
365
- this.res.style.height = w;
366
- }
367
-
368
- return this;
369
- }
370
-
371
-
372
-
373
- frame(obj) {
374
- let w = obj.width;
375
- let h = obj.height;
376
-
377
- if (w && h) {
378
- this.res.style.width = w;
379
- this.res.style.height = h;
380
- } else {
381
- this.res.style.width = w;
382
- this.res.style.height = w;
383
- }
384
-
385
- return this;
386
- }
387
-
388
-
389
-
390
- RSize(w, h, ratio) {
391
-
392
- let mq = window.matchMedia("(max-device-width: 420px)");
393
-
394
-
395
- if (w && h) {
396
-
397
- this.res.style.width = mq.matches ? w * ratio : w;
398
- this.res.style.height = mq.matches ? h * ratio : h;
399
- } else {
400
- this.res.style.width = mq.matches ? w * ratio : w;
401
- this.res.style.height = mq.matches ? w * ratio : w;
402
- }
403
-
404
- return this;
405
- }
406
-
407
-
408
-
409
-
410
- shadow(obj){
411
-
412
-
413
-
414
-
415
-
416
- if (obj.type === "mild"){
417
- this.res.style.boxShadow = `0px 3px 15px rgba(0,0,0,0.2)`;
418
- } else {
419
- this.res.style.boxShadow = `${obj.x}px ${obj.y}px ${obj.radius}px ${obj.color}`;
420
-
421
- }
422
-
423
-
424
- return this;
425
- }
426
-
427
-
428
-
429
-
430
- clipShape(shape) {
431
- this.res.style.borderRadius = "50%";
432
- return this;
433
- }
434
-
435
- cornerRadius(val){
436
- this.res.style.borderRadius = val;
437
- return this;
438
- }
439
-
440
- render(el) {
441
- if (el) {
442
- document.querySelector(el).appendChild(this.res);
443
- } else {
444
- return this.res;
445
- }
446
- }
447
- }
448
-
449
- window.ExactImage
450
- Imager = ExactImage
451
- Imager;
452
- export { ExactImage
453
- Imager };
@@ -1,97 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
-
10
-
11
-
12
- class ModernWrap {
13
-
14
- setup(options){
15
- let gr = document.createElement("div");
16
- gr.style.padding = 0;
17
- gr.style.margin = 0;
18
- this.res = gr;
19
- return this;
20
- }
21
-
22
-
23
- add(els){
24
- for (var i = 0; i < els.length; i++){
25
- this.res.appendChild(els[i].render().render());
26
- }
27
- return this;
28
- }
29
-
30
-
31
-
32
- /*width(w, shouldCenter){
33
- this.res.style.width = w;
34
-
35
- if (shouldCenter){
36
- this.res.style.marginLeft = "auto";
37
- this.res.style.marginRight = "auto";
38
- }
39
- return this;
40
- }*/
41
-
42
- padding(value){
43
- this.res.style.padding = `${value}px`;
44
- return this;
45
- }
46
-
47
- size(w, h){
48
- this.w = w;
49
- this.h = h;
50
-
51
- if (this.w){
52
- this.res.style.width = this.w;
53
- } else {
54
- this.res.style.width = window.innerWidth;
55
- }
56
-
57
- if (this.h){
58
- this.res.style.height = this.h;
59
- } else {
60
- this.res.style.height = window.innerHeight;
61
- }
62
-
63
-
64
- return this;
65
- }
66
-
67
-
68
-
69
-
70
-
71
- /*items(els){
72
- for (var i = 0; i < els.length; i++){
73
- this.res.appendChild(els[i].render().render());
74
- }
75
- return this;
76
- }*/
77
-
78
-
79
-
80
- border(color, width){
81
- this.res.style.border = `${width}px solid ${color}`;
82
- return this;
83
- }
84
-
85
- render(el){
86
- if (el){
87
- document.querySelector(el).appendChild(this.res);
88
- } else {
89
- return this.res;
90
- }
91
-
92
- }
93
- }
94
-
95
-
96
-
97
- export { ModernWrap };
@@ -1,69 +0,0 @@
1
- /*!
2
- * nodality v1.0.215
3
- * (c) 2026 Filip Vabrousek
4
- * License: MIT
5
- */
6
-
7
- import {Animator} from "./animator.js";
8
-
9
- class MultiSwitcherBeta {
10
- constructor() {
11
- this.views = [];
12
- this.container = null;
13
- }
14
-
15
- switchViews(views) {
16
- this.views = views;
17
- return this;
18
- }
19
-
20
- render(selector) {
21
- this.container = selector ? document.querySelector(selector) : document.createElement("div");
22
-
23
- if (!this.container) {
24
- console.error(`Container ${selector} not found`);
25
- return;
26
- }
27
-
28
- // Sort views by window width
29
- this.views.sort((a, b) => parseInt(a.at) - parseInt(b.at));
30
-
31
- // Add resize event listener
32
- window.addEventListener('resize', this.updateView.bind(this));
33
-
34
- // Initial render
35
- this.updateView();
36
-
37
- return this.container;
38
- }
39
- /*
40
- updateView() {
41
- const windowWidth = window.innerWidth;
42
-
43
- for (let i = this.views.length - 1; i >= 0; i--) {
44
- if (windowWidth >= parseInt(this.views[i].at)) {
45
- // this.container.innerHTML = ''; // Clear current view
46
- this.container.appendChild(this.views[i].view); // Set new view
47
- break;
48
- }
49
- }
50
- }*/
51
-
52
- updateView() { // GPT 4o
53
- const windowWidth = window.innerWidth;
54
-
55
- for (let i = this.views.length - 1; i >= 0; i--) {
56
- if (windowWidth >= parseInt(this.views[i].at)) {
57
- if (this.container.firstChild !== this.views[i].view) {
58
- if (this.container.firstChild) {
59
- this.container.replaceChild(this.views[i].view, this.container.firstChild);
60
- } else {
61
- this.container.appendChild(this.views[i].view);
62
- }
63
- }
64
- break;
65
- }
66
- }
67
- }
68
- }
69
- export { MultiSwitcherBeta };