nodality 1.0.217 → 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.
- package/dist/animator.cjs.js.LICENSE.txt +1 -1
- package/dist/animator.esm.js.LICENSE.txt +1 -1
- package/dist/audionew.cjs.js.LICENSE.txt +1 -1
- package/dist/audionew.esm.js.LICENSE.txt +1 -1
- package/dist/base.cjs.js +1 -1
- package/dist/base.cjs.js.LICENSE.txt +1 -1
- package/dist/base.esm.js +1 -1
- package/dist/base.esm.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/bundle.umd.js.LICENSE.txt +1 -1
- package/dist/button.cjs.js.LICENSE.txt +1 -1
- package/dist/button.esm.js.LICENSE.txt +1 -1
- package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/card-getter.esm.js.LICENSE.txt +1 -1
- package/dist/center.cjs.js +1 -1
- package/dist/center.cjs.js.LICENSE.txt +1 -1
- package/dist/center.esm.js +1 -1
- package/dist/center.esm.js.LICENSE.txt +1 -1
- package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
- package/dist/checkbox.esm.js.LICENSE.txt +1 -1
- package/dist/code.cjs.js.LICENSE.txt +1 -1
- package/dist/code.esm.js.LICENSE.txt +1 -1
- package/dist/container.cjs.js.LICENSE.txt +1 -1
- package/dist/container.esm.js.LICENSE.txt +1 -1
- package/dist/data-list.cjs.js.LICENSE.txt +1 -1
- package/dist/data-list.esm.js.LICENSE.txt +1 -1
- package/dist/designer.cjs.js +1 -1
- package/dist/designer.cjs.js.LICENSE.txt +1 -1
- package/dist/designer.esm.js +1 -1
- package/dist/designer.esm.js.LICENSE.txt +1 -1
- package/dist/element-mapper.cjs.js +1 -1
- package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
- package/dist/element-mapper.esm.js +1 -1
- package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/finalresult.esm.js.LICENSE.txt +1 -1
- package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
- package/dist/flex-row.cjs.js +1 -1
- package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-row.esm.js +1 -1
- package/dist/flex-row.esm.js.LICENSE.txt +1 -1
- package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
- package/dist/floating-input.esm.js.LICENSE.txt +1 -1
- package/dist/free.cjs.js.LICENSE.txt +1 -1
- package/dist/free.esm.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.cjs.js +1 -1
- package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.esm.js +1 -1
- package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
- package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
- package/dist/image-picker.esm.js.LICENSE.txt +1 -1
- package/dist/image.cjs.js.LICENSE.txt +1 -1
- package/dist/image.esm.js.LICENSE.txt +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.LICENSE.txt +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
- package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/link-getter.esm.js.LICENSE.txt +1 -1
- package/dist/link.cjs.js.LICENSE.txt +1 -1
- package/dist/link.esm.js.LICENSE.txt +1 -1
- package/dist/meta-adder.cjs.js +1 -1
- package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
- package/dist/meta-adder.esm.js +1 -1
- package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
- package/dist/modal-2025.cjs.js +1 -1
- package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/modal-2025.esm.js +1 -1
- package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/picker.cjs.js.LICENSE.txt +1 -1
- package/dist/picker.esm.js.LICENSE.txt +1 -1
- package/dist/progress.cjs.js +1 -1
- package/dist/progress.cjs.js.LICENSE.txt +1 -1
- package/dist/progress.esm.js +1 -1
- package/dist/progress.esm.js.LICENSE.txt +1 -1
- package/dist/radio.cjs.js.LICENSE.txt +1 -1
- package/dist/radio.esm.js.LICENSE.txt +1 -1
- package/dist/range.cjs.js.LICENSE.txt +1 -1
- package/dist/range.esm.js.LICENSE.txt +1 -1
- package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
- package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
- package/dist/side-bar.cjs.js +1 -1
- package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-bar.esm.js +1 -1
- package/dist/side-bar.esm.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
- package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
- package/dist/spacer.cjs.js +1 -1
- package/dist/spacer.cjs.js.LICENSE.txt +1 -1
- package/dist/spacer.esm.js +1 -1
- package/dist/spacer.esm.js.LICENSE.txt +1 -1
- package/dist/stack.cjs.js +1 -1
- package/dist/stack.cjs.js.LICENSE.txt +1 -1
- package/dist/stack.esm.js +1 -1
- package/dist/stack.esm.js.LICENSE.txt +1 -1
- package/dist/stacker.cjs.js.LICENSE.txt +1 -1
- package/dist/stacker.esm.js.LICENSE.txt +1 -1
- package/dist/table.cjs.js.LICENSE.txt +1 -1
- package/dist/table.esm.js.LICENSE.txt +1 -1
- package/dist/text-field.cjs.js.LICENSE.txt +1 -1
- package/dist/text-field.esm.js.LICENSE.txt +1 -1
- package/dist/text.cjs.js +1 -1
- package/dist/text.cjs.js.LICENSE.txt +1 -1
- package/dist/text.esm.js +1 -1
- package/dist/text.esm.js.LICENSE.txt +1 -1
- package/dist/theme.cjs.js.LICENSE.txt +1 -1
- package/dist/theme.esm.js.LICENSE.txt +1 -1
- package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
- package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
- package/dist/ulist.cjs.js.LICENSE.txt +1 -1
- package/dist/ulist.esm.js.LICENSE.txt +1 -1
- package/dist/video.cjs.js.LICENSE.txt +1 -1
- package/dist/video.esm.js.LICENSE.txt +1 -1
- package/dist/wrap.cjs.js +1 -1
- package/dist/wrap.cjs.js.LICENSE.txt +1 -1
- package/dist/wrap.esm.js +1 -1
- package/dist/wrap.esm.js.LICENSE.txt +1 -1
- package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/layout/animator.js +1 -80
- package/layout/audio.js +1 -95
- package/layout/audionew.js +1 -4
- package/layout/base.js +3 -46
- package/layout/beta-desktop-bar.js +1 -12
- package/layout/beta-mobile-bar.js +1 -41
- package/layout/button.js +1 -77
- package/layout/center.js +1 -41
- package/layout/checkbox.js +1 -5
- package/layout/circle.js +1 -1
- package/layout/code.js +1 -11
- package/layout/container.js +1 -95
- package/layout/dropdown-2025.js +1 -3
- package/layout/flex-card.js +1 -4
- package/layout/flex-grid.js +1 -19
- package/layout/flex-row.js +5 -227
- package/layout/form-components/custom.js +1 -1
- package/layout/form-components/data-list.js +1 -1
- package/layout/form-components/floating-input.js +1 -1
- package/layout/form-components/form-all.js +1 -1
- package/layout/form-components/form.js +1 -1
- package/layout/form-components/image-picker.js +1 -1
- package/layout/form-components/picker.js +1 -1
- package/layout/form-components/radio.js +1 -1
- package/layout/form-components/radiogroup.js +1 -1
- package/layout/form-components/range.js +1 -1
- package/layout/free.js +1 -40
- package/layout/grid-switcher.js +1 -14
- package/layout/grid.js +1 -11
- package/layout/horizontal-scroller.js +1 -7
- package/layout/image.js +1 -160
- package/layout/index.js +1 -1
- package/layout/link.js +1 -259
- package/layout/list.js +5 -13
- package/layout/meta-adder.js +1 -3
- package/layout/modal-2025.js +1 -44
- package/layout/multiswitcher.js +1 -55
- package/layout/nav-bar.js +4 -40
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -91
- package/layout/polygon.js +1 -1
- package/layout/prerender-site.js +1 -2
- package/layout/prerender.js +1 -2
- package/layout/progress.js +1 -3
- package/layout/row.js +1 -15
- package/layout/scroll-video.js +1 -4
- package/layout/side-bar.js +1 -11
- package/layout/side-nav-bar.js +1 -66
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -2
- package/layout/spacer.js +1 -8
- package/layout/stack.js +1 -3
- package/layout/svg.js +1 -1
- package/layout/switcher.js +1 -6
- package/layout/table.js +1 -12
- package/layout/text-field.js +1 -3
- package/layout/text.js +1 -154
- package/layout/ulist.js +1 -13
- package/layout/video.js +1 -12
- package/layout/wrap.js +1 -50
- package/layout/zoom-card.js +1 -69
- package/lib/card-getter.js +1 -1
- package/lib/data.js +1 -1
- package/lib/designer.js +1 -1
- package/lib/element-mapper.js +1 -1
- package/lib/keyframe-animation.js +1 -1
- package/lib/link-getter.js +1 -1
- package/lib/raster-ops.js +1 -1
- package/lib/scroll-video.js +1 -1
- package/lib/seo.js +1 -1
- package/lib/stacker.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/transform-anim.js +1 -1
- package/package.json +1 -1
package/layout/text.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.219
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -26,7 +26,6 @@ class Text extends Animator {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
|
|
@@ -36,7 +35,6 @@ class Text extends Animator {
|
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
|
|
39
|
-
|
|
40
38
|
toCode(){
|
|
41
39
|
if (this.excludeFromCodeTrue){
|
|
42
40
|
return [""];
|
|
@@ -66,7 +64,6 @@ class Text extends Animator {
|
|
|
66
64
|
this.preffersId ? this.elCSS.unshift(this.res.id + " { \n") : (this.elCSS.unshift("." + this.class + " { \n"));
|
|
67
65
|
this.elCSS.push(" } \n \n");
|
|
68
66
|
// console.warn("OI")
|
|
69
|
-
// console.log(this.elCSS);
|
|
70
67
|
return this.elCSS;
|
|
71
68
|
}
|
|
72
69
|
|
|
@@ -102,12 +99,6 @@ class Text extends Animator {
|
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
|
|
105
|
-
|
|
106
|
-
toHTML(){
|
|
107
|
-
return this.res;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
102
|
onTap(e){
|
|
112
103
|
this.res.addEventListener("click", e);
|
|
113
104
|
return this;
|
|
@@ -119,7 +110,6 @@ class Text extends Animator {
|
|
|
119
110
|
}
|
|
120
111
|
|
|
121
112
|
|
|
122
|
-
|
|
123
113
|
styled(obj) {
|
|
124
114
|
this.set(obj);
|
|
125
115
|
return this;
|
|
@@ -177,12 +167,7 @@ class Text extends Animator {
|
|
|
177
167
|
this.commonMethods(obj);
|
|
178
168
|
|
|
179
169
|
|
|
180
|
-
// (obj.opacity !== undefined) && (this.res.style.opacity = obj.opacity);
|
|
181
|
-
|
|
182
|
-
// obj.isHidden && this.isHidden(obj.isHidden);
|
|
183
|
-
|
|
184
170
|
//alert(obj.top);
|
|
185
|
-
//obj.top && (this.res.style.top = obj.top);
|
|
186
171
|
obj.left && (this.res.style.left = obj.left);
|
|
187
172
|
|
|
188
173
|
obj.flex && (this.res.style.display = "flex");
|
|
@@ -247,16 +232,10 @@ this.res.style.position = "absolute";
|
|
|
247
232
|
|
|
248
233
|
super.setClass(this.options.class);
|
|
249
234
|
obj.clampc && this.clampCopy(obj.clampc);
|
|
250
|
-
//obj.pad && this.pad(obj.pad);
|
|
251
|
-
// obj.respad && this.respad(obj.respad);
|
|
252
|
-
// obj.resmar && this.resmar(obj.resmar);
|
|
253
235
|
|
|
254
236
|
// stra += // 2345 06/03
|
|
255
|
-
// obj.mar && this.mar(obj.mar);
|
|
256
237
|
|
|
257
238
|
|
|
258
|
-
// obj.exact && (this.res.style.fontSize = obj.exact);
|
|
259
|
-
// obj.zIndex && (this.res.style.zIndex = obj.zIndex);
|
|
260
239
|
obj.absolute && (this.res.style.position = "absolute");
|
|
261
240
|
|
|
262
241
|
|
|
@@ -266,23 +245,16 @@ this.res.style.position = "absolute";
|
|
|
266
245
|
this.fluid(obj.fluid);
|
|
267
246
|
}
|
|
268
247
|
|
|
269
|
-
//obj.font && this.font(obj.font);
|
|
270
248
|
obj.fluidc && (this.elCSS.push(`font-family: ${obj.font}; \n`));
|
|
271
249
|
obj.align && (this.res.style.textAlign = obj.align);
|
|
272
250
|
|
|
273
|
-
// obj.weight && (this.res.style.fontWeight = obj.weight);
|
|
274
251
|
//@ breakWord: Allow long words to wrap mid-word (word-wrap: break-word).
|
|
275
252
|
obj.breakWord && (this.res.style.wordWrap = "break-word");
|
|
276
253
|
// `center` used to set auto margins here, i.e. centre the Text
|
|
277
254
|
// ITSELF — the opposite of what it means on every other component
|
|
278
255
|
// now. That is `mar: "center"`.
|
|
279
256
|
obj.center && this.deprecatedOption("center on Text", 'mar: "center"');
|
|
280
|
-
//obj.width && (this.res.style.width = obj.width);
|
|
281
|
-
// obj.height && (this.res.style.height = obj.height);
|
|
282
|
-
//obj.background && (this.res.style.backgroundColor = obj.background);
|
|
283
|
-
//obj.radius && (this.res.style.borderRadius = obj.radius);
|
|
284
257
|
// width, height, background, radius, resprop, keySet, maxHeight
|
|
285
|
-
// obj.resprop && this.resprop(obj.resprop);
|
|
286
258
|
obj.italic && this.italic();
|
|
287
259
|
// stra += 17:01:43 11/11/24
|
|
288
260
|
|
|
@@ -294,17 +266,9 @@ this.res.style.position = "absolute";
|
|
|
294
266
|
|
|
295
267
|
obj.keySet && this.keySet(obj.keySet);
|
|
296
268
|
|
|
297
|
-
//obj.maxHeight && (this.res.style.maxHeight = obj.maxHeight);
|
|
298
|
-
|
|
299
269
|
|
|
300
|
-
/*if (obj.transform){
|
|
301
|
-
}*/
|
|
302
270
|
// Done by commonMethods
|
|
303
|
-
//obj.transform && this.reactOnTransform(obj.transform); // remove obj.op.duration
|
|
304
271
|
|
|
305
|
-
/*if (obj.transform.op.values){
|
|
306
|
-
alert("P");
|
|
307
|
-
}*/
|
|
308
272
|
|
|
309
273
|
|
|
310
274
|
|
|
@@ -312,13 +276,11 @@ this.res.style.position = "absolute";
|
|
|
312
276
|
|
|
313
277
|
|
|
314
278
|
|
|
315
|
-
//this.code.push(str); // 14:04:10 06/03
|
|
316
279
|
|
|
317
280
|
return this;
|
|
318
281
|
} // 114522 you can hit tab
|
|
319
282
|
|
|
320
283
|
|
|
321
|
-
|
|
322
284
|
callReact(obj){
|
|
323
285
|
|
|
324
286
|
let arr = [];
|
|
@@ -378,9 +340,6 @@ this.res.style.position = "absolute";
|
|
|
378
340
|
keep.push("span");
|
|
379
341
|
}
|
|
380
342
|
|
|
381
|
-
/* if (obj.transform){
|
|
382
|
-
keep.push("transform");
|
|
383
|
-
}*/
|
|
384
343
|
|
|
385
344
|
// console.log("ARA IS " + arr);
|
|
386
345
|
|
|
@@ -413,42 +372,6 @@ addIcon(obj){
|
|
|
413
372
|
|
|
414
373
|
|
|
415
374
|
|
|
416
|
-
/*
|
|
417
|
-
|
|
418
|
-
between(name){
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
if (name === "S1"){
|
|
422
|
-
this.res.style.fontSize = "clamp(2rem, 8vw, 2.5rem)";
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
if (name === "S2"){
|
|
426
|
-
this.res.style.fontSize = "clamp(4rem, 8vw, 5rem)";
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
if (name === "S3"){
|
|
430
|
-
this.res.style.fontSize = "clamp(2rem, 5vw, 2.5rem)";
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
if (name === "S4"){
|
|
435
|
-
this.res.style.fontSize = "clamp(1.5rem, 2vw, 1.6rem)";
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
if (name === "S5"){
|
|
439
|
-
this.res.style.fontSize = "clamp(1.2rem, 2vw, 1.3rem)";
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (name === "S6"){
|
|
443
|
-
this.res.style.fontSize = "clamp(1rem, 2vw, 1.3rem)";
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
return this;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
*/
|
|
452
375
|
|
|
453
376
|
between(name){
|
|
454
377
|
|
|
@@ -512,7 +435,6 @@ addIcon(obj){
|
|
|
512
435
|
// // console.log();
|
|
513
436
|
|
|
514
437
|
document.styleSheets[0].insertRule(`#${str}::first-letter { color: green; font-size: 3em; padding: 0.1em }`, 0);
|
|
515
|
-
// this.res.style.initialLetter = n;
|
|
516
438
|
return this;
|
|
517
439
|
}
|
|
518
440
|
|
|
@@ -570,9 +492,6 @@ addIcon(obj){
|
|
|
570
492
|
const display5 = "calc(1.1rem + 1.2vw)";
|
|
571
493
|
|
|
572
494
|
if (name === "S5"){
|
|
573
|
-
//this.res = document.createElement("p");
|
|
574
|
-
//let node = document.createTextNode(this.text);
|
|
575
|
-
// this.res.appendChild(node);
|
|
576
495
|
// alert("K")
|
|
577
496
|
this.res.style.fontSize = display5;
|
|
578
497
|
}
|
|
@@ -620,23 +539,6 @@ addIcon(obj){
|
|
|
620
539
|
}
|
|
621
540
|
|
|
622
541
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
jumbotron() {
|
|
627
|
-
const adj = () => {
|
|
628
|
-
let query = window.matchMedia("(max-device-width: 415px)");
|
|
629
|
-
if (query.matches) {
|
|
630
|
-
this.res.style.fontSize = '8rem';
|
|
631
|
-
} else {
|
|
632
|
-
this.res.style.fontSize = '6rem';
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
adj();
|
|
637
|
-
window.addEventListener("resize", adj);
|
|
638
|
-
return this;
|
|
639
|
-
}
|
|
640
542
|
|
|
641
543
|
|
|
642
544
|
large() {
|
|
@@ -679,8 +581,6 @@ addIcon(obj){
|
|
|
679
581
|
this.setB = false;
|
|
680
582
|
|
|
681
583
|
|
|
682
|
-
// *Â window.innerWidth);
|
|
683
|
-
// // console.log(base.baseVW / 100 * window.innerWidth);
|
|
684
584
|
// CONVERT CURRENT base.VW to pixels
|
|
685
585
|
|
|
686
586
|
if (!this.set){
|
|
@@ -695,7 +595,6 @@ addIcon(obj){
|
|
|
695
595
|
//alert("ON REFRESH");
|
|
696
596
|
this.res.style.color = "orange";
|
|
697
597
|
this.res.style.fontSize = `${base.baseVW / 100 * base.maxw}px`;
|
|
698
|
-
//this.res.style.fontSize = `${base.maxFont}px`;
|
|
699
598
|
this.setB = true;
|
|
700
599
|
}
|
|
701
600
|
|
|
@@ -710,11 +609,6 @@ addIcon(obj){
|
|
|
710
609
|
}
|
|
711
610
|
|
|
712
611
|
|
|
713
|
-
/*let query = window.matchMedia(`(max-device-width: ${o.w}px)`);
|
|
714
|
-
if (query.matches) {
|
|
715
|
-
alert("joa")
|
|
716
|
-
this.res.style.fontSize = `${o.size}vw`;
|
|
717
|
-
}*/
|
|
718
612
|
|
|
719
613
|
|
|
720
614
|
adapt();
|
|
@@ -729,7 +623,6 @@ addIcon(obj){
|
|
|
729
623
|
|
|
730
624
|
|
|
731
625
|
|
|
732
|
-
// this.res.style.fontSize = `calc(${base}px + 1vw)`;
|
|
733
626
|
return this;
|
|
734
627
|
}
|
|
735
628
|
|
|
@@ -738,9 +631,6 @@ addIcon(obj){
|
|
|
738
631
|
medium() {
|
|
739
632
|
const adj = () => {
|
|
740
633
|
let query = window.matchMedia("(max-device-width: 415px)");
|
|
741
|
-
/* let query = window.matchMedia("(max-device-width: 415px)");
|
|
742
|
-
if (window.innerWidth < h || query.matches) {
|
|
743
|
-
} */
|
|
744
634
|
|
|
745
635
|
if (query.matches) {
|
|
746
636
|
this.res.style.fontSize = '2.25rem';
|
|
@@ -772,9 +662,6 @@ addIcon(obj){
|
|
|
772
662
|
small() {
|
|
773
663
|
const adj = () => {
|
|
774
664
|
let query = window.matchMedia("(max-device-width: 415px)");
|
|
775
|
-
/* let query = window.matchMedia("(max-device-width: 415px)");
|
|
776
|
-
if (window.innerWidth < h || query.matches) {
|
|
777
|
-
} */
|
|
778
665
|
|
|
779
666
|
if (query.matches) {
|
|
780
667
|
this.res.style.fontSize = '1.5em';
|
|
@@ -826,7 +713,6 @@ addIcon(obj){
|
|
|
826
713
|
el.setAttribute("id", obj.id);
|
|
827
714
|
|
|
828
715
|
|
|
829
|
-
|
|
830
716
|
if (obj.type === "span"){
|
|
831
717
|
|
|
832
718
|
|
|
@@ -838,8 +724,6 @@ addIcon(obj){
|
|
|
838
724
|
|
|
839
725
|
|
|
840
726
|
|
|
841
|
-
//el = document.createElement("span");
|
|
842
|
-
//el.style.display = "block";
|
|
843
727
|
}
|
|
844
728
|
|
|
845
729
|
} else {
|
|
@@ -869,11 +753,6 @@ addIcon(obj){
|
|
|
869
753
|
}
|
|
870
754
|
|
|
871
755
|
|
|
872
|
-
/*size(s) {
|
|
873
|
-
this.res.style.fontSize = s;
|
|
874
|
-
return this;
|
|
875
|
-
}*/
|
|
876
|
-
|
|
877
756
|
em(e) {
|
|
878
757
|
this.res.style.fontSize = `${e}em`;
|
|
879
758
|
//alert("h")
|
|
@@ -882,8 +761,6 @@ addIcon(obj){
|
|
|
882
761
|
|
|
883
762
|
color(color) {
|
|
884
763
|
this.res.style.color = color;
|
|
885
|
-
//this.code.push(`.color(${color}),`);
|
|
886
|
-
//this.code.push(`.color(${color})`);
|
|
887
764
|
return this;
|
|
888
765
|
}
|
|
889
766
|
|
|
@@ -907,11 +784,6 @@ addIcon(obj){
|
|
|
907
784
|
return this;
|
|
908
785
|
}
|
|
909
786
|
|
|
910
|
-
/*padding(val){
|
|
911
|
-
this.res.style.padding = val;
|
|
912
|
-
return this;
|
|
913
|
-
}*/
|
|
914
|
-
|
|
915
787
|
|
|
916
788
|
|
|
917
789
|
width(w, shouldCenter){
|
|
@@ -926,9 +798,6 @@ addIcon(obj){
|
|
|
926
798
|
|
|
927
799
|
|
|
928
800
|
offset(obj){
|
|
929
|
-
/*this.res.style.marginLeft = "-390px";
|
|
930
|
-
this.res.style.marginTop = "-360px";
|
|
931
|
-
this.res.style.color = "green";*/
|
|
932
801
|
|
|
933
802
|
|
|
934
803
|
this.res.style.gridRow = 2;
|
|
@@ -946,7 +815,6 @@ addIcon(obj){
|
|
|
946
815
|
}
|
|
947
816
|
|
|
948
817
|
|
|
949
|
-
|
|
950
818
|
updating(obj, key) {
|
|
951
819
|
|
|
952
820
|
var copy = this.res;
|
|
@@ -958,7 +826,6 @@ addIcon(obj){
|
|
|
958
826
|
|
|
959
827
|
|
|
960
828
|
// this.text
|
|
961
|
-
// let node = document.createTextNode(`Pressed ${newVal}`);
|
|
962
829
|
let node = document.createTextNode(txt.replace("$", newVal))
|
|
963
830
|
copy.replaceChild(node, copy.childNodes[0]);
|
|
964
831
|
}
|
|
@@ -1002,10 +869,6 @@ addIcon(obj){
|
|
|
1002
869
|
}
|
|
1003
870
|
|
|
1004
871
|
// setFirst
|
|
1005
|
-
/*let query = window.matchMedia(`(max-width: ${arr[0].width}px)`);
|
|
1006
|
-
if (!query.matches){
|
|
1007
|
-
Object.assign(this.res.style, arr[0].styles);
|
|
1008
|
-
}*/
|
|
1009
872
|
|
|
1010
873
|
goThroughStyles();
|
|
1011
874
|
window.addEventListener("resize", goThroughStyles); // never use "on" here. Will get overrwritten !
|
|
@@ -1018,23 +881,9 @@ addIcon(obj){
|
|
|
1018
881
|
*/
|
|
1019
882
|
|
|
1020
883
|
|
|
1021
|
-
/*
|
|
1022
|
-
render(el) {
|
|
1023
|
-
Array.from(this.res.children).forEach(e => e.style.padding = 0);
|
|
1024
|
-
Array.from(this.res.children).forEach(e => e.style.margin = 0);
|
|
1025
|
-
|
|
1026
|
-
if (el) {
|
|
1027
|
-
document.querySelector(el).appendChild(this.res);
|
|
1028
|
-
} else {
|
|
1029
|
-
return this.res;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
*/
|
|
1033
884
|
|
|
1034
885
|
|
|
1035
886
|
|
|
1036
|
-
//Array.from(this.res.children).forEach(e => e.style.padding = 0);
|
|
1037
|
-
//Array.from(this.res.children).forEach(e => e.style.margin = 0);
|
|
1038
887
|
|
|
1039
888
|
if (div) {
|
|
1040
889
|
if (this.options && this.options.id){
|
|
@@ -1065,8 +914,6 @@ addIcon(obj){
|
|
|
1065
914
|
}
|
|
1066
915
|
|
|
1067
916
|
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
917
|
|
|
1071
918
|
}
|
|
1072
919
|
|
package/layout/ulist.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.219
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -20,7 +20,6 @@ class UList extends Animator {
|
|
|
20
20
|
obj.mar && this.mar(obj.mar);
|
|
21
21
|
|
|
22
22
|
// CRITICAL
|
|
23
|
-
// obj.transform && this.reactOnTransform(obj.transform); // remove obj.op.duration
|
|
24
23
|
this.commonMethods(obj);
|
|
25
24
|
this.callReact(obj);
|
|
26
25
|
return this;
|
|
@@ -86,9 +85,6 @@ class UList extends Animator {
|
|
|
86
85
|
keep.push("span");
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
/* if (obj.transform){
|
|
90
|
-
keep.push("transform");
|
|
91
|
-
}*/
|
|
92
88
|
|
|
93
89
|
// console.log("ARA IS " + arr);
|
|
94
90
|
|
|
@@ -97,13 +93,6 @@ class UList extends Animator {
|
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
96
|
setup() {
|
|
108
97
|
let el = document.createElement("ul");
|
|
109
98
|
this.res = el;
|
|
@@ -176,7 +165,6 @@ class UList extends Animator {
|
|
|
176
165
|
}
|
|
177
166
|
|
|
178
167
|
|
|
179
|
-
|
|
180
168
|
|
|
181
169
|
toCode(indent = 0) {
|
|
182
170
|
this.code = [];
|
package/layout/video.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.219
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -14,7 +14,6 @@ class Video extends Animator {
|
|
|
14
14
|
super();
|
|
15
15
|
this.url = url;
|
|
16
16
|
this.res = null;
|
|
17
|
-
//this.setup(obj);
|
|
18
17
|
|
|
19
18
|
this.setup();
|
|
20
19
|
}
|
|
@@ -41,16 +40,8 @@ class Video extends Animator {
|
|
|
41
40
|
size(w/*, h*/) {
|
|
42
41
|
|
|
43
42
|
this.res.style.width = w;
|
|
44
|
-
//this.res.style.height = w;
|
|
45
43
|
|
|
46
44
|
|
|
47
|
-
/*if (w && h) {
|
|
48
|
-
this.res.style.width = w;
|
|
49
|
-
this.res.style.height = h;
|
|
50
|
-
} else {
|
|
51
|
-
this.res.style.width = w;
|
|
52
|
-
this.res.style.height = w;
|
|
53
|
-
}*/
|
|
54
45
|
|
|
55
46
|
return this;
|
|
56
47
|
}
|
|
@@ -70,7 +61,5 @@ class Video extends Animator {
|
|
|
70
61
|
}
|
|
71
62
|
|
|
72
63
|
|
|
73
|
-
//var _oldVideo = Video;
|
|
74
|
-
//Video = function(...args) { return new _oldVideo(...args) };
|
|
75
64
|
|
|
76
65
|
export { Video };
|
package/layout/wrap.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
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
7
|
class Wrap {
|
|
10
8
|
constructor(els){
|
|
11
9
|
this.code = [];
|
|
@@ -18,23 +16,17 @@ class Wrap {
|
|
|
18
16
|
for (var i = 0; i < els.length; i++){
|
|
19
17
|
|
|
20
18
|
|
|
21
|
-
/*var element = els[i];
|
|
22
|
-
var _oldEl = element;
|
|
23
|
-
element = function(...args) { return new _oldEl(...args) };
|
|
24
|
-
*/
|
|
25
19
|
|
|
26
20
|
|
|
27
21
|
//console.log(new els[i])
|
|
28
22
|
this.res.appendChild(els[i].render().render());
|
|
29
23
|
|
|
30
24
|
|
|
31
|
-
|
|
32
25
|
|
|
33
26
|
}
|
|
34
27
|
}
|
|
35
28
|
|
|
36
29
|
|
|
37
|
-
|
|
38
30
|
|
|
39
31
|
|
|
40
32
|
setup(){
|
|
@@ -83,12 +75,6 @@ class Wrap {
|
|
|
83
75
|
|
|
84
76
|
|
|
85
77
|
|
|
86
|
-
/*items(els){
|
|
87
|
-
for (var i = 0; i < els.length; i++){
|
|
88
|
-
this.res.appendChild(els[i].render().render());
|
|
89
|
-
}
|
|
90
|
-
return this;
|
|
91
|
-
}*/
|
|
92
78
|
|
|
93
79
|
|
|
94
80
|
|
|
@@ -108,39 +94,4 @@ class Wrap {
|
|
|
108
94
|
}
|
|
109
95
|
|
|
110
96
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
97
|
export { Wrap };
|
package/layout/zoom-card.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.219
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -27,8 +27,6 @@ class ZoomCard extends Animator {
|
|
|
27
27
|
obj.mar && this.mar(obj.mar);
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
//obj.arrayMargin && this.arrayMargin(obj.arrayMargin.sides, obj.arrayMargin.value);
|
|
31
|
-
|
|
32
30
|
obj.inpad && this.inpad(obj.inpad);
|
|
33
31
|
obj.inpad && (stra += `\n inpad: {${obj.inpad}}`);
|
|
34
32
|
|
|
@@ -70,7 +68,6 @@ class ZoomCard extends Animator {
|
|
|
70
68
|
card.style.gridArea = "1/1";
|
|
71
69
|
|
|
72
70
|
// Set the CSS properties of the card
|
|
73
|
-
// card.style.width = '300px';
|
|
74
71
|
card.style.height = '400px';
|
|
75
72
|
card.style.borderRadius = '15px';
|
|
76
73
|
card.style.boxShadow = '0 4px 8px 0 rgba(0,0,0,0.2)';
|
|
@@ -108,7 +105,6 @@ class ZoomCard extends Animator {
|
|
|
108
105
|
}
|
|
109
106
|
|
|
110
107
|
addListeners(){
|
|
111
|
-
// alert(this.useBrightness);
|
|
112
108
|
let img = this.res.children[0].children[0];
|
|
113
109
|
// console.log("FIGHT");
|
|
114
110
|
// console.log(img);
|
|
@@ -116,10 +112,8 @@ class ZoomCard extends Animator {
|
|
|
116
112
|
|
|
117
113
|
this.res.onmouseover = () => {
|
|
118
114
|
|
|
119
|
-
// alert(this.useBrightness);
|
|
120
115
|
img.style.transform = 'scale(1.3)';
|
|
121
116
|
this.useBrightness && (img.style.filter = "brightness(31%)");
|
|
122
|
-
// this.style.backgroundSize = 'cover';
|
|
123
117
|
};
|
|
124
118
|
this.res.onmouseout = () => {
|
|
125
119
|
img.style.transform = 'scale(1.0)';
|
|
@@ -136,24 +130,9 @@ class ZoomCard extends Animator {
|
|
|
136
130
|
*/
|
|
137
131
|
|
|
138
132
|
|
|
139
|
-
/*
|
|
140
|
-
render(el) {
|
|
141
|
-
Array.from(this.res.children).forEach(e => e.style.padding = 0);
|
|
142
|
-
Array.from(this.res.children).forEach(e => e.style.margin = 0);
|
|
143
|
-
|
|
144
|
-
if (el) {
|
|
145
|
-
document.querySelector(el).appendChild(this.res);
|
|
146
|
-
} else {
|
|
147
|
-
return this.res;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
133
|
|
|
153
134
|
|
|
154
135
|
|
|
155
|
-
//Array.from(this.res.children).forEach(e => e.style.padding = 0);
|
|
156
|
-
//Array.from(this.res.children).forEach(e => e.style.margin = 0);
|
|
157
136
|
|
|
158
137
|
if (div) {
|
|
159
138
|
if (this.options.id){
|
|
@@ -170,51 +149,4 @@ class ZoomCard extends Animator {
|
|
|
170
149
|
}
|
|
171
150
|
|
|
172
151
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
/*
|
|
179
|
-
|
|
180
|
-
class ZoomEffect {
|
|
181
|
-
constructor() {
|
|
182
|
-
this.zoomElement = this.createZoomElement();
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
createZoomElement() {
|
|
186
|
-
// Create a new div element
|
|
187
|
-
let zoom = document.createElement('div');
|
|
188
|
-
|
|
189
|
-
// Set the CSS properties of the div
|
|
190
|
-
zoom.style.padding = '50px';
|
|
191
|
-
zoom.style.backgroundColor = 'green';
|
|
192
|
-
zoom.style.transition = 'transform .2s';
|
|
193
|
-
zoom.style.width = '200px';
|
|
194
|
-
zoom.style.height = '200px';
|
|
195
|
-
zoom.style.margin = '0 auto';
|
|
196
|
-
|
|
197
|
-
// Add a hover effect to scale the div
|
|
198
|
-
zoom.onmouseover = function() {
|
|
199
|
-
this.style.transform = 'scale(1.5)';
|
|
200
|
-
};
|
|
201
|
-
zoom.onmouseout = function() {
|
|
202
|
-
this.style.transform = 'scale(1)';
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
// Return the created div
|
|
206
|
-
return zoom;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
appendToBody() {
|
|
210
|
-
// Append the div to the body of the document
|
|
211
|
-
document.body.appendChild(this.zoomElement);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// Usage:
|
|
216
|
-
let zoomEffect = new ZoomEffect();
|
|
217
|
-
//zoomEffect.appendToBody();
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
152
|
export { ZoomCard };
|
package/lib/card-getter.js
CHANGED
package/lib/data.js
CHANGED
package/lib/designer.js
CHANGED
package/lib/element-mapper.js
CHANGED