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.
- package/dist/animator.cjs.js +1 -1
- package/dist/animator.cjs.js.LICENSE.txt +1 -1
- package/dist/animator.esm.js +1 -1
- package/dist/animator.esm.js.LICENSE.txt +1 -1
- package/dist/audionew.cjs.js +1 -1
- package/dist/audionew.cjs.js.LICENSE.txt +1 -1
- package/dist/audionew.esm.js +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 +1 -1
- package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.esm.js +1 -1
- package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.cjs.js +1 -1
- package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.esm.js +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 +1 -1
- package/dist/button.cjs.js.LICENSE.txt +1 -1
- package/dist/button.esm.js +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 +1 -1
- package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
- package/dist/checkbox.esm.js +1 -1
- package/dist/checkbox.esm.js.LICENSE.txt +1 -1
- package/dist/code.cjs.js +1 -1
- package/dist/code.cjs.js.LICENSE.txt +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/code.esm.js.LICENSE.txt +1 -1
- package/dist/container.cjs.js +1 -1
- package/dist/container.cjs.js.LICENSE.txt +1 -1
- package/dist/container.esm.js +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 +1 -1
- package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js +1 -1
- package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-grid.esm.js +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 +1 -1
- package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
- package/dist/floating-input.esm.js +1 -1
- package/dist/floating-input.esm.js.LICENSE.txt +1 -1
- package/dist/free.cjs.js +1 -1
- package/dist/free.cjs.js.LICENSE.txt +1 -1
- package/dist/free.esm.js +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 +1 -1
- package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
- package/dist/image-picker.esm.js +1 -1
- package/dist/image-picker.esm.js.LICENSE.txt +1 -1
- package/dist/image.cjs.js +1 -1
- package/dist/image.cjs.js.LICENSE.txt +1 -1
- package/dist/image.esm.js +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 +1 -1
- package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/link-getter.esm.js +1 -1
- package/dist/link-getter.esm.js.LICENSE.txt +1 -1
- package/dist/link.cjs.js +1 -1
- package/dist/link.cjs.js.LICENSE.txt +1 -1
- package/dist/link.esm.js +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 +1 -1
- package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.esm.js +1 -1
- package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.cjs.js +1 -1
- package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.esm.js +1 -1
- package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/picker.cjs.js +1 -1
- package/dist/picker.cjs.js.LICENSE.txt +1 -1
- package/dist/picker.esm.js +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 +1 -1
- package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.esm.js +1 -1
- package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/simple-bar.cjs.js +1 -1
- package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/simple-bar.esm.js +1 -1
- package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
- package/dist/slider-2025.cjs.js +1 -1
- package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/slider-2025.esm.js +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 +1 -1
- package/dist/table.cjs.js.LICENSE.txt +1 -1
- package/dist/table.esm.js +1 -1
- package/dist/table.esm.js.LICENSE.txt +1 -1
- package/dist/text-field.cjs.js +1 -1
- package/dist/text-field.cjs.js.LICENSE.txt +1 -1
- package/dist/text-field.esm.js +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 +1 -1
- package/dist/ulist.cjs.js.LICENSE.txt +1 -1
- package/dist/ulist.esm.js +1 -1
- package/dist/ulist.esm.js.LICENSE.txt +1 -1
- package/dist/video.cjs.js +1 -1
- package/dist/video.cjs.js.LICENSE.txt +1 -1
- package/dist/video.esm.js +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 +1 -1
- package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/layout/animator.js +53 -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 -43
- package/layout/button.js +5 -87
- package/layout/center.js +1 -41
- package/layout/checkbox.js +6 -10
- package/layout/circle.js +1 -1
- package/layout/code.js +1 -11
- package/layout/container.js +1 -106
- package/layout/dropdown-2025.js +1 -3
- package/layout/flex-card.js +8 -38
- package/layout/flex-grid.js +2 -23
- package/layout/flex-row.js +5 -233
- 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 +3 -217
- package/layout/index.js +1 -1
- package/layout/link.js +7 -281
- package/layout/list.js +1 -8
- 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 +1 -29
- 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 +7 -17
- package/layout/text.js +1 -161
- 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.220
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -27,15 +27,6 @@ class Text extends Animator {
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
setArea(area){
|
|
34
|
-
this.res.style.gridArea = area;
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
30
|
|
|
40
31
|
toCode(){
|
|
41
32
|
if (this.excludeFromCodeTrue){
|
|
@@ -66,7 +57,6 @@ class Text extends Animator {
|
|
|
66
57
|
this.preffersId ? this.elCSS.unshift(this.res.id + " { \n") : (this.elCSS.unshift("." + this.class + " { \n"));
|
|
67
58
|
this.elCSS.push(" } \n \n");
|
|
68
59
|
// console.warn("OI")
|
|
69
|
-
// console.log(this.elCSS);
|
|
70
60
|
return this.elCSS;
|
|
71
61
|
}
|
|
72
62
|
|
|
@@ -102,12 +92,6 @@ class Text extends Animator {
|
|
|
102
92
|
}
|
|
103
93
|
|
|
104
94
|
|
|
105
|
-
|
|
106
|
-
toHTML(){
|
|
107
|
-
return this.res;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
95
|
onTap(e){
|
|
112
96
|
this.res.addEventListener("click", e);
|
|
113
97
|
return this;
|
|
@@ -119,7 +103,6 @@ class Text extends Animator {
|
|
|
119
103
|
}
|
|
120
104
|
|
|
121
105
|
|
|
122
|
-
|
|
123
106
|
styled(obj) {
|
|
124
107
|
this.set(obj);
|
|
125
108
|
return this;
|
|
@@ -177,12 +160,7 @@ class Text extends Animator {
|
|
|
177
160
|
this.commonMethods(obj);
|
|
178
161
|
|
|
179
162
|
|
|
180
|
-
// (obj.opacity !== undefined) && (this.res.style.opacity = obj.opacity);
|
|
181
|
-
|
|
182
|
-
// obj.isHidden && this.isHidden(obj.isHidden);
|
|
183
|
-
|
|
184
163
|
//alert(obj.top);
|
|
185
|
-
//obj.top && (this.res.style.top = obj.top);
|
|
186
164
|
obj.left && (this.res.style.left = obj.left);
|
|
187
165
|
|
|
188
166
|
obj.flex && (this.res.style.display = "flex");
|
|
@@ -247,16 +225,10 @@ this.res.style.position = "absolute";
|
|
|
247
225
|
|
|
248
226
|
super.setClass(this.options.class);
|
|
249
227
|
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
228
|
|
|
254
229
|
// stra += // 2345 06/03
|
|
255
|
-
// obj.mar && this.mar(obj.mar);
|
|
256
230
|
|
|
257
231
|
|
|
258
|
-
// obj.exact && (this.res.style.fontSize = obj.exact);
|
|
259
|
-
// obj.zIndex && (this.res.style.zIndex = obj.zIndex);
|
|
260
232
|
obj.absolute && (this.res.style.position = "absolute");
|
|
261
233
|
|
|
262
234
|
|
|
@@ -266,23 +238,16 @@ this.res.style.position = "absolute";
|
|
|
266
238
|
this.fluid(obj.fluid);
|
|
267
239
|
}
|
|
268
240
|
|
|
269
|
-
//obj.font && this.font(obj.font);
|
|
270
241
|
obj.fluidc && (this.elCSS.push(`font-family: ${obj.font}; \n`));
|
|
271
242
|
obj.align && (this.res.style.textAlign = obj.align);
|
|
272
243
|
|
|
273
|
-
// obj.weight && (this.res.style.fontWeight = obj.weight);
|
|
274
244
|
//@ breakWord: Allow long words to wrap mid-word (word-wrap: break-word).
|
|
275
245
|
obj.breakWord && (this.res.style.wordWrap = "break-word");
|
|
276
246
|
// `center` used to set auto margins here, i.e. centre the Text
|
|
277
247
|
// ITSELF — the opposite of what it means on every other component
|
|
278
248
|
// now. That is `mar: "center"`.
|
|
279
249
|
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
250
|
// width, height, background, radius, resprop, keySet, maxHeight
|
|
285
|
-
// obj.resprop && this.resprop(obj.resprop);
|
|
286
251
|
obj.italic && this.italic();
|
|
287
252
|
// stra += 17:01:43 11/11/24
|
|
288
253
|
|
|
@@ -294,17 +259,9 @@ this.res.style.position = "absolute";
|
|
|
294
259
|
|
|
295
260
|
obj.keySet && this.keySet(obj.keySet);
|
|
296
261
|
|
|
297
|
-
//obj.maxHeight && (this.res.style.maxHeight = obj.maxHeight);
|
|
298
|
-
|
|
299
262
|
|
|
300
|
-
/*if (obj.transform){
|
|
301
|
-
}*/
|
|
302
263
|
// Done by commonMethods
|
|
303
|
-
//obj.transform && this.reactOnTransform(obj.transform); // remove obj.op.duration
|
|
304
264
|
|
|
305
|
-
/*if (obj.transform.op.values){
|
|
306
|
-
alert("P");
|
|
307
|
-
}*/
|
|
308
265
|
|
|
309
266
|
|
|
310
267
|
|
|
@@ -312,13 +269,11 @@ this.res.style.position = "absolute";
|
|
|
312
269
|
|
|
313
270
|
|
|
314
271
|
|
|
315
|
-
//this.code.push(str); // 14:04:10 06/03
|
|
316
272
|
|
|
317
273
|
return this;
|
|
318
274
|
} // 114522 you can hit tab
|
|
319
275
|
|
|
320
276
|
|
|
321
|
-
|
|
322
277
|
callReact(obj){
|
|
323
278
|
|
|
324
279
|
let arr = [];
|
|
@@ -378,9 +333,6 @@ this.res.style.position = "absolute";
|
|
|
378
333
|
keep.push("span");
|
|
379
334
|
}
|
|
380
335
|
|
|
381
|
-
/* if (obj.transform){
|
|
382
|
-
keep.push("transform");
|
|
383
|
-
}*/
|
|
384
336
|
|
|
385
337
|
// console.log("ARA IS " + arr);
|
|
386
338
|
|
|
@@ -413,42 +365,6 @@ addIcon(obj){
|
|
|
413
365
|
|
|
414
366
|
|
|
415
367
|
|
|
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
368
|
|
|
453
369
|
between(name){
|
|
454
370
|
|
|
@@ -512,7 +428,6 @@ addIcon(obj){
|
|
|
512
428
|
// // console.log();
|
|
513
429
|
|
|
514
430
|
document.styleSheets[0].insertRule(`#${str}::first-letter { color: green; font-size: 3em; padding: 0.1em }`, 0);
|
|
515
|
-
// this.res.style.initialLetter = n;
|
|
516
431
|
return this;
|
|
517
432
|
}
|
|
518
433
|
|
|
@@ -570,9 +485,6 @@ addIcon(obj){
|
|
|
570
485
|
const display5 = "calc(1.1rem + 1.2vw)";
|
|
571
486
|
|
|
572
487
|
if (name === "S5"){
|
|
573
|
-
//this.res = document.createElement("p");
|
|
574
|
-
//let node = document.createTextNode(this.text);
|
|
575
|
-
// this.res.appendChild(node);
|
|
576
488
|
// alert("K")
|
|
577
489
|
this.res.style.fontSize = display5;
|
|
578
490
|
}
|
|
@@ -620,23 +532,6 @@ addIcon(obj){
|
|
|
620
532
|
}
|
|
621
533
|
|
|
622
534
|
|
|
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
535
|
|
|
641
536
|
|
|
642
537
|
large() {
|
|
@@ -679,8 +574,6 @@ addIcon(obj){
|
|
|
679
574
|
this.setB = false;
|
|
680
575
|
|
|
681
576
|
|
|
682
|
-
// *Â window.innerWidth);
|
|
683
|
-
// // console.log(base.baseVW / 100 * window.innerWidth);
|
|
684
577
|
// CONVERT CURRENT base.VW to pixels
|
|
685
578
|
|
|
686
579
|
if (!this.set){
|
|
@@ -695,7 +588,6 @@ addIcon(obj){
|
|
|
695
588
|
//alert("ON REFRESH");
|
|
696
589
|
this.res.style.color = "orange";
|
|
697
590
|
this.res.style.fontSize = `${base.baseVW / 100 * base.maxw}px`;
|
|
698
|
-
//this.res.style.fontSize = `${base.maxFont}px`;
|
|
699
591
|
this.setB = true;
|
|
700
592
|
}
|
|
701
593
|
|
|
@@ -710,11 +602,6 @@ addIcon(obj){
|
|
|
710
602
|
}
|
|
711
603
|
|
|
712
604
|
|
|
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
605
|
|
|
719
606
|
|
|
720
607
|
adapt();
|
|
@@ -729,7 +616,6 @@ addIcon(obj){
|
|
|
729
616
|
|
|
730
617
|
|
|
731
618
|
|
|
732
|
-
// this.res.style.fontSize = `calc(${base}px + 1vw)`;
|
|
733
619
|
return this;
|
|
734
620
|
}
|
|
735
621
|
|
|
@@ -738,9 +624,6 @@ addIcon(obj){
|
|
|
738
624
|
medium() {
|
|
739
625
|
const adj = () => {
|
|
740
626
|
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
627
|
|
|
745
628
|
if (query.matches) {
|
|
746
629
|
this.res.style.fontSize = '2.25rem';
|
|
@@ -772,9 +655,6 @@ addIcon(obj){
|
|
|
772
655
|
small() {
|
|
773
656
|
const adj = () => {
|
|
774
657
|
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
658
|
|
|
779
659
|
if (query.matches) {
|
|
780
660
|
this.res.style.fontSize = '1.5em';
|
|
@@ -826,7 +706,6 @@ addIcon(obj){
|
|
|
826
706
|
el.setAttribute("id", obj.id);
|
|
827
707
|
|
|
828
708
|
|
|
829
|
-
|
|
830
709
|
if (obj.type === "span"){
|
|
831
710
|
|
|
832
711
|
|
|
@@ -838,8 +717,6 @@ addIcon(obj){
|
|
|
838
717
|
|
|
839
718
|
|
|
840
719
|
|
|
841
|
-
//el = document.createElement("span");
|
|
842
|
-
//el.style.display = "block";
|
|
843
720
|
}
|
|
844
721
|
|
|
845
722
|
} else {
|
|
@@ -869,11 +746,6 @@ addIcon(obj){
|
|
|
869
746
|
}
|
|
870
747
|
|
|
871
748
|
|
|
872
|
-
/*size(s) {
|
|
873
|
-
this.res.style.fontSize = s;
|
|
874
|
-
return this;
|
|
875
|
-
}*/
|
|
876
|
-
|
|
877
749
|
em(e) {
|
|
878
750
|
this.res.style.fontSize = `${e}em`;
|
|
879
751
|
//alert("h")
|
|
@@ -882,8 +754,6 @@ addIcon(obj){
|
|
|
882
754
|
|
|
883
755
|
color(color) {
|
|
884
756
|
this.res.style.color = color;
|
|
885
|
-
//this.code.push(`.color(${color}),`);
|
|
886
|
-
//this.code.push(`.color(${color})`);
|
|
887
757
|
return this;
|
|
888
758
|
}
|
|
889
759
|
|
|
@@ -907,11 +777,6 @@ addIcon(obj){
|
|
|
907
777
|
return this;
|
|
908
778
|
}
|
|
909
779
|
|
|
910
|
-
/*padding(val){
|
|
911
|
-
this.res.style.padding = val;
|
|
912
|
-
return this;
|
|
913
|
-
}*/
|
|
914
|
-
|
|
915
780
|
|
|
916
781
|
|
|
917
782
|
width(w, shouldCenter){
|
|
@@ -926,9 +791,6 @@ addIcon(obj){
|
|
|
926
791
|
|
|
927
792
|
|
|
928
793
|
offset(obj){
|
|
929
|
-
/*this.res.style.marginLeft = "-390px";
|
|
930
|
-
this.res.style.marginTop = "-360px";
|
|
931
|
-
this.res.style.color = "green";*/
|
|
932
794
|
|
|
933
795
|
|
|
934
796
|
this.res.style.gridRow = 2;
|
|
@@ -946,7 +808,6 @@ addIcon(obj){
|
|
|
946
808
|
}
|
|
947
809
|
|
|
948
810
|
|
|
949
|
-
|
|
950
811
|
updating(obj, key) {
|
|
951
812
|
|
|
952
813
|
var copy = this.res;
|
|
@@ -958,7 +819,6 @@ addIcon(obj){
|
|
|
958
819
|
|
|
959
820
|
|
|
960
821
|
// this.text
|
|
961
|
-
// let node = document.createTextNode(`Pressed ${newVal}`);
|
|
962
822
|
let node = document.createTextNode(txt.replace("$", newVal))
|
|
963
823
|
copy.replaceChild(node, copy.childNodes[0]);
|
|
964
824
|
}
|
|
@@ -1002,10 +862,6 @@ addIcon(obj){
|
|
|
1002
862
|
}
|
|
1003
863
|
|
|
1004
864
|
// 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
865
|
|
|
1010
866
|
goThroughStyles();
|
|
1011
867
|
window.addEventListener("resize", goThroughStyles); // never use "on" here. Will get overrwritten !
|
|
@@ -1018,23 +874,9 @@ addIcon(obj){
|
|
|
1018
874
|
*/
|
|
1019
875
|
|
|
1020
876
|
|
|
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
877
|
|
|
1034
878
|
|
|
1035
879
|
|
|
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
880
|
|
|
1039
881
|
if (div) {
|
|
1040
882
|
if (this.options && this.options.id){
|
|
@@ -1065,8 +907,6 @@ addIcon(obj){
|
|
|
1065
907
|
}
|
|
1066
908
|
|
|
1067
909
|
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
910
|
|
|
1071
911
|
}
|
|
1072
912
|
|
package/layout/ulist.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.220
|
|
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.220
|
|
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.220
|
|
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.220
|
|
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